/external/webrtc/webrtc/common_audio/ |
D | wav_header.cc | 65 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 …]
|
D | wav_header_unittest.cc | 97 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 …]
|
D | wav_header.h | 38 size_t bytes_per_sample, 49 size_t bytes_per_sample, 59 size_t* bytes_per_sample,
|
D | wav_file.cc | 55 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/ |
D | vpx_image.c | 162 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/ |
D | wav_io.cc | 243 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/ |
D | aom_image.c | 188 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/ |
D | md5_helper.h | 29 const int bytes_per_sample = in Add() local 37 bytes_per_sample; in Add()
|
D | y4m_test.cc | 62 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/ |
D | md5_helper.h | 30 const int bytes_per_sample = in Add() local 38 bytes_per_sample; in Add()
|
/external/flac/libFLAC/ |
D | md5.c | 274 …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/ |
D | rawenc.c | 68 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()
|
D | y4minput.c | 1100 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/ |
D | md5.h | 48 …onst FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);
|
/external/libvpx/libvpx/ |
D | y4minput.c | 1072 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()
|
D | vpxdec.c | 308 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/ |
D | dev_stream_unittest.cc | 621 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()
|