/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()
|
/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()
|
H A D | wpa_hal.c | 1057 if ((*modes)[loop].rates != NULL) { in WifiWpaHwFeatureDataFree() 1058 os_free((*modes)[loop].rates); in WifiWpaHwFeatureDataFree() 1059 (*modes)[loop].rates = NULL; in WifiWpaHwFeatureDataFree() 1096 modes[loop].rates = NULL; in WifiWpaGetHwFeatureData() 1109 modes[index].rates = os_calloc(modes[index].num_rates, sizeof(uint32_t)); in WifiWpaGetHwFeatureData() 1110 if ((modes[index].channels == NULL) || (modes[index].rates == NULL)) { in WifiWpaGetHwFeatureData() 1124 modes[index].rates[loop] = hwFeatureData.bitrate[loop]; in WifiWpaGetHwFeatureData() 1126 modes[index].rates[loop] = hwFeatureData.bitrate[loop + IEEE80211B_RATES_NUM]; in WifiWpaGetHwFeatureData()
|
/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()
|
/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()
|
H A D | wpa_hal.c | 1060 if ((*modes)[loop].rates != NULL) { in WifiWpaHwFeatureDataFree() 1061 os_free((*modes)[loop].rates); in WifiWpaHwFeatureDataFree() 1062 (*modes)[loop].rates = NULL; in WifiWpaHwFeatureDataFree() 1099 modes[loop].rates = NULL; in WifiWpaGetHwFeatureData() 1112 modes[index].rates = os_calloc(modes[index].num_rates, sizeof(uint32_t)); in WifiWpaGetHwFeatureData() 1113 if ((modes[index].channels == NULL) || (modes[index].rates == NULL)) { in WifiWpaGetHwFeatureData() 1127 modes[index].rates[loop] = hwFeatureData.bitrate[loop]; in WifiWpaGetHwFeatureData() 1129 modes[index].rates[loop] = hwFeatureData.bitrate[loop + IEEE80211B_RATES_NUM]; in WifiWpaGetHwFeatureData()
|
/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
|
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_hw.c | 113 } rates; member 360 if (hw->rates.min > 0) { in snd_pcm_hw_hw_refine() 362 hw->rates.min, 0, hw->rates.max + 1, -1); in snd_pcm_hw_hw_refine() 1704 hw->rates.min = hw->rates.max = 0; in snd_pcm_hw_open_fd() 2074 hw->rates.min = min_rate; in _snd_pcm_hw_open() 2075 hw->rates.max = max_rate; in _snd_pcm_hw_open()
|
/third_party/alsa-lib/src/topology/ |
H A D | pcm.c | 370 caps->rates |= 1 << rate; in split_rate() 448 if (strcmp(id, "rates") == 0) { in tplg_parse_stream_caps() 562 if (err >= 0 && sc->rates) { in tplg_save_stream_caps() 566 if (sc->rates & (1ULL << i)) { in tplg_save_stream_caps() 1762 caps->rates = caps_tpl->rates; in tplg_add_stream_caps() 2086 cap->rates = pcm->caps[i].rates; in tplg_decode_pcm()
|
/third_party/alsa-lib/include/ |
H A D | topology.h | 535 * rates "48000" # Supported rates 986 unsigned int rates; /*!< supported rates SNDRV_PCM_RATE_* */ member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | bss.h | 147 int wpa_bss_get_bit_rates(const struct wpa_bss *bss, u8 **rates);
|
/third_party/node/deps/icu-small/source/i18n/ |
H A D | units_data.cpp | 57 * conversion rates that are found in `value` to the output vector. 466 ConversionRates rates(status); in getPreferencesFor() 472 const ConversionRateInfo* rateInfo = rates.extractConversionInfo(singleUnit->getSimpleUnitID(), status); in getPreferencesFor()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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() 1082 * Sets up the hardware mode, channel, rates, and passive scanning
|