Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 1343) sorted by relevance

12345678910>>...54

/third_party/alsa-lib/src/pcm/
Dpcm_rate.c124 snd_pcm_rate_t *rate = pcm->private_data; in snd_pcm_rate_hw_refine_cprepare() local
139 if (rate->rate_min) { in snd_pcm_rate_hw_refine_cprepare()
141 rate->rate_min, 0); in snd_pcm_rate_hw_refine_cprepare()
145 if (rate->rate_max) { in snd_pcm_rate_hw_refine_cprepare()
147 rate->rate_max, 0); in snd_pcm_rate_hw_refine_cprepare()
157 snd_pcm_rate_t *rate = pcm->private_data; in snd_pcm_rate_hw_refine_sprepare() local
162 if (rate->sformat != SND_PCM_FORMAT_UNKNOWN) { in snd_pcm_rate_hw_refine_sprepare()
163 _snd_pcm_hw_params_set_format(sparams, rate->sformat); in snd_pcm_rate_hw_refine_sprepare()
167 rate->srate, 0, rate->srate + 1, -1); in snd_pcm_rate_hw_refine_sprepare()
174 snd_pcm_rate_t *rate = pcm->private_data; in snd_pcm_rate_hw_refine_schange() local
[all …]
Dpcm_rate_linear.c43 void (*func)(struct rate_linear *rate,
52 struct rate_linear *rate = obj; in input_frames() local
56 return muldiv_near(frames, LINEAR_DIV, rate->pitch); in input_frames()
61 struct rate_linear *rate = obj; in output_frames() local
65 return muldiv_near(frames, rate->pitch, LINEAR_DIV); in output_frames()
68 static void linear_expand(struct rate_linear *rate, in linear_expand() argument
79 void *get = get16_labels[rate->get_idx]; in linear_expand()
80 void *put = put16_labels[rate->put_idx]; in linear_expand()
81 unsigned int get_threshold = rate->pitch; in linear_expand()
88 for (channel = 0; channel < rate->channels; ++channel) { in linear_expand()
[all …]
Dpcm_simple.c49 unsigned int *rate, in set_hw_params() argument
79 err = INTERNAL(snd_pcm_hw_params_set_rate_near)(pcm, hw_params, rate, 0); in set_hw_params()
158 unsigned int rate, in snd_spcm_init() argument
173 assert(rate >= 5000 && rate <= 786000); in snd_spcm_init()
176 rrate = rate; in snd_spcm_init()
211 unsigned int rate, in snd_spcm_init_duplex() argument
230 assert(rate >= 5000 && rate <= 768000); in snd_spcm_init_duplex()
246 rrate = rate; in snd_spcm_init_duplex()
285 unsigned int *rate, in snd_spcm_init_get_params() argument
292 if (rate) in snd_spcm_init_get_params()
[all …]
/third_party/mindspore/mindspore/nn/probability/distribution/
Dexponential.py126 rate=None, argument
134 param['param_dict'] = {'rate': rate}
139 self._rate = self._add_parameter(rate, 'rate')
140 if self.rate is not None:
141 check_greater_zero(self.rate, 'rate')
161 s = 'rate = {}'.format(self.rate)
167 def rate(self): member in Exponential
176 def _get_dist_args(self, rate=None): argument
177 if rate is not None:
178 self.checktensor(rate, 'rate')
[all …]
Dpoisson.py112 rate=None, argument
120 param['param_dict'] = {'rate': rate}
125 if isinstance(rate, (int, float)):
130 self._rate = self._add_parameter(rate, 'rate')
131 if self.rate is not None:
132 check_greater_zero(self.rate, 'rate')
151 def rate(self): member in Poisson
160 s = 'rate = {}'.format(self.rate)
168 def _get_dist_args(self, rate=None): argument
169 if rate is not None:
[all …]
Dgamma.py140 rate=None, argument
148 param['param_dict'] = {'concentration': concentration, 'rate': rate}
155 if isinstance(rate, (int, float)):
161 self._rate = self._add_parameter(rate, 'rate')
199 def rate(self): member in Gamma
209 def _get_dist_args(self, concentration=None, rate=None): argument
214 if rate is not None:
215 self.checktensor(rate, 'rate')
217 rate = self._rate
218 return concentration, rate
[all …]
/third_party/pulseaudio/src/pulsecore/
Dmime-type.c38 if (ss->rate != 8000 && in pa_sample_spec_is_mime()
39 ss->rate != 11025 && in pa_sample_spec_is_mime()
40 ss->rate != 16000 && in pa_sample_spec_is_mime()
41 ss->rate != 22050 && in pa_sample_spec_is_mime()
42 ss->rate != 24000 && in pa_sample_spec_is_mime()
43 ss->rate != 32000 && in pa_sample_spec_is_mime()
44 ss->rate != 44100 && in pa_sample_spec_is_mime()
45 ss->rate != 48000) in pa_sample_spec_is_mime()
60 if (ss->rate != 8000) in pa_sample_spec_is_mime()
87 if (ss->rate > 44100) in pa_sample_spec_mimefy()
[all …]
Dcore-format.c42 pa_format_info_set_rate(format, ss->rate); in pa_format_info_from_sample_spec2()
89 r = pa_format_info_get_rate(f, &ss_local.rate); in pa_format_info_to_sample_spec2()
91 ss_local.rate = fallback_ss->rate; in pa_format_info_to_sample_spec2()
95 pa_assert(pa_sample_rate_valid(ss_local.rate)); in pa_format_info_to_sample_spec2()
131 int rate; in pa_format_info_to_sample_spec_fake() local
157 …pa_return_val_if_fail(pa_format_info_get_prop_int(f, PA_PROP_FORMAT_RATE, &rate) == 0, -PA_ERR_INV… in pa_format_info_to_sample_spec_fake()
158 ss->rate = (uint32_t) rate; in pa_format_info_to_sample_spec_fake()
161 ss->rate *= 4; in pa_format_info_to_sample_spec_fake()
/third_party/libnl/lib/cli/qdisc/
Dhtb.c90 long rate; in htb_parse_class_argv() local
123 rate = nl_size2int(optarg); in htb_parse_class_argv()
124 if (rate < 0) { in htb_parse_class_argv()
125 nl_cli_fatal(rate, "Unable to parse htb rate " in htb_parse_class_argv()
129 rtnl_htb_set_rate(class, rate); in htb_parse_class_argv()
133 rate = nl_size2int(optarg); in htb_parse_class_argv()
134 if (rate < 0) { in htb_parse_class_argv()
135 nl_cli_fatal(rate, "Unable to parse htb ceil rate " in htb_parse_class_argv()
139 rtnl_htb_set_ceil(class, rate); in htb_parse_class_argv()
147 rate = nl_size2int(optarg); in htb_parse_class_argv()
[all …]
/third_party/ffmpeg/libavutil/
Dtimecode.c65 return av_timecode_get_smpte(tc->rate, drop, hh, mm, ss, ff); in av_timecode_get_smpte_from_framenum()
68 uint32_t av_timecode_get_smpte(AVRational rate, int drop, int hh, int mm, int ss, int ff) in av_timecode_get_smpte() argument
74 if (av_cmp_q(rate, (AVRational) {30, 1}) == 1) { in av_timecode_get_smpte()
76 if (av_cmp_q(rate, (AVRational) {50, 1}) == 0) in av_timecode_get_smpte()
136 char *av_timecode_make_smpte_tc_string2(char *buf, AVRational rate, uint32_t tcsmpte, int prevent_d… in av_timecode_make_smpte_tc_string2() argument
144 if (av_cmp_q(rate, (AVRational) {30, 1}) == 1) { in av_timecode_make_smpte_tc_string2()
147 if (av_cmp_q(rate, (AVRational) {50, 1}) == 0) in av_timecode_make_smpte_tc_string2()
202 tc->rate.num, tc->rate.den); in check_timecode()
207 static int fps_from_frame_rate(AVRational rate) in fps_from_frame_rate() argument
209 if (!rate.den || !rate.num) in fps_from_frame_rate()
[all …]
Dtimecode.h44 AVRational rate; ///< frame rate in rational form member
96 uint32_t av_timecode_get_smpte(AVRational rate, int drop, int hh, int mm, int ss, int ff);
127 char *av_timecode_make_smpte_tc_string2(char *buf, AVRational rate, uint32_t tcsmpte, int prevent_d…
161 int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx);
178 int av_timecode_init_from_components(AVTimecode *tc, AVRational rate, int flags, int hh, int mm, in…
190 int av_timecode_init_from_string(AVTimecode *tc, AVRational rate, const char *str, void *log_ctx);
197 int av_timecode_check_frame_rate(AVRational rate);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCScheduleE5500.td74 [30, 2, 2], // Latency= 4..26, Repeat rate= 4..26
80 [20, 2, 2], // Latency= 4..16, Repeat rate= 4..16
85 [11], // Latency = 7, Repeat rate = 1
89 [11, 2, 2], // Latency = 7, Repeat rate = 7
94 [9, 2, 2], // Latency = 4..7, Repeat rate = 2..4
100 [8, 2, 2], // Latency = 4, Repeat rate = 1
106 [8, 2, 2], // Latency = 4, Repeat rate = 1
122 [6, 2, 2], // Latency = 2, Repeat rate = 2
127 [5, 2, 2], // Latency = 1, Repeat rate = 1
132 [6, 2, 2], // Latency = 2, Repeat rate = 2
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Dgstaudiostreamalign.c47 gint rate; member
83 gst_audio_stream_align_new (gint rate, GstClockTime alignment_threshold, in gst_audio_stream_align_new() argument
88 g_return_val_if_fail (rate != 0, NULL); in gst_audio_stream_align_new()
93 align->rate = rate; in gst_audio_stream_align_new()
154 gst_audio_stream_align_set_rate (GstAudioStreamAlign * align, gint rate) in gst_audio_stream_align_set_rate() argument
157 g_return_if_fail (rate != 0); in gst_audio_stream_align_set_rate()
159 if (align->rate == rate) in gst_audio_stream_align_set_rate()
162 align->rate = rate; in gst_audio_stream_align_set_rate()
181 return align->rate; in gst_audio_stream_align_get_rate()
361 gst_util_uint64_scale (start_time, ABS (align->rate), GST_SECOND); in gst_audio_stream_align_process()
[all …]
/third_party/openGLES/extensions/NV/
DNV_primitive_shading_rate.txt51 provide OpenGL API support for using a per-primitive shading rate value to
52 control the computation of the rate used to process each fragment.
54 In the NV_shading_rate_image extension, the shading rate for each fragment
56 shading rate image and using that value as an index into a shading rate
57 palette. That extension provides a separate shading rate image lookup
60 viewport to determine the shading rate.
62 This extension decouples the shading rate image enables and palettes from
67 palette to determine the shading rate. Otherwise, the viewport number for
95 (modify the introduction of the shading rate image functionality to decouple
96 shading rate image enables and viewports)
[all …]
DNV_shading_rate_image.txt76 This extension allows applications to bind and enable a shading rate image
82 rate image is an immutable-format two-dimensional or two-dimensional array
87 bound shading rate image and looks up the fetched value in a palette of
88 shading rates. The shading rate used can vary from (finest) 16 fragment
96 shading rate used for each fragment. Additionally, the GLSL extension also
99 entire fragment when the shading rate specifies multiple pixels per fragment
103 shading rate image and related state are ignored when rendering to the
112 enum *rate);
115 void ShadingRateSampleOrderCustomNV(enum rate, uint samples,
117 void GetShadingRateSampleLocationivNV(enum rate, uint samples,
[all …]
/third_party/python/Lib/test/
Dtest_ossaudiodev.py30 rate = au.getframerate()
41 return (data, rate, 16, nchannels)
45 def play_sound_file(self, data, rate, ssize, nchannels): argument
76 expected_time = float(len(data)) / (ssize/8) / nchannels / rate
79 dsp.setparameters(AFMT_S16_NE, nchannels, rate)
103 (fmt, channels, rate) = config
106 dsp.speed(rate) == rate):
114 result = dsp.setparameters(fmt, channels, rate, False)
115 self.assertEqual(result, (fmt, channels, rate),
118 result = dsp.setparameters(fmt, channels, rate, True)
[all …]
/third_party/node/benchmark/
Drun.js68 console.log(`"${data.name}", "${conf}", ${data.rate}, ${data.time}`);
70 let rate = data.rate.toString().split('.');
71 rate[0] = rate[0].replace(/(\d)(?=(?:\d\d\d)+(?!\d))/g, '$1,');
72 rate = (rate[1] ? rate.join('.') : rate[0]);
73 console.log(`${data.name} ${conf}: ${rate}`);
Dscatter.R52 rate = subdat$rate; functionVar
56 if (length(rate) > 1) {
57 se = sqrt(var(rate)/length(rate));
58 ci = se * qt(0.975, length(rate) - 1)
63 rate = mean(rate), nameattr
78 aes(ymin=rate-confidence.interval, ymax=rate+confidence.interval),
/third_party/alsa-lib/test/
Dchmap.c51 static int setup_pcm(snd_pcm_t *pcm, int format, int channels, int rate) in setup_pcm() argument
73 if (rate > 0) { in setup_pcm()
74 if (snd_pcm_hw_params_set_rate_near(pcm, params, (unsigned int *)&rate, 0) < 0) { in setup_pcm()
75 printf("Cannot set rate %d\n", rate); in setup_pcm()
86 static int get_chmap(snd_pcm_t *pcm, int format, int channels, int rate) in get_chmap() argument
90 if (setup_pcm(pcm, format, channels, rate)) in get_chmap()
103 static int set_chmap(snd_pcm_t *pcm, int format, int channels, int rate, in set_chmap() argument
120 if (setup_pcm(pcm, format, channels, rate)) in set_chmap()
157 int rate = 0; in main() local
179 rate = atoi(optarg); in main()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/audiobuffersplit/
Dgstaudiobuffersplit.c397 gint rate, gint bpf, guint samples_per_buffer) in gst_audio_buffer_split_output() argument
430 gst_util_uint64_scale (self->current_offset, GST_SECOND, rate); in gst_audio_buffer_split_output()
431 if (self->out_segment.rate < 0.0) { in gst_audio_buffer_split_output()
437 gst_util_uint64_scale (size / bpf, GST_SECOND, rate); in gst_audio_buffer_split_output()
444 gst_util_uint64_scale (self->current_offset, GST_SECOND, rate); in gst_audio_buffer_split_output()
482 GstBuffer * buffer, GstAudioFormat format, gint rate, gint bpf, in gst_audio_buffer_split_handle_discont() argument
498 (gst_buffer_get_size (buffer) / bpf) / ABS (self->in_segment.rate); in gst_audio_buffer_split_handle_discont()
502 if (self->in_segment.rate < 0) { in gst_audio_buffer_split_handle_discont()
511 && self->in_segment.rate != self->out_segment.rate); in gst_audio_buffer_split_handle_discont()
527 if (self->in_segment.rate < 0.0) { in gst_audio_buffer_split_handle_discont()
[all …]
/third_party/python/Lib/
Dsndhdr.py107 rate = func(h[16:20])
124 return filetype, rate, nchannels, nframe, sample_bits
134 rate = 22050 / divisor
136 rate = 0
137 return 'hcom', rate, 1, -1, 8
146 rate = 0
150 rate = int(1000000.0 / ratecode)
151 return 'voc', rate, 1, -1, 8
184 rate = get_short_le(h[20:22])
185 return 'sndt', rate, 1, nsamples, 8
[all …]
/third_party/gstreamer/gstplugins_good/sys/oss/
Doss_probe.c49 static void add_rate (GArray * array, int rate);
208 int rate; in check_rate() local
212 rate = irate; in check_rate()
218 ioctl (probe->fd, SNDCTL_DSP_SPEED, &rate); in check_rate()
220 g_print ("rate %d -> %d\n", irate, rate); in check_rate()
222 if (rate == irate - 1 || rate == irate + 1) { in check_rate()
223 rate = irate; in check_rate()
225 add_rate (probe->rates, rate); in check_rate()
226 return rate; in check_rate()
230 add_rate (GArray * array, int rate) in add_rate() argument
[all …]
/third_party/iptables/extensions/
Dlibxt_rateest.man1 The rate estimator can match on estimated rates as collected by the RATEEST
2 target. It supports matching on absolute bps/pps values, comparing two rate
3 estimators and matching on the difference between two rate estimators.
19 \fBrateest1\fP \fIoperator\fP \fBrateest2\fP \fBrateest-bps\fP(without rate!)
21 \fBrateest1\fP \fIoperator\fP \fBrateest2\fP \fBrateest-pps\fP(without rate!)
32 between the estimator-determined flow rate and the static value chosen with the
33 BPS/PPS options. If the flow rate is higher than the specified BPS/PPS, 0 will
38 Match if rate is less than given rate/estimator.
41 Match if rate is greater than given rate/estimator.
44 Match if rate is equal to given rate/estimator.
[all …]
/third_party/gstreamer/gstplugins_bad/gst/segmentclip/
Dgstaudiosegmentclip.c88 self->rate = self->framesize = 0; in gst_audio_segment_clip_reset()
104 if (!self->rate || !self->framesize) { in gst_audio_segment_clip_clip_buffer()
125 gst_audio_buffer_clip (buffer, segment, self->rate, self->framesize); in gst_audio_segment_clip_clip_buffer()
132 if (segment->rate >= 0) { in gst_audio_segment_clip_clip_buffer()
139 self->framesize * self->rate); in gst_audio_segment_clip_clip_buffer()
145 if (segment->rate >= 0) { in gst_audio_segment_clip_clip_buffer()
167 gint rate, channels, width; in gst_audio_segment_clip_set_caps() local
173 rate = GST_AUDIO_INFO_RATE (&info); in gst_audio_segment_clip_set_caps()
178 rate, channels, width); in gst_audio_segment_clip_set_caps()
179 self->rate = rate; in gst_audio_segment_clip_set_caps()
/third_party/mindspore/tests/ut/python/nn/probability/distribution/
Dtest_poisson.py94 def construct(self, value, rate): argument
95 prob = self.p.prob(value, rate)
96 log_prob = self.p.log_prob(value, rate)
97 cdf = self.p.cdf(value, rate)
98 log_cdf = self.p.log_cdf(value, rate)
99 sf = self.p.survival_function(value, rate)
100 log_sf = self.p.log_survival(value, rate)
109 rate = Tensor([0.5, 0.5, 0.5, 0.5, 0.5], dtype=dtype.float32)
110 ans = net(value, rate)
144 def construct(self, value, rate): argument
[all …]

12345678910>>...54