Home
last modified time | relevance | path

Searched refs:fps (Results 1 – 25 of 177) sorted by relevance

12345678

/third_party/ffmpeg/libavutil/
Dtimecode.c34 int av_timecode_adjust_ntsc_framenum2(int framenum, int fps) in av_timecode_adjust_ntsc_framenum2() argument
40 if (fps && fps % 30 == 0) { in av_timecode_adjust_ntsc_framenum2()
41 drop_frames = fps / 30 * 2; in av_timecode_adjust_ntsc_framenum2()
42 frames_per_10mins = fps / 30 * 17982; in av_timecode_adjust_ntsc_framenum2()
54 unsigned fps = tc->fps; in av_timecode_get_smpte_from_framenum() local
60 framenum = av_timecode_adjust_ntsc_framenum2(framenum, tc->fps); in av_timecode_get_smpte_from_framenum()
61 ff = framenum % fps; in av_timecode_get_smpte_from_framenum()
62 ss = framenum / fps % 60; in av_timecode_get_smpte_from_framenum()
63 mm = framenum / (fps*60) % 60; in av_timecode_get_smpte_from_framenum()
64 hh = framenum / (fps*3600) % 24; in av_timecode_get_smpte_from_framenum()
[all …]
/third_party/flutter/skia/tools/
Dskottie2movie.cpp21 static DEFINE_int_2(fps, f, 25, "fps");
102 int fps = FLAGS_fps; in main() local
103 if (fps < 1) { in main()
104 fps = 1; in main()
105 } else if (fps > 240) { in main()
106 fps = 240; in main()
109 const int frames = SkScalarRoundToInt(duration * fps); in main()
110 const double frame_duration = 1.0 / fps; in main()
114 dim.width(), dim.height(), duration, fps, frame_duration); in main()
125 encoder.beginRecording(dim, fps); in main()
[all …]
/third_party/ffmpeg/libavformat/
Dtmv.c72 AVRational fps; in tmv_read_header() local
128 fps.num = ast->codecpar->sample_rate * ast->codecpar->channels; in tmv_read_header()
129 fps.den = tmv->audio_chunk_size; in tmv_read_header()
130 av_reduce(&fps.num, &fps.den, fps.num, fps.den, 0xFFFFFFFFLL); in tmv_read_header()
137 avpriv_set_pts_info(vst, 32, fps.den, fps.num); in tmv_read_header()
145 fps.num * 8) / fps.den; in tmv_read_header()
Dvc1test.c55 uint32_t fps; in vc1t_read_header() local
79 fps = avio_rl32(pb); in vc1t_read_header()
80 if(fps == 0xFFFFFFFF) in vc1t_read_header()
83 if (!fps) { in vc1t_read_header()
85 fps = 1; in vc1t_read_header()
87 avpriv_set_pts_info(st, 24, 1, fps); in vc1t_read_header()
Didroqenc.c36 unsigned int fps; in roq_write_header() local
43 if ((fps=s->streams[n]->avg_frame_rate.num) > 255) { in roq_write_header()
48 if (fps != 30) { in roq_write_header()
52 header[6] = fps; in roq_write_header()
Dmods.c45 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()
Dthp.c34 AVRational fps; member
77 thp->fps = av_d2q(av_int2float(avio_rb32(pb)), INT_MAX); in thp_read_header()
78 if (thp->fps.den <= 0 || thp->fps.num < 0) in thp_read_header()
116 avpriv_set_pts_info(st, 64, thp->fps.den, thp->fps.num); in thp_read_header()
122 st->codecpar->sample_rate = av_q2d(thp->fps); in thp_read_header()
Dmicrodvddec.c110 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()
Dmgsts.c40 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()
Ddxa.c62 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()
Dwestwood_vqa.c88 int fps, ret; in wsvqa_read_header() local
109 fps = header[12]; in wsvqa_read_header()
112 if (fps < 1 || fps > 30) { in wsvqa_read_header()
113 av_log(s, AV_LOG_ERROR, "invalid fps: %d\n", fps); in wsvqa_read_header()
116 avpriv_set_pts_info(st, 64, 1, fps); in wsvqa_read_header()
Dgdv.c75 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()
137 avpriv_set_pts_info(vst, 64, 1, fps); in gdv_read_header()
Dmpsubdec.c105 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()
/third_party/ffmpeg/libavdevice/
Dlibdc1394.c103 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()
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; in dc1394_read_header() local
175 if (dc1394_read_common(c, &fmt, &fps) != 0) in dc1394_read_header()
229 if (dc1394_video_set_framerate(dc1394->camera,fps->frame_rate_id) != DC1394_SUCCESS) { in dc1394_read_header()
230 av_log(c, AV_LOG_ERROR, "Couldn't set framerate %d \n",fps->frame_rate); in dc1394_read_header()
/third_party/skia/tools/
Dskottie2movie.cpp27 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()
91 dim.width(), dim.height(), duration, fps, frame_duration); in main()
104 if (!encoder.beginRecording(dim, fps)) { in main()
/third_party/toybox/toys/posix/
Dpaste.c36 FILE **fps = (void *)toybuf; local
49 FILE *ff = seq ? *fps : fps[i];
58 fps[i] = 0;
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/mindspore/mindspore/nn/metrics/
Droc.py141 fps, tps, thresholds = self._binary_clf_curve(y_pred, y, sample_weights=sample_weights,
144 fps = np.squeeze(np.hstack([np.zeros(1, dtype=fps.dtype), fps]))
147 if fps[-1] <= 0:
149 fpr = fps / fps[-1]
/third_party/ffmpeg/libavfilter/
Dvf_telecine.c147 AVRational fps = inlink->frame_rate; in config_output() local
149 if (!fps.num || !fps.den) { in config_output()
151 "current rate of %d/%d is invalid\n", fps.num, fps.den); in config_output()
154 fps = av_mul_q(fps, av_inv_q(s->pts)); in config_output()
156 inlink->frame_rate.num, inlink->frame_rate.den, fps.num, fps.den); in config_output()
158 outlink->frame_rate = fps; in config_output()
163 s->ts_unit = av_inv_q(av_mul_q(fps, outlink->time_base)); in config_output()
Dvf_detelecine.c173 AVRational fps = inlink->frame_rate; in config_output() local
175 if (!fps.num || !fps.den) { in config_output()
177 "current rate of %d/%d is invalid\n", fps.num, fps.den); in config_output()
180 fps = av_mul_q(fps, av_inv_q(s->pts)); in config_output()
182 inlink->frame_rate.num, inlink->frame_rate.den, fps.num, fps.den); in config_output()
184 outlink->frame_rate = fps; in config_output()
189 s->ts_unit = av_inv_q(av_mul_q(fps, outlink->time_base)); in config_output()
/third_party/flutter/engine/flutter/shell/platform/android/io/flutter/view/
DVsyncWaiter.java35 float fps = windowManager.getDefaultDisplay().getRefreshRate();
36 long refreshPeriodNanos = (long) (1000000000.0 / fps);
51 float fps = windowManager.getDefaultDisplay().getRefreshRate(); in init() local
52 FlutterJNI.setRefreshRateFPS(fps); in init()
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dh263parse.c615 GValue fps = { 0, }; in gst_h263_parse_get_level() local
626 g_value_init (&fps, GST_TYPE_FRACTION); in gst_h263_parse_get_level()
633 gst_value_set_fraction (&fps, fps_num, fps_denom); in gst_h263_parse_get_level()
636 if (H263_FMT_UPTO_QCIF (params) && GST_FRACTION_LE (fps, fps15) && in gst_h263_parse_get_level()
641 if (((H263_FMT_UPTO_QCIF (params) && GST_FRACTION_LE (fps, fps30)) || in gst_h263_parse_get_level()
642 (params->format == PICTURE_FMT_CIF && GST_FRACTION_LE (fps, fps15))) in gst_h263_parse_get_level()
647 if (H263_FMT_UPTO_CIF (params) && GST_FRACTION_LE (fps, fps30) && in gst_h263_parse_get_level()
652 if (H263_FMT_UPTO_CIF (params) && GST_FRACTION_LE (fps, fps30) && in gst_h263_parse_get_level()
659 GST_FRACTION_LE (fps, fps15) && in gst_h263_parse_get_level()
666 (GST_FRACTION_LE (fps, fps50) || in gst_h263_parse_get_level()
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/dvpp/utils/
DMDAclProcess.cc270 const double fps = 1 * SEC2MS / costMs; in JPEG_D() local
271 MS_LOG(INFO) << "[dvpp decode Delay] cost: " << costMs << "ms\tfps: " << fps; in JPEG_D()
311 const double fps = 1 * SEC2MS / costMs; in JPEG_D() local
312 MS_LOG(INFO) << "[dvpp decode Delay] cost: " << costMs << "ms\tfps: " << fps; in JPEG_D()
358 const double fps = 1 * SEC2MS / costMs; in JPEG_R() local
359 MS_LOG(INFO) << "[dvpp resize Delay] cost: " << costMs << "ms\tfps: " << fps; in JPEG_R()
398 const double fps = 1 * SEC2MS / costMs; in JPEG_R() local
399 MS_LOG(INFO) << "[dvpp resize Delay] cost: " << costMs << "ms\tfps: " << fps; in JPEG_R()
476 const double fps = 1 * SEC2MS / costMs; in JPEG_C() local
477 MS_LOG(INFO) << "[dvpp crop Delay] cost: " << costMs << "ms\tfps: " << fps; in JPEG_C()
[all …]
/third_party/skia/modules/skottie/src/
DSkottieTool.cpp42 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()
317 SkDebugf("Rendering %f seconds (%d frames @%f fps).\n", duration, frame_count, fps); in main()
359 if (!enc.beginRecording({FLAGS_width, FLAGS_height}, fps)) { in main()
/third_party/skia/demos.skia.org/demos/path_performance/
Dmain.js36 const fps = fpsFromFramesInfo(framesCount, totalFramesMs); constant
44 textEl.innerText = `${fps.toFixed(2)} fps over ${framesCount} frames`;
49 const fps = fpsFromFramesInfo(svgAnimator.framesCount, svgAnimator.totalFramesMs); constant
51 `${fps.toFixed(2)} fps over ${svgAnimator.framesCount} frames`;
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestoverlay2.c330 int fps = 12; in main() local
351 fps = atoi(argv[2]); in main()
352 if (fps == 0) { in main()
357 if ((fps < 0) || (fps > 1000)) { in main()
486 fpsdelay = 1000 / fps; in main()
499 emscripten_set_main_loop(loop, nodelay ? 0 : fps, 1); in main()

12345678