Home
last modified time | relevance | path

Searched refs:bytes_per_sample (Results 1 – 12 of 12) 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.c181 const int bytes_per_sample = in vpx_img_set_rect() local
187 data + x * bytes_per_sample + y * img->stride[VPX_PLANE_ALPHA]; in vpx_img_set_rect()
192 data + x * bytes_per_sample + y * img->stride[VPX_PLANE_Y]; in vpx_img_set_rect()
197 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect()
201 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect()
205 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_img_set_rect()
209 data + (x >> img->x_chroma_shift) * bytes_per_sample + in vpx_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/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/devlib/devlib/instrument/
Denergy_probe.py49 self.bytes_per_sample = self.attributes_per_sample * 4
103 data = bfile.read(num_of_ports * self.bytes_per_sample)
/external/flac/libFLAC/include/private/
Dmd5.h48 …onst FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);
/external/libvpx/libvpx/
Dy4minput.c1079 int bytes_per_sample = _y4m->bit_depth > 8 ? 2 : 1; in y4m_input_fetch_frame() local
1121 pic_sz = _y4m->pic_w * _y4m->pic_h * bytes_per_sample; in y4m_input_fetch_frame()
1123 c_w *= bytes_per_sample; in y4m_input_fetch_frame()
1127 _y4m->pic_w * bytes_per_sample; in y4m_input_fetch_frame()
Dvpxdec.c278 const int bytes_per_sample = ((img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1); in write_image_file() local
280 const int bytes_per_sample = 1; in write_image_file() local
291 fwrite(buf, bytes_per_sample, w, file); in write_image_file()