| /kernel/linux/linux-6.6/drivers/acpi/ |
| H A D | fan_attr.c | 21 struct acpi_fan_fps *fps = container_of(attr, struct acpi_fan_fps, dev_attr); in show_state() local 24 if (fps->control == 0xFFFFFFFF || fps->control > 100) in show_state() 27 count = scnprintf(buf, PAGE_SIZE, "%lld:", fps->control); in show_state() 29 if (fps->trip_point == 0xFFFFFFFF || fps->trip_point > 9) in show_state() 32 count += sysfs_emit_at(buf, count, "%lld:", fps->trip_point); in show_state() 34 if (fps->speed == 0xFFFFFFFF) in show_state() 37 count += sysfs_emit_at(buf, count, "%lld:", fps->speed); in show_state() 39 if (fps in show_state() 98 struct acpi_fan_fps *fps = &fan->fps[i]; acpi_fan_create_attributes() local [all...] |
| /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...] |
| /kernel/linux/linux-5.10/drivers/gpu/drm/sti/ |
| H A D | sti_plane.c | 47 struct sti_fps_info *fps; in sti_plane_update_fps() local 53 fps = &plane->fps_info; in sti_plane_update_fps() 56 fps->curr_field_counter++; in sti_plane_update_fps() 58 /* do not perform fps calcul if new_frame is false */ in sti_plane_update_fps() 62 fps->curr_frame_counter++; in sti_plane_update_fps() 63 ms_since_last = ktime_to_ms(ktime_sub(now, fps->last_timestamp)); in sti_plane_update_fps() 64 num_frames = fps->curr_frame_counter - fps->last_frame_counter; in sti_plane_update_fps() 69 fps->last_timestamp = now; in sti_plane_update_fps() 70 fps in sti_plane_update_fps() [all...] |
| /kernel/linux/linux-6.6/drivers/gpu/drm/sti/ |
| H A D | sti_plane.c | 48 struct sti_fps_info *fps; in sti_plane_update_fps() local 54 fps = &plane->fps_info; in sti_plane_update_fps() 57 fps->curr_field_counter++; in sti_plane_update_fps() 59 /* do not perform fps calcul if new_frame is false */ in sti_plane_update_fps() 63 fps->curr_frame_counter++; in sti_plane_update_fps() 64 ms_since_last = ktime_to_ms(ktime_sub(now, fps->last_timestamp)); in sti_plane_update_fps() 65 num_frames = fps->curr_frame_counter - fps->last_frame_counter; in sti_plane_update_fps() 70 fps->last_timestamp = now; in sti_plane_update_fps() 71 fps in sti_plane_update_fps() [all...] |
| /kernel/linux/linux-5.10/drivers/acpi/ |
| H A D | fan.c | 70 struct acpi_fan_fps *fps; member 126 * corresponding to maximum fan->fps[i].control in fan_get_state_acpi4() 128 * fan->fps[] is sorted array with increasing speed. in fan_get_state_acpi4() 130 if (fan->fif.fine_grain_ctrl && control < fan->fps[i].control) { in fan_get_state_acpi4() 133 } else if (control == fan->fps[i].control) { in fan_get_state_acpi4() 195 fan->fps[state].control); in fan_set_state_acpi4() 275 struct acpi_fan_fps *fps = container_of(attr, struct acpi_fan_fps, dev_attr); in show_state() local 278 if (fps->control == 0xFFFFFFFF || fps->control > 100) in show_state() 281 count = scnprintf(buf, PAGE_SIZE, "%lld:", fps in show_state() 336 struct acpi_buffer fps = { offsetof(struct acpi_fan_fps, name), acpi_fan_get_fps() local 351 struct acpi_fan_fps *fps = &fan->fps[i]; acpi_fan_get_fps() local [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()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/powerpc/tm/ |
| H A D | tm-signal-context-chk-fpu.c | 35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *vss); 38 static double fps[] = { variable 55 fail = (ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[i]); in signal_usr1() 59 FPR14 + i, ucp->uc_mcontext.fp_regs[FPR14 + i], fps[i]); in signal_usr1() 65 fail = (tm_ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[NV_FPU_REGS + i]); in signal_usr1() 69 FPR14 + i, tm_ucp->uc_mcontext.fp_regs[FPR14 + i], fps[NV_FPU_REGS + i]); in signal_usr1() 96 * array pointers to it, in that case 'fps', and invoke the in tm_signal_context_chk_fpu() 99 rc = tm_signal_self_context_load(pid, NULL, fps, NULL, NULL); in tm_signal_context_chk_fpu()
|
| /kernel/linux/linux-6.6/tools/testing/selftests/powerpc/tm/ |
| H A D | tm-signal-context-chk-fpu.c | 35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *vss); 38 static double fps[] = { variable 55 fail = (ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[i]); in signal_usr1() 59 FPR14 + i, ucp->uc_mcontext.fp_regs[FPR14 + i], fps[i]); in signal_usr1() 65 fail = (tm_ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[NV_FPU_REGS + i]); in signal_usr1() 69 FPR14 + i, tm_ucp->uc_mcontext.fp_regs[FPR14 + i], fps[NV_FPU_REGS + i]); in signal_usr1() 97 * array pointers to it, in that case 'fps', and invoke the in tm_signal_context_chk_fpu() 100 rc = tm_signal_self_context_load(pid, NULL, fps, NULL, NULL); in tm_signal_context_chk_fpu()
|
| /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...] |
| /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...] |
| /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...] |
| /kernel/linux/linux-5.10/drivers/mfd/ |
| H A D | max77620.c | 337 sprintf(fps_name, "fps%d", fps_id); in max77620_config_fps() 347 ret = of_property_read_u32(fps_np, "maxim,shutdown-fps-time-period-us", in max77620_config_fps() 358 ret = of_property_read_u32(fps_np, "maxim,suspend-fps-time-period-us", in max77620_config_fps() 364 ret = of_property_read_u32(fps_np, "maxim,fps-event-source", in max77620_config_fps() 414 fps_np = of_get_child_by_name(dev->of_node, "fps"); in max77620_initialise_fps() 602 int fps; in max77620_i2c_suspend() local 605 for (fps = 0; fps < MAX77620_FPS_COUNT; fps++) { in max77620_i2c_suspend() 606 if (chip->suspend_fps_period[fps] < in max77620_i2c_suspend() 653 int fps; max77620_i2c_resume() local [all...] |
| /kernel/linux/linux-6.6/drivers/mfd/ |
| H A D | max77620.c | 336 sprintf(fps_name, "fps%d", fps_id); in max77620_config_fps() 346 ret = of_property_read_u32(fps_np, "maxim,shutdown-fps-time-period-us", in max77620_config_fps() 357 ret = of_property_read_u32(fps_np, "maxim,suspend-fps-time-period-us", in max77620_config_fps() 363 ret = of_property_read_u32(fps_np, "maxim,fps-event-source", in max77620_config_fps() 413 fps_np = of_get_child_by_name(dev->of_node, "fps"); in max77620_initialise_fps() 600 int fps; in max77620_i2c_suspend() local 603 for (fps = 0; fps < MAX77620_FPS_COUNT; fps++) { in max77620_i2c_suspend() 604 if (chip->suspend_fps_period[fps] < in max77620_i2c_suspend() 651 int fps; max77620_i2c_resume() local [all...] |