/aosp_15_r20/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/ |
H A D | Fps.h | 34 // const Fps fps = 60_Hz; 37 // assert(fps == Fps::fromPeriodNsecs(16'666'667)); 39 class Fps { 41 constexpr Fps() = default; 43 static constexpr Fps fromValue(float frequency) { in fromValue() 44 return frequency > 0.f ? Fps(frequency, static_cast<nsecs_t>(1e9f / frequency)) : Fps(); in fromValue() 47 static constexpr Fps fromPeriodNsecs(nsecs_t period) { in fromPeriodNsecs() 48 return period > 0 ? Fps(1e9f / period, period) : Fps(); in fromPeriodNsecs() 60 constexpr Fps(float frequency, nsecs_t period) : mFrequency(frequency), mPeriod(period) {} in Fps() function 67 Fps min = Fps::fromValue(0.f); [all …]
|
/aosp_15_r20/frameworks/native/services/surfaceflinger/Scheduler/ |
H A D | RefreshRateSelector.cpp | 68 std::vector<Fps> constructKnownFrameRates(const DisplayModes& modes) { in constructKnownFrameRates() 69 std::vector<Fps> knownFrameRates = {24_Hz, 30_Hz, 45_Hz, 60_Hz, 72_Hz}; in constructKnownFrameRates() 106 std::pair<unsigned, unsigned> divisorRange(Fps vsyncRate, Fps peakFps, FpsRange range, in divisorRange() 113 // use signed type as `fps / range.max` might be 0 in divisorRange() 163 Fps fps; in createFrameRateModes() member 170 if (a.fps != b.fps) { in createFrameRateModes() 171 return a.fps < b.fps; in createFrameRateModes() 174 // For the same fps the order doesn't really matter, but we still in createFrameRateModes() 193 const auto fps = vsyncRate / divisor; in createFrameRateModes() local 195 if (divisor > 1 && fps < kMinSupportedFrameRate) { in createFrameRateModes() [all …]
|
H A D | RefreshRateSelector.h | 28 #include <scheduler/Fps.h> 53 static constexpr Fps kMinSupportedFrameRate = 20_Hz; 56 static constexpr Fps kFrameRateCategoryRateHigh = 90_Hz; 57 static constexpr Fps kFrameRateCategoryRateNormal = 60_Hz; 58 static constexpr std::pair<Fps, Fps> kFrameRateCategoryRates = {kFrameRateCategoryRateNormal, 179 Fps desiredRefreshRate; 257 Fps pacesetterFps; 268 Fps pacesetterFps = {}) const EXCLUDES(mLock); 279 void setActiveMode(DisplayModeId, Fps renderFrameRate) EXCLUDES(mLock); 285 Fps findClosestKnownFrameRate(Fps frameRate) const; [all …]
|
H A D | VsyncConfiguration.h | 27 #include <scheduler/Fps.h> 42 virtual VsyncConfigSet getConfigsForRefreshRate(Fps fps) const = 0; 45 virtual void setRefreshRateFps(Fps fps) = 0; 58 explicit VsyncConfiguration(Fps currentFps); 61 VsyncConfigSet getConfigsForRefreshRate(Fps fps) const override EXCLUDES(mLock); 77 void setRefreshRateFps(Fps fps) override EXCLUDES(mLock) { in setRefreshRateFps() argument 79 mRefreshRateFps = fps; in setRefreshRateFps() 88 VsyncConfigSet getConfigsForRefreshRateLocked(Fps fps) const REQUIRES(mLock); 90 mutable ftl::SmallMap<Fps, VsyncConfigSet, 2, FpsApproxEqual> mOffsetsCache GUARDED_BY(mLock); 91 Fps mRefreshRateFps GUARDED_BY(mLock); [all …]
|
H A D | LayerHistory.cpp | 73 void trace(const LayerInfo& info, LayerHistory::LayerVoteType type, int fps) { in trace() argument 79 traceType(LayerHistory::LayerVoteType::Heuristic, fps); in trace() 80 traceType(LayerHistory::LayerVoteType::ExplicitDefault, fps); in trace() 81 traceType(LayerHistory::LayerVoteType::ExplicitExactOrMultiple, fps); in trace() 82 traceType(LayerHistory::LayerVoteType::ExplicitExact, fps); in trace() 87 ALOGD("%s: %s @ %d Hz", __FUNCTION__, info.getName().c_str(), fps); in trace() 226 to_string(vote.fps).c_str(), categoryString.c_str(), weight); in summarize() 227 summary.push_back({info->getName(), info->getOwnerUid(), vote.type, vote.fps, in summarize() 232 trace(*info, vote.type, vote.fps.getIntValue()); in summarize() 455 mGameFrameRateOverride[uid].first = Fps::fromValue(frameRateOverride.frameRateHz); in updateGameModeFrameRateOverride() [all …]
|
H A D | Scheduler.cpp | 64 surfaceflinger::Factory& factory, Fps activeRefreshRate, TimeStats& timeStats) in Scheduler() 128 updatePhaseConfiguration(pacesetterId, pacesetterSelectorPtr()->getActiveMode().fps); in setPacesetterDisplay() 288 std::optional<Fps> Scheduler::getFrameRateOverride(uid_t uid) const { in getFrameRateOverride() 305 bool Scheduler::isVsyncInPhase(TimePoint expectedVsyncTime, Fps frameRate) const { in isVsyncInPhase() 320 const auto refreshRate = frameRateMode.fps; in getVsyncPeriod() 352 frameRateMode.fps); in onExpectedPresentTimePosted() 384 AttachedChoreographers{Fps(), {connection}}); in createDisplayEventConnection() 512 void Scheduler::updatePhaseConfiguration(PhysicalDisplayId displayId, Fps refreshRate) { in updatePhaseConfiguration() 604 void Scheduler::setRenderRate(PhysicalDisplayId id, Fps renderFrameRate, bool applyImmediately) { in setRenderRate() 617 LOG_ALWAYS_FATAL_IF(renderFrameRate != mode.fps, in setRenderRate() [all …]
|
H A D | LayerInfo.h | 28 #include <scheduler/Fps.h> 59 static constexpr Fps kMinFpsForFrequentLayer = 10_Hz; 72 Fps fps; member 98 Fps rate; 109 FrameRateVote(Fps rate, FrameRateCompatibility type, 119 FrameRate(Fps rate, FrameRateCompatibility type, 157 static Seamlessness getSeamlessness(Fps rate, Seamlessness seamlessness) { in getSeamlessness() 198 mLayerVote = {mDefaultVote, Fps(), Seamlessness::Default, FrameRateCategory::Default}; in resetLayerVote() 222 Fps getFps(nsecs_t now) const; 253 Fps calculated; [all …]
|
/aosp_15_r20/external/webrtc/rtc_base/experiments/ |
H A D | balanced_degradation_settings.cc | 23 constexpr int kMaxFps = 100; // 100 means unlimited fps. 71 RTC_LOG(LS_WARNING) << "Unsupported fps setting, value ignored."; in IsValidConfig() 81 (config1.fps > 0) == (config2.fps > 0)); in IsValid() 86 if (config1.fps > 0 && config1.fps < config2.fps) { in IsValid() 87 RTC_LOG(LS_WARNING) << "Invalid fps/pixel value provided."; in IsValid() 100 if (config.fps < kMinFps || config.fps > kMaxFps) { in IsValid() 101 RTC_LOG(LS_WARNING) << "Unsupported fps setting, value ignored."; in IsValid() 117 configs[i].fps < configs[i - 1].fps) { in IsValid() 118 RTC_LOG(LS_WARNING) << "Invalid fps/pixel value provided."; in IsValid() 192 absl::optional<int> fps; in GetFps() local [all …]
|
H A D | balanced_degradation_settings.h | 31 CodecTypeSpecific(int qp_low, int qp_high, int fps, int kbps, int kbps_res) in CodecTypeSpecific() 34 fps(fps), in CodecTypeSpecific() 39 return qp_low == o.qp_low && qp_high == o.qp_high && fps == o.fps && 52 int fps = 0; // If unset, defaults to `fps` in Config. member 60 int fps, 71 return pixels == o.pixels && fps == o.fps && kbps == o.kbps && 78 // WebRTC-Video-BalancedDegradationSettings/pixels:100|200|300,fps:5|15|25/ 79 // pixels <= 100 -> min framerate: 5 fps 80 // pixels <= 200 -> min framerate: 15 fps 81 // pixels <= 300 -> min framerate: 25 fps [all …]
|
H A D | balanced_degradation_settings_unittest.cc | 80 "pixels:11|22|33,fps:5|15|25,other:4|5|6/"); in TEST() 122 "pixels:1000|2000|3000,fps:0|15|25/"); in TEST() 130 "pixels:1000|999|3000,fps:5|15|25/"); in TEST() 138 "pixels:1000|2000|3000,fps:5|4|25/"); in TEST() 146 "pixels:1000|2000|3000,fps:5|15|25,vp8_fps:7|8|9,vp9_fps:9|10|11," in TEST() 189 "pixels:1000|2000|3000,fps:7|15|25,vp8_fps:0|15|25/"); in TEST() 197 "pixels:1000|2000|3000,fps:7|15|25,vp8_fps:10|15|2000/"); in TEST() 205 "pixels:1000|2000|3000,fps:4|5|25,vp8_fps:5|4|25/"); in TEST() 213 "pixels:1000|2000|3000,fps:5|15|25/"); in TEST() 228 "pixels:1000|2000|3000,fps:5|15|25,vp8_fps:7|10|12/"); in TEST() [all …]
|
/aosp_15_r20/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | VSyncPredictorTest.cpp | 74 const auto refreshRate = Fps::fromPeriodNsecs(period); in displayMode() 531 Fps::fromPeriodNsecs(divisor * mPeriod))) in TEST_F() 551 const auto renderRateFps = Fps::fromPeriodNsecs(mPeriod * 2); in TEST_F() 571 EXPECT_TRUE(tracker.isVSyncInPhase(mNow + 1 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 2))); in TEST_F() 572 EXPECT_FALSE(tracker.isVSyncInPhase(mNow + 2 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 2))); in TEST_F() 573 EXPECT_TRUE(tracker.isVSyncInPhase(mNow + 3 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 2))); in TEST_F() 575 EXPECT_FALSE(tracker.isVSyncInPhase(mNow + 5 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 4))); in TEST_F() 576 EXPECT_TRUE(tracker.isVSyncInPhase(mNow + 3 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 4))); in TEST_F() 577 EXPECT_FALSE(tracker.isVSyncInPhase(mNow + 4 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 4))); in TEST_F() 578 EXPECT_FALSE(tracker.isVSyncInPhase(mNow + 6 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 4))); in TEST_F() [all …]
|
H A D | LayerInfoTest.cpp | 22 #include <scheduler/Fps.h> 42 static constexpr Fps LO_FPS = 30_Hz; 43 static constexpr Fps HI_FPS = 90_Hz; 51 void setLastRefreshRate(Fps fps) { in setLastRefreshRate() argument 52 layerInfo.mLastRefreshRate.reported = fps; in setLastRefreshRate() 53 layerInfo.mLastRefreshRate.calculated = fps; in setLastRefreshRate() 88 ASSERT_EQ(kExpectedFps, Fps::fromPeriodNsecs(*averageFrameTime)); in TEST_F() 105 ASSERT_EQ(kExpectedFps, Fps::fromPeriodNsecs(*averageFrameTime)); in TEST_F() 147 // Make sure that this doesn't influence the calculated average FPS. 167 ASSERT_EQ(kExpectedFps, Fps::fromPeriodNsecs(*averageFrameTime)); in TEST_F() [all …]
|
H A D | FpsTest.cpp | 20 #include <scheduler/Fps.h> 27 EXPECT_FALSE(Fps().isValid()); in TEST() 33 EXPECT_FALSE(Fps::fromPeriodNsecs(0).isValid()); in TEST() 35 const Fps fps = Fps::fromPeriodNsecs(16'666'667); in TEST() local 36 EXPECT_TRUE(fps.isValid()); in TEST() 37 EXPECT_EQ(fps, 60_Hz); in TEST() 53 // Fps with difference of 1 should be different. in TEST() 72 const auto fps = Fps::fromPeriodNsecs(16'666'665); in TEST() local 74 EXPECT_TRUE((FpsRange{60.000004_Hz, 60.000004_Hz}.includes(fps))); in TEST() 75 EXPECT_TRUE((FpsRange{59_Hz, 60.1_Hz}.includes(fps))); in TEST() [all …]
|
H A D | RefreshRateSelectorTest.cpp | 30 #include <scheduler/Fps.h> 63 void setActiveMode(DisplayModeId modeId, Fps renderFrameRate) { in setActiveMode() 100 const std::vector<Fps>& knownFrameRates() const { return mKnownFrameRates; } in knownFrameRates() 108 GlobalSignals signals = {}, Fps pacesetterFps = {}) const { in getRankedFrameRates() 219 static_cast<Fps>(120_Hz).getPeriodNsecs()})); 224 static_cast<Fps>(60_Hz).getPeriodNsecs()}, 1044 for (float fps = 23.0f; fps < 25.0f; fps += 0.1f) { in TEST_P() local 1045 lr.desiredRefreshRate = Fps::fromValue(fps); in TEST_P() 1060 for (float fps = 23.0f; fps < 25.0f; fps += 0.1f) { in TEST_P() local 1061 lr.desiredRefreshRate = Fps::fromValue(fps); in TEST_P() [all …]
|
H A D | FpsOps.h | 19 #include <scheduler/Fps.h> 23 // Pull Fps operators into its namespace to enable ADL for EXPECT_EQ, EXPECT_LT, etc. 25 inline bool operator==(Fps lhs, Fps rhs) { 29 inline bool operator<(Fps lhs, Fps rhs) { 33 inline bool operator!=(Fps lhs, Fps rhs) { 37 inline bool operator>(Fps lhs, Fps rhs) { 41 inline bool operator<=(Fps lhs, Fps rhs) { 45 inline bool operator>=(Fps lhs, Fps rhs) {
|
/aosp_15_r20/hardware/google/camera/common/profiler/ |
D | profiler.h | 43 // After add FPS option, here are the combination results. 48 // - FPS with total frames on process start function 52 // - FPS with total frames on process start function 56 // - FPS with total frames on process start function 58 // Print FPS per interval on ProfileFrameRate function 61 // Print FPS per interval on process start and ProfileFrameRate function 64 // - FPS with total frames on process start function 66 // Print FPS per interval on process start and ProfileFrameRate function 69 // - FPS with total frames on process start function 71 // Print FPS per interval on process start and ProfileFrameRate function [all …]
|
/aosp_15_r20/external/autotest/client/bin/ |
H A D | fps_meter.py | 6 """Checks kernel tracing events to get the FPS of a CrOS device. 20 [111111111111111111111111111111111111111111111111111111111111] FPS: 60 21 [111111111111111111111111111111111111111111111111111111111111] FPS: 60 22 [11111111111111111111111111111111111111111111111 111111111111] FPS: 59 23 [111111111111111111111111111111111111111111111111111111111111] FPS: 60 24 [11111111111111 11111111111111111111 11111111 111111111111111] FPS: 57 25 [111111111111111111111111111111111 11111111111111111111111] FPS: 56 26 [111 111111111111111111111111111111111111111111111111111111] FPS: 57 31 def callback(fps): 37 When used as a library, it launches two threads to monitor system FPS rate [all …]
|
/aosp_15_r20/device/amlogic/yukawa/media_xml/ |
D | media_profiles.xml | 81 <!-- low: 176 x 144 30fps --> 94 <!-- high: 3840 x 2160 30fps --> 107 <!-- qcif: 176 x 144 30fps --> 120 <!-- qvga: 320 x 240 30fps --> 133 <!-- cif: 352 x 288 30fps --> 146 <!-- 480p: 720 x 480 30fps --> 159 <!-- 720p: 1280 x 720 60fps --> 172 <!-- 1080p: 1920 x 1080 60fps --> 185 <!-- timelapse_qcif: 176 x 144 30fps --> 199 <!-- timelapse_cif: 352 x 288 30fps --> [all …]
|
/aosp_15_r20/external/libaom/av1/encoder/ |
H A D | firstpass.c | 856 static void normalize_firstpass_stats(FIRSTPASS_STATS *fps, in normalize_firstpass_stats() argument 859 fps->coded_error /= num_mbs_16x16; in normalize_firstpass_stats() 860 fps->sr_coded_error /= num_mbs_16x16; in normalize_firstpass_stats() 861 fps->intra_error /= num_mbs_16x16; in normalize_firstpass_stats() 862 fps->frame_avg_wavelet_energy /= num_mbs_16x16; in normalize_firstpass_stats() 863 fps->log_coded_error = log1p(fps->coded_error); in normalize_firstpass_stats() 864 fps->log_intra_error = log1p(fps->intra_error); in normalize_firstpass_stats() 865 fps->MVr /= f_h; in normalize_firstpass_stats() 866 fps->mvr_abs /= f_h; in normalize_firstpass_stats() 867 fps->MVc /= f_w; in normalize_firstpass_stats() [all …]
|
/aosp_15_r20/cts/tests/mediapc/requirements/ |
H A D | requirements.txtpb | 298 …er sessions (AVC or HEVC) in any codec combination running concurrently at 720p resolution@30 fps." 303 double_value: 171 # 6 decoders * 30 fps * 0.95 tolerance factor 340 …later) in any codec combination running concurrently at 720p resolution@30 fps. *Only 2 instances … 345 double_value: 171 # 6 decoders * 30 fps * 0.95 tolerance factor 360 double_value: 57 # 2 decoders * 30 fps * 0.95 tolerance factor 377 double_value: 171 # 6 decoders * 30 fps * 0.95 tolerance factor 394 …HEVC, VP9, AV1 or later) in any codec combination running concurrently at 1080p resolution@30 fps." 399 double_value: 171 # 6 decoders * 30 fps * 0.95 tolerance factor 414 …ing concurrently with 3 sessions at 1080p resolution@30 fps and 3 sessions at 4k resolution@30fps,… 419 double_value: 171 # 6 decoders * 30 fps * 0.95 tolerance factor [all …]
|
/aosp_15_r20/external/autotest/server/cros/tradefed/ |
H A D | tradefed_utils_unittest.py | 267 {'units': 'fps', 272 {'units': 'fps', 277 {'units': 'fps', 282 {'units': 'fps', 287 {'units': 'fps', 292 {'units': 'fps', 297 {'units': 'fps', 302 {'units': 'fps', 307 {'units': 'fps', 312 {'units': 'fps', [all …]
|
/aosp_15_r20/external/iproute2/misc/ |
H A D | lnstat.c | 128 struct field_params *fps, int interval) in map_field_params() argument 134 if (!fps->num) { in map_field_params() 137 fps->params[j].lf = &lf->fields[i]; in map_field_params() 138 fps->params[j].lf->file->interval.tv_sec = in map_field_params() 140 if (!fps->params[j].print.width) in map_field_params() 141 fps->params[j].print.width = in map_field_params() 153 fps->num = j; in map_field_params() 157 for (i = 0; i < fps->num; i++) { in map_field_params() 158 fps->params[i].lf = lnstat_find_field(lnstat_files, in map_field_params() 159 fps->params[i].name); in map_field_params() [all …]
|
/aosp_15_r20/cts/apps/CameraITS/tests/scene4/ |
H A D | test_30_60fps_preview_fov_match.py | 14 """Verify 30FPS and 60FPS preview videos have the same FoV.""" 86 The test captures two videos, one with 30 fps and another with 60 fps. 108 def _do_preview_recording(cam, resolution, stabilize, fps): argument 117 fps: integer; frames per second capture rate 126 ae_target_fps_min=fps, ae_target_fps_max=fps) 136 logging.debug('recorded %s preview name: %s', fps, preview_file_name) 143 if not math.isclose(preview_frame_rate, fps, abs_tol=_FPS_ATOL): 146 preview_frame_rate, fps, _FPS_ATOL) 173 # Recording preview streams 30/60 fps with stabilization off 175 cam, preview_size, stabilize=False, fps=30) [all …]
|
/aosp_15_r20/external/webrtc/call/adaptation/ |
H A D | video_source_restrictions_unittest.cc | 85 // Both resolution and fps restricted. in TEST() 94 // Unlimited > limited fps. in TEST() 96 // Unlimited > limited resolution + limited fps. in TEST() 98 // Limited resolution > limited resolution + limited fps. in TEST() 100 // Limited fps > limited resolution + limited fps. in TEST() 102 // Limited resolution + fps > More limited resolution + more limited fps in TEST() 110 // Limited fps < Unlimited. in TEST() 112 // Limited resolution + limited fps < unlimited. in TEST() 114 // Limited resolution + limited fps < limited resolution. in TEST() 116 // Limited resolution + limited fps < limited fps. in TEST() [all …]
|
/aosp_15_r20/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/power/ |
D | FpsThrottler.kt | 40 private var fps: Float = FPS_60 variable in com.google.android.torus.core.power.FpsThrottler 43 private var frameTimeMillis: Double = 1000.0 / fps.toDouble() 53 frameTimeMillis = 1000.0 / fps.toDouble() in updateFrameTime() 57 * If [fps] is non-zero, update the requested FPS and calculate the frame time 58 * for the requested FPS. Otherwise disable continuous rendering (on demand rendering) 61 * @param fps The requested FPS value. 63 fun updateFps(fps: Float) { in updateFps() 64 if (fps <= 0f) { in updateFps() 68 this.fps = fps in updateFps() 90 * if enough time has passed since the last render to maintain requested FPS. [all …]
|