Home
last modified time | relevance | path

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

/external/autotest/server/site_tests/brillo_PlaybackAudioTest/
Dbrillo_PlaybackAudioTest.py69 def test_playback(self, fb_query, playback_cmd, sample_width, sample_rate, argument
80 fb_query.prepare(sample_width=sample_width,
94 def test_audio(self, fb_client, playback_method, sample_rate, sample_width, argument
110 sample_width=sample_width,
117 self.host, num_channels, sample_rate, sample_width,
127 sample_width=sample_width,
158 for sample_width in sample_widths_arr:
162 logging.info('Sample width: %d', sample_width)
169 sample_width=sample_width,
173 failed_params.append((sample_rate, sample_width,
/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/site_tests/brillo_RecordingAudioTest/
Dbrillo_RecordingAudioTest.py40 def _get_recording_cmd(self, recording_method, duration_secs, sample_width, argument
61 (duration_secs, num_channels, sample_rate, sample_width,
70 (num_channels, duration_secs, sample_rate, sample_width,
76 def test_recording(self, fb_query, recording_method, sample_width, argument
95 sample_width=sample_width,
101 sample_width=sample_width,
151 for sample_width in sample_widths_arr:
157 logging.info('Sample width: %d', sample_width)
163 sample_width=sample_width,
169 failed_params.append((sample_rate, sample_width,
/external/autotest/server/brillo/
Daudio_utils.py47 sample_width = wave_file.getsampwidth()
48 if sample_width == 1:
50 elif sample_width == 2:
52 elif sample_width == 4:
61 if sample_width == 1:
68 sample_width=None): argument
90 if sample_width is not None and chk_file.getsampwidth() != sample_width:
92 sample_width, chk_file.getsampwidth())
106 def generate_sine_file(host, num_channels, sample_rate, sample_width, argument
124 if sample_width == 1:
[all …]
/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/autotest/server/site_tests/brillo_DecodingAudioTest/
Dbrillo_DecodingAudioTest.py58 fb_query.prepare(sample_width=_DEFAULT_SAMPLE_WIDTH,
/external/v4l2_codec2/accel/
Dvideo_frame.cc403 const int sample_width = SampleSize(format, plane).width(); in Columns() local
404 return base::bits::Align(width, sample_width) / sample_width; in Columns()
/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.cpp317 const int sample_width = src.width(); in pack4xHToLCD16() local
367 for (int sample_x = -4; sample_x < sample_width + 4; sample_x += 4) { in pack4xHToLCD16()
370 ; sample_index < std::min(sample_x + 8, sample_width) in pack4xHToLCD16()