/foundation/graphic/graphic_2d/rosen/test/render_frame_trace/unittest/ |
H A D | frame_rate_report_test.cpp | 47 std::unordered_map<int, uint32_t> rates; in HWTEST_F() local 48 FrameRateReport::GetInstance().SendFrameRates(rates); in HWTEST_F() 49 rates[1008] = 60; in HWTEST_F() 50 rates[-1] = 120; in HWTEST_F() 51 bool ret = FrameRateReport::GetInstance().SendFrameRates(rates); in HWTEST_F() 63 std::unordered_map<int, uint32_t> rates; in HWTEST_F() local 64 FrameRateReport::GetInstance().SendFrameRatesToRss(rates); in HWTEST_F() 65 rates[1008] = 60; in HWTEST_F() 66 rates[-1] = 120; in HWTEST_F() 67 FrameRateReport::GetInstance().SendFrameRatesToRss(rates); in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_render_display_sync.cpp | 143 int32_t RSRenderDisplaySync::GetNearestFrameRate(int32_t num, const std::vector<int32_t>& rates) in GetNearestFrameRate() argument 146 if (!rates.empty()) { in GetNearestFrameRate() 147 auto iter = std::lower_bound(rates.begin(), rates.end(), num); in GetNearestFrameRate() 148 if (iter == rates.end()) { in GetNearestFrameRate() 149 if (num - rates.back() <= FRAME_RATE_THRESHOLD) { in GetNearestFrameRate() 150 rate = rates.back(); in GetNearestFrameRate() 152 } else if (iter == rates.begin()) { in GetNearestFrameRate() 153 if (rates.front() - num <= FRAME_RATE_THRESHOLD) { in GetNearestFrameRate() 154 rate = rates in GetNearestFrameRate() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_frame_trace/src/ |
H A D | frame_rate_report.cpp | 28 bool FrameRateReport::SendFrameRates(const std::unordered_map<int, uint32_t>& rates) in SendFrameRates() argument 30 if (rates.empty()) { in SendFrameRates() 36 OHOS::ConcurrentTask::DDL_RATE, ddlReply, rates); in SendFrameRates() 43 void FrameRateReport::SendFrameRatesToRss(const std::unordered_map<int, uint32_t> rates) in SendFrameRatesToRss() argument 45 if (rates.empty()) { in SendFrameRatesToRss() 50 for (auto it = rates.begin(); it != rates.end(); ++it) { in SendFrameRatesToRss()
|
/third_party/ffmpeg/libavcodec/ |
H A D | libvo-amrwbenc.c | 59 static const int rates[] = { 6600, 8850, 12650, 14250, 15850, 18250, in get_wb_bitrate_mode() local 65 if (rates[i] == bitrate) in get_wb_bitrate_mode() 67 if (best < 0 || abs(rates[i] - bitrate) < min_diff) { in get_wb_bitrate_mode() 69 min_diff = abs(rates[i] - bitrate); in get_wb_bitrate_mode() 75 av_strlcatf(log_buf, sizeof(log_buf), "%.2fk, ", rates[i] / 1000.f); in get_wb_bitrate_mode() 76 av_strlcatf(log_buf, sizeof(log_buf), "using %.2fk", rates[best] / 1000.f); in get_wb_bitrate_mode()
|
H A D | libopencore-amr.c | 160 static const AMR_bitrates rates[] = { in get_bitrate_mode() local 168 if (rates[i].rate == bitrate) in get_bitrate_mode() 169 return rates[i].mode; in get_bitrate_mode() 170 if (best < 0 || abs(rates[i].rate - bitrate) < min_diff) { in get_bitrate_mode() 172 min_diff = abs(rates[i].rate - bitrate); in get_bitrate_mode() 178 av_strlcatf(log_buf, sizeof(log_buf), "%.2fk, ", rates[i].rate / 1000.f); in get_bitrate_mode() 179 av_strlcatf(log_buf, sizeof(log_buf), "using %.2fk", rates[best].rate / 1000.f); in get_bitrate_mode()
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | parseutils.c | 39 static const char *const rates[] = { in test_av_parse_video_rate() local 67 for (i = 0; i < FF_ARRAY_ELEMS(rates); i++) { in test_av_parse_video_rate() 70 ret = av_parse_video_rate(&q, rates[i]); in test_av_parse_video_rate() 72 rates[i], q.num, q.den, ret ? "ERROR" : "OK"); in test_av_parse_video_rate()
|
/foundation/graphic/graphic_2d/rosen/modules/render_frame_trace/include/ |
H A D | frame_rate_report.h | 39 bool SendFrameRates(const std::unordered_map<int, uint32_t>& rates); 40 void SendFrameRatesToRss(const std::unordered_map<int, uint32_t> rates);
|
/foundation/multimedia/audio_framework/frameworks/cj/src/ |
H A D | multimedia_audio_common.cpp | 96 auto rates = static_cast<int32_t *>(malloc(sizeof(int32_t) * rateSize)); in InitializeDeviceRatesAndChannels() local 97 if (rates == nullptr) { in InitializeDeviceRatesAndChannels() 103 rates[iter] = static_cast<int32_t>(rate); in InitializeDeviceRatesAndChannels() 108 device->sampleRates.head = rates; in InitializeDeviceRatesAndChannels() 121 rates[iter] = static_cast<int32_t>(channel); in InitializeDeviceRatesAndChannels()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsrenderdisplaysync_fuzzer/ |
H A D | rsrenderdisplaysync_fuzzer.cpp | 194 std::vector<int32_t> rates;
in DoGetNearestFrameRate() local 195 rates.push_back(value);
in DoGetNearestFrameRate() 197 rsRenderDisplaySync.GetNearestFrameRate(num, rates);
in DoGetNearestFrameRate()
|
/third_party/ffmpeg/libavresample/tests/ |
H A D | avresample.c | 159 /* formats, rates, and layouts are ordered for priority in testing. 176 static const int rates[] = { variable 219 "[<num sample rates> [<num channel layouts>]]]\n" in main() 228 num_rates = av_clip(num_rates, 1, FF_ARRAY_ELEMS(rates)); in main() 263 in_rate = rates[m]; in main() 280 out_rate = rates[n]; in main()
|
/third_party/ffmpeg/libswresample/tests/ |
H A D | swresample.c | 103 static const int rates[] = { variable 240 int remaining_tests[FF_ARRAY_ELEMS(rates) * FF_ARRAY_ELEMS(layouts) * FF_ARRAY_ELEMS(formats) * FF_ARRAY_ELEMS(layouts) * FF_ARRAY_ELEMS(formats)]; in main() 288 out_sample_rate = rates [vector % FF_ARRAY_ELEMS(rates )]; vector /= FF_ARRAY_ELEMS(rates); in main()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
H A D | driver_nl80211_capa.c | 1537 mode->rates = os_calloc(mode->num_rates, sizeof(int)); in phy_info_rates() 1538 if (!mode->rates) in phy_info_rates() 1549 mode->rates[idx] = nla_get_u32( in phy_info_rates() 1766 if (modes[m].rates[i] > 200) { in wpa_driver_nl80211_postprocess_modes() 1812 mode->rates = os_malloc(4 * sizeof(int)); in wpa_driver_nl80211_postprocess_modes() 1813 if (mode->rates == NULL) { in wpa_driver_nl80211_postprocess_modes() 1820 if (mode11g->rates[i] != 10 && mode11g->rates[i] != 20 && in wpa_driver_nl80211_postprocess_modes() 1821 mode11g->rates[i] != 55 && mode11g->rates[ in wpa_driver_nl80211_postprocess_modes() [all...] |
H A D | driver_nl80211_scan.c | 336 struct nlattr *rates; in wpa_driver_nl80211_scan() local 340 rates = nla_nest_start(msg, NL80211_ATTR_SCAN_SUPP_RATES); in wpa_driver_nl80211_scan() 341 if (rates == NULL) in wpa_driver_nl80211_scan() 345 * Remove 2.4 GHz rates 1, 2, 5.5, 11 Mbps from supported rates in wpa_driver_nl80211_scan() 346 * by masking out everything else apart from the OFDM rates 6, in wpa_driver_nl80211_scan() 347 * 9, 12, 18, 24, 36, 48, 54 Mbps from non-MCS rates. All 5 GHz in wpa_driver_nl80211_scan() 348 * rates are left enabled. in wpa_driver_nl80211_scan() 353 nla_nest_end(msg, rates); in wpa_driver_nl80211_scan() 1174 struct nlattr *rates; in wpa_driver_nl80211_vendor_scan() local [all...] |
H A D | driver_hostap.c | 1123 mode->rates = os_zalloc(rlen); in hostap_get_hw_feature_data() 1124 if (mode->channels == NULL || mode->rates == NULL) { in hostap_get_hw_feature_data() 1126 os_free(mode->rates); in hostap_get_hw_feature_data() 1140 mode->rates[0] = 10; in hostap_get_hw_feature_data() 1141 mode->rates[1] = 20; in hostap_get_hw_feature_data() 1142 mode->rates[2] = 55; in hostap_get_hw_feature_data() 1143 mode->rates[3] = 110; in hostap_get_hw_feature_data()
|
/third_party/ffmpeg/libavfilter/ |
H A D | avf_concat.c | 78 AVFilterFormats *formats, *rates = NULL; in query_formats() local 93 rates = ff_all_samplerates(); in query_formats() 94 if ((ret = ff_formats_ref(rates, &ctx->outputs[idx]->incfg.samplerates)) < 0) in query_formats() 106 if ((ret = ff_formats_ref(rates, &ctx->inputs[idx]->outcfg.samplerates)) < 0 || in query_formats() 140 "Video inputs have different frame rates, output will be VFR\n"); in config_output()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/ |
H A D | rs_render_display_sync.h | 41 int32_t GetNearestFrameRate(int32_t num, const std::vector<int32_t>& rates);
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | units_test.cpp | 233 ConversionRates rates(status); in testConversionInfo() 237 UnitsConverter unitsConverter(sourceImpl, targetImpl, rates, status); in testConversionInfo() 419 // Conversion rates: does not take ownership. 534 ConversionRates rates(errorCode); in testConverterWithCLDRTests() 535 UnitsTestContext ctx = {this, &rates}; in testConverterWithCLDRTests() 657 ConversionRates rates(status); in testComplexUnitsConverter() 694 ComplexUnitsConverter converter1(inputImpl, outputImpl, rates, status); in testComplexUnitsConverter()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
H A D | driver_nl80211_scan.c | 346 struct nlattr *rates; in wpa_driver_nl80211_scan() local 350 rates = nla_nest_start(msg, NL80211_ATTR_SCAN_SUPP_RATES); in wpa_driver_nl80211_scan() 351 if (rates == NULL) in wpa_driver_nl80211_scan() 355 * Remove 2.4 GHz rates 1, 2, 5.5, 11 Mbps from supported rates in wpa_driver_nl80211_scan() 356 * by masking out everything else apart from the OFDM rates 6, in wpa_driver_nl80211_scan() 357 * 9, 12, 18, 24, 36, 48, 54 Mbps from non-MCS rates. All 5 GHz in wpa_driver_nl80211_scan() 358 * rates are left enabled. in wpa_driver_nl80211_scan() 363 nla_nest_end(msg, rates); in wpa_driver_nl80211_scan() 1216 struct nlattr *rates; in wpa_driver_nl80211_vendor_scan() local [all...] |
H A D | driver_nl80211_capa.c | 1764 mode->rates = os_calloc(mode->num_rates, sizeof(int)); in phy_info_rates() 1765 if (!mode->rates) in phy_info_rates() 1776 mode->rates[idx] = nla_get_u32( in phy_info_rates() 2008 if (modes[m].rates[i] > 200) { in wpa_driver_nl80211_postprocess_modes() 2026 os_free(modes[m].rates); in wpa_driver_nl80211_postprocess_modes() 2072 mode->rates = os_malloc(4 * sizeof(int)); in wpa_driver_nl80211_postprocess_modes() 2073 if (mode->rates == NULL) { in wpa_driver_nl80211_postprocess_modes() 2080 if (mode11g->rates[i] != 10 && mode11g->rates[i] != 20 && in wpa_driver_nl80211_postprocess_modes() 2081 mode11g->rates[ in wpa_driver_nl80211_postprocess_modes() [all...] |
H A D | driver_hostap.c | 1127 mode->rates = os_zalloc(rlen); in hostap_get_hw_feature_data() 1128 if (mode->channels == NULL || mode->rates == NULL) { in hostap_get_hw_feature_data() 1130 os_free(mode->rates); in hostap_get_hw_feature_data() 1144 mode->rates[0] = 10; in hostap_get_hw_feature_data() 1145 mode->rates[1] = 20; in hostap_get_hw_feature_data() 1146 mode->rates[2] = 55; in hostap_get_hw_feature_data() 1147 mode->rates[3] = 110; in hostap_get_hw_feature_data()
|
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/frame_rate_manager/ |
H A D | hgm_frame_rate_manager.cpp | 464 std::unordered_map<pid_t, uint32_t> rates; in FrameRateReport() local 465 rates[GetRealPid()] = currRefreshRate_; in FrameRateReport() 467 rates[UNI_APP_PID] = currRefreshRate_; in FrameRateReport() 469 rates[UNI_APP_PID] = OLED_60_HZ; in FrameRateReport() 471 rates[UNI_APP_PID] = OLED_120_HZ; in FrameRateReport() 474 GetRealPid(), rates[GetRealPid()], UNI_APP_PID, rates[UNI_APP_PID]); in FrameRateReport() 476 GetRealPid(), rates[GetRealPid()], UNI_APP_PID, rates[UNI_APP_PID]); in FrameRateReport() 477 FRAME_TRACE::FrameRateReport::GetInstance().SendFrameRates(rates); in FrameRateReport() [all...] |
/third_party/pulseaudio/src/modules/alsa/ |
H A D | alsa-util.c | 1418 unsigned int i, j, n, *rates = NULL; in pa_alsa_get_supported_rates() local 1436 rates = pa_xnew(unsigned int, n + 1); in pa_alsa_get_supported_rates() 1440 rates[j++] = all_rates[i]; in pa_alsa_get_supported_rates() 1443 rates[j] = 0; in pa_alsa_get_supported_rates() 1445 rates = pa_xnew(unsigned int, 2); in pa_alsa_get_supported_rates() 1447 rates[0] = fallback_rate; in pa_alsa_get_supported_rates() 1448 if ((ret = snd_pcm_hw_params_set_rate_near(pcm, hwparams, &rates[0], NULL)) < 0) { in pa_alsa_get_supported_rates() 1450 pa_xfree(rates); in pa_alsa_get_supported_rates() 1454 rates[1] = 0; in pa_alsa_get_supported_rates() 1457 return rates; in pa_alsa_get_supported_rates() [all...] |
/third_party/alsa-lib/include/sound/uapi/ |
H A D | asoc.h | 307 __le32 rates; /* supported rates SNDRV_PCM_RATE_* */ member 604 __le32 rates; /* supported rates SNDRV_PCM_RATE_* */ member
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_shader_llvm_vs.c | 607 LLVMValueRef rates; in si_llvm_build_vs_exports() local 615 rates = LLVMConstInt(ctx->ac.i32, (V_0283D0_VRS_SHADING_RATE_4X4 << 2), 0); in si_llvm_build_vs_exports() 629 rates = LLVMConstInt(ctx->ac.i32, (1 << 2) | (1 << 4), 0); in si_llvm_build_vs_exports() 633 rates = LLVMBuildSelect(ctx->ac.builder, in si_llvm_build_vs_exports() 636 rates, ctx->ac.i32_0, ""); in si_llvm_build_vs_exports() 639 v = LLVMBuildOr(ctx->ac.builder, v, rates, ""); in si_llvm_build_vs_exports()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | hw_features.c | 38 os_free(hw_features[i].rates); in hostapd_free_hw_features() 170 return 0; /* No basic rates for 11ad */ in hostapd_prepare_rates() 201 mode->rates[i])) in hostapd_prepare_rates() 205 rate->rate = mode->rates[i]; in hostapd_prepare_rates() 217 wpa_printf(MSG_ERROR, "No rates remaining in supported/basic " in hostapd_prepare_rates() 873 * Sets up the hardware mode, channel, rates, and passive scanning
|