/third_party/ffmpeg/libavutil/ |
H A D | timecode.c | 35 int av_timecode_adjust_ntsc_framenum2(int framenum, int fps) in av_timecode_adjust_ntsc_framenum2() argument 41 if (fps && fps % 30 == 0) { in av_timecode_adjust_ntsc_framenum2() 42 drop_frames = fps / 30 * 2; in av_timecode_adjust_ntsc_framenum2() 43 frames_per_10mins = fps / 30 * 17982; in av_timecode_adjust_ntsc_framenum2() 55 unsigned fps = tc->fps; in av_timecode_get_smpte_from_framenum() local 61 framenum = av_timecode_adjust_ntsc_framenum2(framenum, tc->fps); in av_timecode_get_smpte_from_framenum() 62 ff = framenum % fps; in av_timecode_get_smpte_from_framenum() 63 ss = framenum / fps in av_timecode_get_smpte_from_framenum() 105 int fps = tc->fps; av_timecode_make_string() local 179 check_fps(int fps) check_fps() argument [all...] |
/third_party/rust/crates/minimal-lexical/etc/ |
H A D | bellerophon_table.py | 69 fps = [] 72 fps.append((normalize_fp(fp), exp)) 76 ints = [base**i for _, i in fps] 78 return fps, ints 88 fps = deque() 96 fps.appendleft((normalize_fp(fp), exp)) 100 fps.append((normalize_fp(fp), 0)) 103 fps.append((normalize_fp(fp), exp)) 106 return fps, -fps[ [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | tmv.c | 72 AVRational fps; in tmv_read_header() local 126 fps.num = ast->codecpar->sample_rate * ast->codecpar->ch_layout.nb_channels; in tmv_read_header() 127 fps.den = tmv->audio_chunk_size; in tmv_read_header() 128 av_reduce(&fps.num, &fps.den, fps.num, fps.den, 0xFFFFFFFFLL); in tmv_read_header() 135 avpriv_set_pts_info(vst, 32, fps.den, fps.num); in tmv_read_header() 143 fps in tmv_read_header() [all...] |
H A D | vivo.c | 124 AVRational fps = { 0 }; in vivo_read_header() local 192 fps.num = value_int / 1000; in vivo_read_header() 194 fps.den = value_int; in vivo_read_header() 215 if (!fps.num && !fps.den) in vivo_read_header() 216 fps = av_inv_q(av_d2q(d, 10000)); in vivo_read_header() 223 if (!fps.num || !fps.den) in vivo_read_header() 224 fps = (AVRational){ 1, 25 }; in vivo_read_header() 227 avpriv_set_pts_info(vst, 64, fps in vivo_read_header() [all...] |
H A D | vc1test.c | 56 uint32_t fps; in vc1t_read_header() local 80 fps = avio_rl32(pb); in vc1t_read_header() 81 if(fps == 0xFFFFFFFF) in vc1t_read_header() 84 if (!fps) { in vc1t_read_header() 86 fps = 1; in vc1t_read_header() 88 avpriv_set_pts_info(st, 24, 1, fps); in vc1t_read_header()
|
H A D | mods.c | 45 AVRational fps; in mods_read_header() local 60 fps.num = avio_rl32(pb); in mods_read_header() 61 fps.den = 0x1000000; in mods_read_header() 62 avpriv_set_pts_info(st, 64, fps.den, fps.num); in mods_read_header()
|
H A D | idroqenc.c | 29 0x84, 0x10, 0xFF, 0xFF, 0xFF, 0xFF, /* fps: */ 0x1E, 0x00 in roq_write_header() 33 // set the actual fps in roq_write_header() 36 unsigned int fps; in roq_write_header() local 43 if ((fps=s->streams[n]->avg_frame_rate.num) > 255) { in roq_write_header() 44 av_log(s, AV_LOG_ERROR, "Frame rate may not exceed 255fps\n"); in roq_write_header() 48 if (fps != 30) { in roq_write_header() 49 av_log(s, AV_LOG_WARNING, "For vintage compatibility fps must be 30\n"); in roq_write_header() 52 header[6] = fps; in roq_write_header()
|
H A D | microdvddec.c | 81 AVRational pts_info = (AVRational){ 2997, 125 }; /* default: 23.976 fps */ in microdvd_read_header() 110 double fps; in microdvd_read_header() local 113 if ((sscanf(line, "{%d}{}%6lf", &frame, &fps) == 2 || in microdvd_read_header() 114 sscanf(line, "{%d}{%*d}%6lf", &frame, &fps) == 2) in microdvd_read_header() 115 && frame <= 1 && fps > 3 && fps < 100) { in microdvd_read_header() 116 pts_info = av_d2q(fps, 100000); in microdvd_read_header()
|
H A D | thp.c | 35 AVRational fps; member 79 thp->fps = av_d2q(av_int2float(avio_rb32(pb)), INT_MAX); in thp_read_header() 80 if (thp->fps.den <= 0 || thp->fps.num < 0) in thp_read_header() 117 /* The denominator and numerator are switched because 1/fps in thp_read_header() 119 avpriv_set_pts_info(st, 64, thp->fps.den, thp->fps.num); in thp_read_header() 125 st->codecpar->sample_rate = av_q2d(thp->fps); in thp_read_header()
|
H A D | mgsts.c | 40 AVRational fps; in read_header() local 57 fps = av_d2q(av_int2float(avio_rb32(pb)), INT_MAX); in read_header() 65 avpriv_set_pts_info(st, 64, fps.den, fps.num); in read_header()
|
H A D | gdv.c | 75 unsigned fps, snd_flags, vid_depth, size_id; in gdv_read_header() local 88 fps = avio_rl16(pb); in gdv_read_header() 89 if (!fps) in gdv_read_header() 110 gdv->audio_size = (ast->codecpar->sample_rate / fps) * in gdv_read_header() 138 avpriv_set_pts_info(vst, 64, 1, fps); in gdv_read_header()
|
H A D | mpsubdec.c | 105 int fps, len = ff_get_line(s->pb, line, sizeof(line)); in mpsub_read_header() local 112 if (sscanf(line, "FORMAT=%d", &fps) == 1 && fps > 3 && fps < 100) { in mpsub_read_header() 114 pts_info = (AVRational){ TSBASE * fps, 1 }; in mpsub_read_header()
|
H A D | dxa.c | 62 int32_t fps; in dxa_read_header() local 78 fps = avio_rb32(pb); in dxa_read_header() 79 if(fps > 0){ in dxa_read_header() 81 num = fps; in dxa_read_header() 82 }else if (fps < 0 && fps > INT_MIN){ in dxa_read_header() 84 num = -fps; in dxa_read_header()
|
H A D | westwood_vqa.c | 98 int fps, ret; in wsvqa_read_header() local 119 fps = header[12]; in wsvqa_read_header() 122 if (fps < 1 || fps > 30) { in wsvqa_read_header() 123 av_log(s, AV_LOG_ERROR, "invalid fps: %d\n", fps); in wsvqa_read_header() 126 avpriv_set_pts_info(st, 64, 1, fps); in wsvqa_read_header()
|
H A D | mm.c | 63 int len, type, fps, w, h; in probe() local 72 fps = AV_RL16(&p->buf[8]); in probe() 75 if (!fps || fps > 60 || !w || w > 2048 || !h || h > 2048) in probe()
|
H A D | gxf.c | 231 * @brief convert fps tag value to AVRational fps 232 * @param fps fps value from tag 233 * @return fps as AVRational, or 0 / 0 if unknown 235 static AVRational fps_tag2avr(int32_t fps) { in fps_tag2avr() argument 236 if (fps < 1 || fps > 9) fps = 9; in fps_tag2avr() 237 return frame_rate_tab[fps in fps_tag2avr() 408 AVRational fps; gxf_header() local [all...] |
/third_party/toybox/toys/posix/ |
H A D | paste.c | 36 FILE **fps = (void *)toybuf; in paste_files() local 49 FILE *ff = seq ? *fps : fps[i]; in paste_files() 58 fps[i] = 0; in paste_files() 113 FILE **fps = (void *)toybuf; in do_paste() local 115 if (!(fps[TT.files++] = (fd ? fdopen(fd, "r") : stdin))) perror_exit(0); in do_paste()
|
/third_party/ffmpeg/libavdevice/ |
H A D | libdc1394.c | 42 int frame_rate; /**< frames per 1000 seconds (fps * 1000) */ 103 const struct dc1394_frame_rate *fps; in dc1394_read_common() local 129 for (fps = dc1394_frame_rates; fps->frame_rate; fps++) in dc1394_read_common() 130 if (fps->frame_rate == dc1394->frame_rate) in dc1394_read_common() 133 if (!fps->frame_rate || !fmt->width) { in dc1394_read_common() 134 av_log(c, AV_LOG_ERROR, "Can't find matching camera format for %s, %dx%d@%d:1000fps\n", av_get_pix_fmt_name(pix_fmt), in dc1394_read_common() 160 fps->frame_rate, 1000); in dc1394_read_common() 161 *select_fps = fps; in dc1394_read_common() 173 const struct dc1394_frame_rate *fps = NULL; dc1394_read_header() local [all...] |
/third_party/skia/tools/ |
H A D | skottie2movie.cpp | 27 static DEFINE_int_2(fps, f, 25, "fps"); 77 int fps = SkTPin(FLAGS_fps, 1, 240); in main() local 78 double fps_scale = animation->fps() / fps; in main() 86 const int frames = SkScalarRoundToInt(duration * fps); in main() 87 const double frame_duration = 1.0 / fps; in main() 90 SkDebugf("Size %dx%d duration %g, fps %d, frame_duration %g\n", in main() 91 dim.width(), dim.height(), duration, fps, frame_duration); in main() 104 if (!encoder.beginRecording(dim, fps)) { in main() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_telecine.c | 142 AVRational fps = inlink->frame_rate; in config_output() local 144 if (!fps.num || !fps.den) { in config_output() 146 "current rate of %d/%d is invalid\n", fps.num, fps.den); in config_output() 149 fps = av_mul_q(fps, av_inv_q(s->pts)); in config_output() 151 inlink->frame_rate.num, inlink->frame_rate.den, fps.num, fps.den); in config_output() 153 outlink->frame_rate = fps; in config_output() [all...] |
H A D | vf_detelecine.c | 168 AVRational fps = inlink->frame_rate; in config_output() local 170 if (!fps.num || !fps.den) { in config_output() 172 "current rate of %d/%d is invalid\n", fps.num, fps.den); in config_output() 175 fps = av_mul_q(fps, av_inv_q(s->pts)); in config_output() 177 inlink->frame_rate.num, inlink->frame_rate.den, fps.num, fps.den); in config_output() 179 outlink->frame_rate = fps; in config_output() [all...] |
H A D | vf_decimate.c | 372 AVRational fps = inlink->frame_rate; in config_output() local 399 if (!fps.num || !fps.den) { in config_output() 401 "current rate of %d/%d is invalid\n", fps.num, fps.den); in config_output() 404 fps = av_mul_q(fps, (AVRational){dm->cycle - 1, dm->cycle}); in config_output() 406 inlink->frame_rate.num, inlink->frame_rate.den, fps.num, fps.den); in config_output() 408 outlink->frame_rate = fps; in config_output() [all...] |
/third_party/skia/demos.skia.org/demos/path_performance/ |
H A D | main.js | 36 const fps = fpsFromFramesInfo(framesCount, totalFramesMs); 39 textEl = document.getElementById('Path2D-fps'); 42 textEl = document.getElementById('CanvasKit-fps'); 44 textEl.innerText = `${fps.toFixed(2)} fps over ${framesCount} frames`; 49 const fps = fpsFromFramesInfo(svgAnimator.framesCount, svgAnimator.totalFramesMs); 50 document.getElementById('SVG-fps').innerText = 51 `${fps.toFixed(2)} fps over ${svgAnimator.framesCount} frames`;
|
/third_party/skia/modules/skottie/src/ |
H A D | SkottieTool.cpp | 42 static DEFINE_double(fps, 0, "Decode frames per second (default is animation native fps)."); 299 native_fps = anim->fps(), in main() 303 double fps = FLAGS_fps > 0 ? FLAGS_fps : native_fps; in main() local 304 if (fps <= 0) { in main() 305 SkDebugf("Invalid fps: %f.\n", fps); in main() 309 auto frame_count = static_cast<int>(duration * fps); in main() 313 fps = frame_count / duration; in main() 315 const auto fps_scale = native_fps / fps; in main() [all...] |
/third_party/ffmpeg/tests/fate/ |
H A D | filter-video.mak | 111 fate-filter-framerate-up: CMD = framecrc -lavfi testsrc2=r=2:d=10,framerate=fps=10 -t 1 112 fate-filter-framerate-down: CMD = framecrc -lavfi testsrc2=r=2:d=10,framerate=fps=1 -t 1 115 fate-filter-framerate-12bit-up: CMD = framecrc -lavfi testsrc2=r=50:d=1,format=pix_fmts=yuv422p12le,scale,framerate=fps=60,scale -t 1 -pix_fmt yuv422p12le 116 fate-filter-framerate-12bit-down: CMD = framecrc -lavfi testsrc2=r=60:d=1,format=pix_fmts=yuv422p12le,scale,framerate=fps=50,scale -t 1 -pix_fmt yuv422p12le 119 fate-filter-minterpolate-up: CMD = framecrc -lavfi testsrc2=r=2:d=10,minterpolate=fps=10 -t 1 120 fate-filter-minterpolate-down: CMD = framecrc -lavfi testsrc2=r=2:d=10,minterpolate=fps=1 -t 1 365 fate-filter-decimate: CMD = framecrc -lavfi testsrc2=r=24:d=10,fps=60,decimate=5,decimate=4,decimate=3 -pix_fmt yuv420p 368 fate-filter-mpdecimate: CMD = framecrc -lavfi testsrc2=r=2:d=10,fps=3,mpdecimate -r 3 -pix_fmt yuv420p 370 FATE_FILTER-$(call FILTERFRAMECRC, FPS TESTSRC2) += $(addprefix fate-filter-fps-, up up-round-down up-round-up down down-round-down down-round-up down-eof-pass start-drop start-fill) 371 fate-filter-fps [all...] |