/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 | 218 const int bytes_per_sample = in vpx_img_set_rect() local 224 data + x * bytes_per_sample + y * img->stride[VPX_PLANE_ALPHA]; in vpx_img_set_rect() 228 img->planes[VPX_PLANE_Y] = data + x * bytes_per_sample + in vpx_img_set_rect() 234 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect() 238 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect() 242 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect() 246 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect()
|
/external/libvpx/libvpx/test/ |
D | md5_helper.h | 31 const int bytes_per_sample = in Add() local 36 img->x_chroma_shift : img->d_w) * 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 68 fwrite(buf, bytes_per_sample, w, file); in write_image_file()
|
/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/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 | 998 int bytes_per_sample = _y4m->bit_depth > 8 ? 2 : 1; in y4m_input_fetch_frame() local 1039 pic_sz = _y4m->pic_w * _y4m->pic_h * bytes_per_sample; in y4m_input_fetch_frame() 1041 c_w *= bytes_per_sample; in y4m_input_fetch_frame() 1045 _y4m->pic_w * bytes_per_sample; in y4m_input_fetch_frame()
|
D | vpxdec.c | 297 const int bytes_per_sample = ((img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1); in write_image_file() local 299 const int bytes_per_sample = 1; in write_image_file() local 310 fwrite(buf, bytes_per_sample, w, file); in write_image_file()
|
/external/chromium-trace/catapult/telemetry/third_party/png/ |
D | png.py | 332 bytes_per_sample=None, # deprecated argument 527 if bytes_per_sample is not None: 530 if bytes_per_sample not in (0.125, 0.25, 0.5, 1, 2): 533 bitdepth = int(8*bytes_per_sample) 534 del bytes_per_sample
|