| /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 | 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 | 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 | 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()
|
| /foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
| H A D | rs_realtime_refresh_rate_manager.cpp | 62 RS_TRACE_BEGIN("RSRealtimeRefreshRateManager:Cal draw fps");
in SetShowRefreshRateEnabled() 64 uint32_t fps = std::round(realtimeFrameCount * static_cast<float>(NS_PER_S_) / diff.count());
in SetShowRefreshRateEnabled() 65 fps = std::max(1u, fps);
in SetShowRefreshRateEnabled() 66 if (fps <= IDLE_FPS_THRESHOLD_) {
in SetShowRefreshRateEnabled() 67 fps = 1;
in SetShowRefreshRateEnabled() 69 currRealtimeRefreshRate_ = fps;
in SetShowRefreshRateEnabled()
|
| H A D | rs_uni_hwc_prevalidate_util.cpp | 101 RSSurfaceRenderNode::SharedPtr node, GraphicTransformType transform, uint32_t fps, RequestLayerInfo &info) in CreateSurfaceNodeLayerInfo() 116 info.fps = fps; in CreateSurfaceNodeLayerInfo() 131 " usage: %{public}" PRIu64 ", format: %{public}d, transform: %{public}d, fps: %{public}d", in CreateSurfaceNodeLayerInfo() 134 zorder, info.usage, info.format, info.transform, fps); in CreateSurfaceNodeLayerInfo() 152 RSDisplayRenderNode::SharedPtr node, const ScreenInfo &screenInfo, uint32_t fps, RequestLayerInfo &info) in CreateDisplayNodeLayerInfo() 173 info.fps = fps; in CreateDisplayNodeLayerInfo() 178 " usage: %{public}" PRIu64 ", format: %{public}d, transform: %{public}d, fps: %{public}d", in CreateDisplayNodeLayerInfo() 181 zorder, info.usage, info.format, info.transform, fps); in CreateDisplayNodeLayerInfo() 100 CreateSurfaceNodeLayerInfo(uint32_t zorder, RSSurfaceRenderNode::SharedPtr node, GraphicTransformType transform, uint32_t fps, RequestLayerInfo &info) CreateSurfaceNodeLayerInfo() argument 151 CreateDisplayNodeLayerInfo(uint32_t zorder, RSDisplayRenderNode::SharedPtr node, const ScreenInfo &screenInfo, uint32_t fps, RequestLayerInfo &info) CreateDisplayNodeLayerInfo() argument 185 CreateUIFirstLayerInfo( RSSurfaceRenderNode::SharedPtr node, GraphicTransformType transform, uint32_t fps, RequestLayerInfo &info) CreateUIFirstLayerInfo() argument 210 CreateRCDLayerInfo( RSRcdSurfaceRenderNode::SharedPtr node, const ScreenInfo &screenInfo, uint32_t fps, RequestLayerInfo &info) CreateRCDLayerInfo() argument [all...] |
| H A D | rs_uni_hwc_prevalidate_util.h | 52 uint32_t fps = 120; member 72 RSSurfaceRenderNode::SharedPtr node, GraphicTransformType transform, uint32_t fps, RequestLayerInfo &info); 74 RSDisplayRenderNode::SharedPtr node, const ScreenInfo &screenInfo, uint32_t fps, RequestLayerInfo &info); 76 RSRcdSurfaceRenderNode::SharedPtr node, const ScreenInfo &screenInfo, uint32_t fps, RequestLayerInfo &info); 78 RSSurfaceRenderNode::SharedPtr node, GraphicTransformType transform, uint32_t fps, RequestLayerInfo &info);
|
| /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/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/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...] |
| /foundation/distributedhardware/distributed_screen/services/common/test/unittest/utils/ |
| H A D | video_param_test.cpp | 114 double fps = 1.0; in HWTEST_F() local 115 videoParam_->SetFps(fps); in HWTEST_F() 117 EXPECT_EQ(fps, actual); in HWTEST_F() 157 double fps = 30.0; in HWTEST_F() local 166 videoParam.SetFps(fps); in HWTEST_F() 189 double fps = 30.0; in HWTEST_F() local 198 videoParam.SetFps(fps); in HWTEST_F() 220 double fps = 30.0; in HWTEST_F() local 234 j[KEY_FPS] = fps; in HWTEST_F()
|
| /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...] |
| /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`;
|
| /foundation/resourceschedule/qos_manager/common/src/ |
| H A D | config_reader.cpp | 37 const std::string XML_TAG_FPS = "fps"; 151 CONCUR_LOGE("ParsePowerMode:: fps is null or invalid!"); in ParsePowerMode() 236 int ConfigReader::GetDegratationFps(int fps) in GetDegratationFps() argument 238 if (degradationFpsMap_.find(fps) == degradationFpsMap_.end()) { in GetDegratationFps() 239 return fps + FPS_OFFSET; in GetDegratationFps() 241 return degradationFpsMap_[fps] + FPS_OFFSET; in GetDegratationFps() 244 bool ConfigReader::IsValidFps(const std::string& fps) in IsValidFps() argument 246 if (fps == XML_TAG_FPS_HIGH || fps == XML_TAG_FPS_MEDIUM || fps in IsValidFps() [all...] |
| /foundation/graphic/graphic_2d/rosen/modules/frame_analyzer/src/ |
| H A D | frame_painter.cpp | 63 // normal fps line: alpha: 0xbf, green #00ff00 in Draw() 66 // slow fps line: alpha: 0xbf, red #ff0000 in Draw() 70 void FramePainter::DrawFPSLine(Drawing::Canvas &canvas, uint32_t fps, double thickness, uint32_t color) in DrawFPSLine() argument 72 if (fps == 0) { in DrawFPSLine() 81 auto bottom = OneSecondInMs / fps * heightPerMs; in DrawFPSLine() 93 uint32_t width, uint32_t height, uint32_t fps) in GenerateTimeBars() 106 if (fps != 0) { in GenerateTimeBars() 107 isHeavy = SumTimesInMs(*rit) >= (OneSecondInMs / fps); in GenerateTimeBars() 92 GenerateTimeBars( uint32_t width, uint32_t height, uint32_t fps) GenerateTimeBars() argument
|
| /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...] |