Home
last modified time | relevance | path

Searched refs:bytes_per_sample (Results 1 – 17 of 17) sorted by relevance

/external/webrtc/webrtc/common_audio/
Dwav_header.cc65 size_t bytes_per_sample, in CheckWavParameters() argument
70 if (num_channels == 0 || sample_rate <= 0 || bytes_per_sample == 0) in CheckWavParameters()
76 if (static_cast<uint64_t>(bytes_per_sample) * 8 > in CheckWavParameters()
79 if (static_cast<uint64_t>(sample_rate) * num_channels * bytes_per_sample > in CheckWavParameters()
87 if (bytes_per_sample != 1 && bytes_per_sample != 2) in CheckWavParameters()
92 if (bytes_per_sample != 1) in CheckWavParameters()
103 (std::numeric_limits<uint32_t>::max() - header_size) / bytes_per_sample; in CheckWavParameters()
139 size_t bytes_per_sample) { in ByteRate() argument
140 return static_cast<uint32_t>(num_channels * sample_rate * bytes_per_sample); in ByteRate()
144 size_t bytes_per_sample) { in BlockAlign() argument
[all …]
Dwav_header_unittest.cc97 size_t bytes_per_sample = 0; in TEST() local
123 &bytes_per_sample, &num_samples)); in TEST()
144 &bytes_per_sample, &num_samples)); in TEST()
165 &bytes_per_sample, &num_samples)); in TEST()
187 &bytes_per_sample, &num_samples)); in TEST()
210 &bytes_per_sample, &num_samples)); in TEST()
229 &bytes_per_sample, &num_samples)); in TEST()
241 &bytes_per_sample, &num_samples)); in TEST()
274 size_t bytes_per_sample = 0; in TEST() local
279 &bytes_per_sample, &num_samples)); in TEST()
[all …]
Dwav_header.h38 size_t bytes_per_sample,
49 size_t bytes_per_sample,
59 size_t* bytes_per_sample,
Dwav_file.cc55 size_t bytes_per_sample; in WavReader() local
57 &bytes_per_sample, &num_samples_)); in WavReader()
60 RTC_CHECK_EQ(kBytesPerSample, bytes_per_sample); in WavReader()
/external/libvpx/libvpx/vpx/src/
Dvpx_image.c162 const int bytes_per_sample = in vpx_img_set_rect() local
168 data + x * bytes_per_sample + y * img->stride[VPX_PLANE_ALPHA]; in vpx_img_set_rect()
173 data + x * bytes_per_sample + y * img->stride[VPX_PLANE_Y]; in vpx_img_set_rect()
178 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect()
182 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect()
186 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect()
190 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect()
/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io.cc243 uint16 bytes_per_sample; in DecodeLin16WaveAsFloatVector() local
244 TF_RETURN_IF_ERROR(ReadValue<uint16>(wav_string, &bytes_per_sample, &offset)); in DecodeLin16WaveAsFloatVector()
257 if (bytes_per_sample != expected_bytes_per_sample) { in DecodeLin16WaveAsFloatVector()
260 expected_bytes_per_sample, " but got ", bytes_per_sample); in DecodeLin16WaveAsFloatVector()
262 const uint32 expected_bytes_per_second = bytes_per_sample * *sample_rate; in DecodeLin16WaveAsFloatVector()
267 " (sample_rate=", *sample_rate, ", bytes_per_sample=", bytes_per_sample, in DecodeLin16WaveAsFloatVector()
291 *sample_count = chunk_size / bytes_per_sample; in DecodeLin16WaveAsFloatVector()
/external/libaom/libaom/aom/src/
Daom_image.c188 const int bytes_per_sample = in aom_img_set_rect() local
193 data + x * bytes_per_sample + y * img->stride[AOM_PLANE_Y]; in aom_img_set_rect()
201 data + uv_x * bytes_per_sample + uv_y * img->stride[AOM_PLANE_U]; in aom_img_set_rect()
205 data + uv_x * bytes_per_sample + uv_y * img->stride[AOM_PLANE_V]; in aom_img_set_rect()
208 data + uv_x * bytes_per_sample + uv_y * img->stride[AOM_PLANE_V]; in aom_img_set_rect()
212 data + uv_x * bytes_per_sample + uv_y * img->stride[AOM_PLANE_U]; in aom_img_set_rect()
/external/libvpx/libvpx/test/
Dmd5_helper.h29 const int bytes_per_sample = in Add() local
37 bytes_per_sample; in Add()
Dy4m_test.cc62 const int bytes_per_sample = (img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1; in write_image_file() local
70 fwrite(buf, bytes_per_sample, w, file); in write_image_file()
/external/libaom/libaom/test/
Dmd5_helper.h30 const int bytes_per_sample = in Add() local
38 bytes_per_sample; in Add()
/external/flac/libFLAC/
Dmd5.c274 …const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample) in format_input_() argument
287 switch (BYTES_CHANNEL_SELECTOR (bytes_per_sample, channels)) { in format_input_()
454 switch (bytes_per_sample) { in format_input_()
491 …const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample) in FLAC__MD5Accumulate() argument
493 const size_t bytes_needed = (size_t)channels * (size_t)samples * (size_t)bytes_per_sample; in FLAC__MD5Accumulate()
496 if ((size_t)channels > SIZE_MAX / (size_t)bytes_per_sample) in FLAC__MD5Accumulate()
498 if ((size_t)channels * (size_t)bytes_per_sample > SIZE_MAX / (size_t)samples) in FLAC__MD5Accumulate()
511 format_input_(&ctx->internal_buf, signal, channels, samples, bytes_per_sample); in FLAC__MD5Accumulate()
/external/libaom/libaom/common/
Drawenc.c68 const int bytes_per_sample = high_bitdepth ? 2 : 1; in raw_write_image_file_or_md5() local
82 writer_func(file_or_md5, buf, bytes_per_sample, w); in raw_write_image_file_or_md5()
Dy4minput.c1100 int bytes_per_sample = _y4m->bit_depth > 8 ? 2 : 1; in y4m_input_fetch_frame() local
1142 pic_sz = _y4m->pic_w * _y4m->pic_h * bytes_per_sample; in y4m_input_fetch_frame()
1144 c_w *= bytes_per_sample; in y4m_input_fetch_frame()
1147 _img->stride[AOM_PLANE_Y] = _y4m->pic_w * bytes_per_sample; in y4m_input_fetch_frame()
/external/flac/libFLAC/include/private/
Dmd5.h48 …onst FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);
/external/libvpx/libvpx/
Dy4minput.c1072 int bytes_per_sample = _y4m->bit_depth > 8 ? 2 : 1; in y4m_input_fetch_frame() local
1114 pic_sz = _y4m->pic_w * _y4m->pic_h * bytes_per_sample; in y4m_input_fetch_frame()
1116 c_w *= bytes_per_sample; in y4m_input_fetch_frame()
1120 _y4m->pic_w * bytes_per_sample; in y4m_input_fetch_frame()
Dvpxdec.c308 const int bytes_per_sample = ((img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1); in write_image_file() local
310 const int bytes_per_sample = 1; in write_image_file() local
321 fwrite(buf, bytes_per_sample, w, file); in write_image_file()
/external/adhd/cras/src/tests/
Ddev_stream_unittest.cc621 const unsigned int bytes_per_sample = 2; in TEST_F() local
623 const unsigned int bytes_per_frame = bytes_per_sample * num_channels; in TEST_F()