/third_party/pulseaudio/src/pulse/ |
H A D | format.c | 208 pa_format_info_set_rate(f, ss->rate); in pa_format_info_from_sample_spec() 229 if (pa_format_info_get_rate(f, &ss->rate) < 0) in pa_format_info_to_sample_spec() 543 int pa_format_info_get_rate(const pa_format_info *f, uint32_t *rate) { in pa_format_info_get_rate() argument 548 pa_assert(rate); in pa_format_info_get_rate() 555 pa_log_debug("Invalid sample rate: %i", rate_local); in pa_format_info_get_rate() 559 *rate = rate_local; in pa_format_info_get_rate() 611 void pa_format_info_set_rate(pa_format_info *f, int rate) { in pa_format_info_set_rate() argument 612 pa_format_info_set_prop_int(f, PA_PROP_FORMAT_RATE, rate); in pa_format_info_set_rate()
|
H A D | format.h | 103 /**< Additional encoding-specific properties such as sample rate, bitrate, etc. */ 150 * for example the sample rate, so that they match the device parameters, then 225 /** Gets the sample rate stored in the format info. Returns a negative error 226 * code on failure. If the sample rate property is not set at all, returns a 228 int pa_format_info_get_rate(const pa_format_info *f, uint32_t *rate); 262 /** Convenience method to set the sampling rate as a property on the given 265 * Note for PCM: If the sample rate is left unspecified in the pa_format_info 266 * object, then the server will select the stream sample rate. In that case the 267 * stream sample rate will most likely match the device sample rate, meanin [all...] |
H A D | sample.h | 64 * PulseAudio supports any sample rate between 1 Hz and 192000 Hz. There is no 65 * point trying to exceed the sample rate of the output device though as the 130 /** Maximum allowed sample rate */ 256 uint32_t rate; member 257 /**< The sample rate. (e.g. 44100) */ 299 /** Return non-zero if the rate is within the supported range. \since 5.0 */ 300 int pa_sample_rate_valid(uint32_t rate) PA_GCC_PURE;
|
/third_party/libinput/src/ |
H A D | util-prop-parsers.c | 38 * rate. 55 int nread, dpi = 0, rate; in parse_mouse_dpi_property() local 72 /* While we don't do anything with the rate right now we in parse_mouse_dpi_property() 76 rate = 1; in parse_mouse_dpi_property() 78 sscanf(prop, "%d@%d%n", &dpi, &rate, &nread); in parse_mouse_dpi_property() 81 if (!nread || dpi <= 0 || rate <= 0 || prop[nread] == '@') in parse_mouse_dpi_property()
|
/third_party/pulseaudio/src/modules/ |
H A D | module-sine-source.c | 49 "rate=<sample rate> " 74 "rate", 216 ss.rate = 44100; in pa__init() 218 if (pa_modargs_get_sample_rate(ma, &ss.rate) < 0) { in pa__init() 219 pa_log("Invalid rate specification"); in pa__init() 224 if (pa_modargs_get_value_u32(ma, "frequency", &frequency) < 0 || frequency < 1 || frequency > ss.rate/2) { in pa__init() 240 pa_memchunk_sine(&u->memchunk, m->core->mempool, ss.rate, frequency); in pa__init()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
H A D | hashtablez_sampler.cc | 210 // the default sampling rate. in SampleSlow() 254 void SetHashtablezSampleParameter(int32_t rate) { in SetHashtablezSampleParameter() argument 255 if (rate > 0) { in SetHashtablezSampleParameter() 256 g_hashtablez_sample_parameter.store(rate, std::memory_order_release); in SetHashtablezSampleParameter() 258 ABSL_RAW_LOG(ERROR, "Invalid hashtablez sample rate: %lld", in SetHashtablezSampleParameter() 259 static_cast<long long>(rate)); // NOLINT(runtime/int) in SetHashtablezSampleParameter()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | ap_list.c | 44 int rate = (ap->supported_rates[i] & 0x7f) * 5; in ap_list_beacon_olbc() local 45 if (rate == 60 || rate == 90 || rate > 110) in ap_list_beacon_olbc()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | ap_list.c | 44 int rate = (ap->supported_rates[i] & 0x7f) * 5; in ap_list_beacon_olbc() local 45 if (rate == 60 || rate == 90 || rate > 110) in ap_list_beacon_olbc()
|
/third_party/ffmpeg/libavcodec/ |
H A D | j2kenc.c | 744 cblk->passes[passno].rate = ff_mqc_flush_to(&t1->mqc, cblk->passes[passno].flushed, &cblk->passes[passno].flushed_len); in encode_cblk() 745 cblk->passes[passno].rate -= cblk->passes[passno].flushed_len; in encode_cblk() 759 cblk->passes[passno-1].rate = ff_mqc_flush_to(&t1->mqc, cblk->passes[passno-1].flushed, &cblk->passes[passno-1].flushed_len); in encode_cblk() 760 cblk->passes[passno-1].rate -= cblk->passes[passno-1].flushed_len; in encode_cblk() 1219 dr = pass->rate; in makelayer() 1222 dr = pass->rate - cblk->passes[n - 1].rate; in makelayer() 1247 layer->data_len = cblk->passes[n - 1].rate; in makelayer() 1251 layer->data_len = cblk->passes[n - 1].rate - cblk->passes[cblk->ninclpasses - 1].rate; in makelayer() 1671 int rate; parse_layer_rates() local [all...] |
/base/sensors/sensor/test/unittest/common/src/ |
H A D | system_info.cpp | 42 inline double CHK_RATE(double rate)
in CHK_RATE() argument 44 return (rate > CPU_USAGE_MAX ? CPU_USAGE_MAX : rate);
in CHK_RATE()
|
/third_party/alsa-utils/bat/ |
H A D | common.c | 37 bat->rate = fmt->sample_rate; in update_fmt_to_bat() 170 wav->format.sample_rate = bat->rate; in prepare_wav_info() 173 wav->format.bytes_p_second = wav->format.blocks_align * bat->rate; in prepare_wav_info()
|
/third_party/pulseaudio/src/tests/ |
H A D | lfe-filter-test.c | 135 a.rate = 44100; in START_TEST() 148 pa_assert_se(lft.lf = pa_lfe_filter_new(&a, &chmapmono, crossover_freq, a.rate * 10)); in START_TEST() 156 pa_assert_se(lft.lf = pa_lfe_filter_new(&a, &chmapmono, crossover_freq, a.rate * 10)); in START_TEST()
|
H A D | memblockq-test.c | 190 .rate = 48000, in START_TEST() 244 .rate = 48000, in START_TEST() 343 .rate = 48000, in START_TEST() 405 .rate = 48000, in START_TEST() 566 .rate = 48000, in START_TEST()
|
H A D | remix-test.c | 90 ss1.rate = ss2.rate = 44100; in main()
|
/third_party/ffmpeg/libavformat/ |
H A D | dvenc.c | 391 AVRational rate; in dv_write_header() local 402 rate.num = dvc->sys->ltc_divisor; in dv_write_header() 403 rate.den = 1; in dv_write_header() 412 if (tcr && av_timecode_init_from_string(&dvc->tc, rate, tcr->value, s) >= 0) in dv_write_header() 414 return av_timecode_init(&dvc->tc, rate, 0, 0, s); in dv_write_header()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | modargs.c | 392 int pa_modargs_get_sample_rate(pa_modargs *ma, uint32_t *rate) { in pa_modargs_get_sample_rate() argument 395 pa_assert(rate); in pa_modargs_get_sample_rate() 397 rate_local = *rate; in pa_modargs_get_sample_rate() 398 if ((pa_modargs_get_value_u32(ma, "rate", &rate_local)) < 0 || in pa_modargs_get_sample_rate() 402 *rate = rate_local; in pa_modargs_get_sample_rate() 415 if ((pa_modargs_get_sample_rate(ma, &ss.rate)) < 0) in pa_modargs_get_sample_spec()
|
H A D | sink.c | 275 s->default_sample_rate = s->sample_spec.rate; in pa_sink_new() 1505 pa_sample_format_to_string(s->sample_spec.format), s->sample_spec.rate); in pa_sink_reconfigure() 1522 /* We have to try to use the sink input format and rate */ in pa_sink_reconfigure() 1524 desired_spec.rate = spec->rate; in pa_sink_reconfigure() 1527 /* We just try to set the sink input's sample rate if it's not too low */ in pa_sink_reconfigure() 1528 if (spec->rate >= default_rate || spec->rate >= alternate_rate) in pa_sink_reconfigure() 1529 desired_spec.rate = spec->rate; in pa_sink_reconfigure() 4005 pa_sink_set_sample_rate(pa_sink *s, uint32_t rate) pa_sink_set_sample_rate() argument [all...] |
/base/update/updater/services/ui/view/component/ |
H A D | box_progress_adapter.cpp | 100 float rate = static_cast<float>(GetValue()) / (progressWidth_ - 1); in GetPosOfEp() local 103 static_cast<int16_t>(GetX() - ep_->GetWidth() / halfDivisor + GetWidth() * rate), in GetPosOfEp()
|
/third_party/alsa-utils/alsaloop/ |
H A D | effect-sweep.c | 36 unsigned int rate, in effect_init() 51 priv->fs = (float) rate; in effect_init() 32 effect_init(struct lookback *loopback, void *private_data, snd_pcm_access_t access, unsigned int channels, unsigned int rate, snd_pcm_format_t format) effect_init() argument
|
/third_party/ltp/testcases/commands/mkfs/ |
H A D | mkfs01.sh | 68 local rate=1024/512 69 if [ $blocknum -lt "$(($2/$rate*8/10))" ]; then
|
/third_party/nghttp2/lib/ |
H A D | nghttp2_option.c | 148 uint64_t burst, uint64_t rate) { in nghttp2_option_set_stream_reset_rate_limit() 151 option->stream_reset_rate = rate; in nghttp2_option_set_stream_reset_rate_limit() 147 nghttp2_option_set_stream_reset_rate_limit(nghttp2_option *option, uint64_t burst, uint64_t rate) nghttp2_option_set_stream_reset_rate_limit() argument
|
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_option.c | 148 uint64_t burst, uint64_t rate) { in nghttp2_option_set_stream_reset_rate_limit() 151 option->stream_reset_rate = rate; in nghttp2_option_set_stream_reset_rate_limit() 147 nghttp2_option_set_stream_reset_rate_limit(nghttp2_option *option, uint64_t burst, uint64_t rate) nghttp2_option_set_stream_reset_rate_limit() argument
|
/third_party/pulseaudio/src/pulsecore/resampler/ |
H A D | ffmpeg.c | 122 if (!(ffmpeg_data->state = av_resample_init((int) r->o_ss.rate, (int) r->i_ss.rate, 16, 10, 0, 0.8))) { in pa_resampler_ffmpeg_init()
|
/third_party/nghttp2/src/ |
H A D | h2load.cc | 115 rate(0), in Config() 153 bool Config::is_rate_mode() const { return (this->rate != 0); } in is_rate_mode() 248 // Called every rate_period when rate mode is being used 251 auto nclients_per_second = worker->rate; in rate_period_timeout_w_cb() 1552 size_t rate, size_t max_samples, Config *config) in Worker() 1565 rate(rate), in Worker() 2031 size_t rate, size_t max_samples) { in create_worker() 2033 if (config.is_rate_mode() && nclients > rate) { in create_worker() 2034 rate_report << "Up to " << rate << " clien in create_worker() 1551 Worker(uint32_t id, SSL_CTX *ssl_ctx, size_t req_todo, size_t nclients, size_t rate, size_t max_samples, Config *config) Worker() argument 2029 create_worker(uint32_t id, SSL_CTX *ssl_ctx, size_t nreqs, size_t nclients, size_t rate, size_t max_samples) create_worker() argument 3138 auto rate = rate_per_thread; main() local 3190 auto rate = config.rate; main() local [all...] |
/third_party/lame/libmp3lame/ |
H A D | mpglib_interface.c | 465 long rate; in hip123_decode1() local 474 ret = mpg123_getformat(hip->mh, &rate, &channels, &encoding); in hip123_decode1() 499 mpg123_getformat(hip->mh, &rate, &channels, &encoding); in hip123_decode1() 558 mp3data->samplerate = rate; in hip123_decode1() 716 long rate; in hip_finish_pinfo() local 744 pinfo->sampfreq = fi.rate; in hip_finish_pinfo()
|