Home
last modified time | relevance | path

Searched refs:sample_width (Results 1 – 7 of 7) sorted by relevance

/external/autotest/server/brillo/feedback/
Dclosed_loop_audio_client.py36 def _max_volume(sample_width): argument
45 return (1 << 8) if sample_width == 1 else (1 << (sample_width * 8 - 1))
150 sample_width=_DEFAULT_SAMPLE_WIDTH, argument
163 self.sample_width = sample_width
170 (num_channels, duration_secs, sample_rate, sample_width,
193 sample_width=self.sample_width)
199 max_vol = _max_volume(self.sample_width) * _SILENCE_THRESHOLD
228 sample_width=self.sample_width)
274 sample_width=_DEFAULT_SAMPLE_WIDTH, argument
292 self.sample_width = sample_width
[all …]
/external/autotest/server/brillo/
Daudio_utils.py54 sample_width = wave_file.getsampwidth()
55 if sample_width == 1:
57 elif sample_width == 2:
59 elif sample_width == 4:
68 if sample_width == 1:
75 sample_width=None): argument
97 if sample_width is not None and chk_file.getsampwidth() != sample_width:
99 sample_width, chk_file.getsampwidth())
113 def generate_sine_file(host, num_channels, sample_rate, sample_width, argument
131 if sample_width == 1:
[all …]
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dsignal_processing.py132 bit_depth=template.sample_width * 8,
154 bit_depth=template.sample_width * 8)
194 if signal.sample_width != 2: # Note that signal.sample_width is in bytes.
252 'sample_width': signal.sample_width,
286 'sample_width': signal.sample_width,
/external/autotest/site_utils/tester_feedback/
Daudio_query_delegate_impl.py158 def _prepare_impl(self, use_file, sample_width, sample_rate, argument
179 self._sample_width = sample_width
209 sample_width=self._sample_width)
/external/kernel-headers/original/uapi/sound/
Dsb16_csp.h80 int sample_width; /* sample width, look above */ member
/external/skqp/src/core/
DSkScalerContext.cpp269 const int sample_width = src.width(); in pack4xHToLCD16() local
309 … for (int sample_x = -4, pixel_x = 0; sample_x < sample_width + 4; sample_x += 4, ++pixel_x) { in pack4xHToLCD16()
312 ; sample_index < SkMin32(sample_x + 8, sample_width) in pack4xHToLCD16()
/external/skia/src/core/
DSkScalerContext.cpp310 const int sample_width = src.width(); in pack4xHToMask() local
361 for (int sample_x = -4; sample_x < sample_width + 4; sample_x += 4) { in pack4xHToMask()
364 ; sample_index < std::min(sample_x + 8, sample_width) in pack4xHToMask()