Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/webrtc/common_audio/
Dwav_header.cc34 int bytes_per_sample, in CheckWavParameters() argument
39 if (num_channels <= 0 || sample_rate <= 0 || bytes_per_sample <= 0) in CheckWavParameters()
46 if (static_cast<uint64_t>(bytes_per_sample) * 8 > in CheckWavParameters()
49 if (static_cast<uint64_t>(sample_rate) * num_channels * bytes_per_sample > in CheckWavParameters()
57 if (bytes_per_sample != 1 && bytes_per_sample != 2) in CheckWavParameters()
62 if (bytes_per_sample != 1) in CheckWavParameters()
74 bytes_per_sample; in CheckWavParameters()
102 int bytes_per_sample, in WriteWavHeader() argument
105 bytes_per_sample, num_samples)); in WriteWavHeader()
127 const uint32_t bytes_in_payload = bytes_per_sample * num_samples; in WriteWavHeader()
[all …]
Dwav_header.h30 int bytes_per_sample,
41 int bytes_per_sample,
/external/chromium_org/content/browser/speech/
Daudio_buffer.cc12 AudioChunk::AudioChunk(int bytes_per_sample) in AudioChunk() argument
13 : bytes_per_sample_(bytes_per_sample) { in AudioChunk()
16 AudioChunk::AudioChunk(const uint8* data, size_t length, int bytes_per_sample) in AudioChunk() argument
18 bytes_per_sample_(bytes_per_sample) { in AudioChunk()
19 DCHECK_EQ(length % bytes_per_sample, 0U); in AudioChunk()
44 AudioBuffer::AudioBuffer(int bytes_per_sample) in AudioBuffer() argument
45 : bytes_per_sample_(bytes_per_sample) { in AudioBuffer()
46 DCHECK(bytes_per_sample == 1 || in AudioBuffer()
47 bytes_per_sample == 2 || in AudioBuffer()
48 bytes_per_sample == 4); in AudioBuffer()
Daudio_buffer.h21 explicit AudioChunk(int bytes_per_sample);
22 AudioChunk(const uint8* data, size_t length, int bytes_per_sample);
25 int bytes_per_sample() const { return bytes_per_sample_; } in bytes_per_sample() function
46 explicit AudioBuffer(int bytes_per_sample);
/external/qemu/distrib/sdl-1.2.15/src/audio/paudio/
DSDL_paudio.c237 int bytes_per_sample; in Paud_OpenAudio() local
330 bytes_per_sample = 1; in Paud_OpenAudio()
336 bytes_per_sample = 1; in Paud_OpenAudio()
343 bytes_per_sample = 2; in Paud_OpenAudio()
350 bytes_per_sample = 2; in Paud_OpenAudio()
358 bytes_per_sample = 2; in Paud_OpenAudio()
364 bytes_per_sample = 2; in Paud_OpenAudio()
399 / bytes_per_sample in Paud_OpenAudio()
405 / bytes_per_sample in Paud_OpenAudio()
409 paud_init.bsize = bytes_per_sample * spec->channels; in Paud_OpenAudio()
/external/chromium_org/media/base/
Daudio_block_fifo.cc27 int bytes_per_sample) { in Push() argument
30 DCHECK_GT(bytes_per_sample, 0); in Push()
47 source_ptr, write_pos_, push_frames, bytes_per_sample); in Push()
56 source_ptr += push_frames * bytes_per_sample * channels_; in Push()
Daudio_bus.h63 void FromInterleaved(const void* source, int frames, int bytes_per_sample);
64 void ToInterleaved(int frames, int bytes_per_sample, void* dest) const;
65 void ToInterleavedPartial(int start_frame, int frames, int bytes_per_sample,
73 int bytes_per_sample);
Daudio_bus.cc241 int frames, int bytes_per_sample) { in FromInterleavedPartial() argument
243 switch (bytes_per_sample) { in FromInterleavedPartial()
273 int bytes_per_sample) { in FromInterleaved() argument
274 FromInterleavedPartial(source, 0, frames, bytes_per_sample); in FromInterleaved()
277 void AudioBus::ToInterleaved(int frames, int bytes_per_sample, in ToInterleaved() argument
279 ToInterleavedPartial(0, frames, bytes_per_sample, dest); in ToInterleaved()
284 int bytes_per_sample, void* dest) const { in ToInterleavedPartial() argument
286 switch (bytes_per_sample) { in ToInterleavedPartial()
301 memset(dest, 0, frames * bytes_per_sample); in ToInterleavedPartial()
Daudio_block_fifo_unittest.cc31 const int bytes_per_sample = 2; in Push() local
32 const int data_byte_size = bytes_per_sample * channels * frames_to_push; in Push()
35 fifo->Push(data.get(), frames_to_push, bytes_per_sample); in Push()
Daudio_block_fifo.h29 void Push(const void* source, int frames, int bytes_per_sample);
/external/chromium_org/third_party/libvpx/source/libvpx/test/
Dmd5_helper.h31 const int bytes_per_sample = in Add() local
36 img->x_chroma_shift : img->d_w) * bytes_per_sample; in Add()
Dy4m_test.cc60 const int bytes_per_sample = (img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1; in write_image_file() local
66 fwrite(buf, bytes_per_sample, w, file); in write_image_file()
/external/chromium_org/content/renderer/media/
Dwebrtc_audio_device_impl.cc141 int bytes_per_sample = sizeof(render_buffer_[0]); in RenderData() local
143 audio_bus->channels() * frames_per_10_ms * bytes_per_sample; in RenderData()
162 audio_transport_callback_->PullRenderData(bytes_per_sample * kBitsPerByte, in RenderData()
174 bytes_per_sample, in RenderData()
193 bytes_per_sample); in RenderData()
/external/chromium_org/media/audio/
Dsimple_sources_unittest.cc20 static const uint32 bytes_per_sample = 2; in TEST() local
25 AudioParameters::kTelephoneSampleRate, bytes_per_sample * 8, samples); in TEST()
/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()
513 format_input_(&ctx->internal_buf, signal, channels, samples, bytes_per_sample); in FLAC__MD5Accumulate()
/external/chromium_org/remoting/codec/
Daudio_decoder_opus.cc105 decoded_packet->bytes_per_sample(); in Decode()
128 decoded_packet->bytes_per_sample(); in Decode()
Daudio_encoder_verbatim.cc21 DCHECK_NE(AudioPacket::BYTES_PER_SAMPLE_INVALID, packet->bytes_per_sample()); in Encode()
Daudio_decoder_verbatim.cc24 (packet->bytes_per_sample() != AudioPacket::BYTES_PER_SAMPLE_2) || in Decode()
/external/chromium_org/media/audio/mac/
Daudio_low_latency_input_mac_unittest.cc84 const int bytes_per_sample = sizeof(*interleaved); in OnData() local
85 src->ToInterleaved(src->frames(), bytes_per_sample, interleaved.get()); in OnData()
90 const int size = bytes_per_sample * num_samples; in OnData()
/external/flac/libFLAC/include/private/
Dmd5.h48 …onst FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);
/external/srec/srec/EventLog/src/
Driff.c946 int bytes_per_sample, in convertBuf2Riff() argument
967 (bytes_per_sample == -1 && format_tag != WAVEFORMAT_AURORA && in convertBuf2Riff()
974 if (bytes_per_sample > 0) in convertBuf2Riff()
975 num_samples = num_bytes / bytes_per_sample; in convertBuf2Riff()
1024 bytes_sec = (short)(rate * num_channels * bytes_per_sample); in convertBuf2Riff()
1025 block_align = bytes_per_sample * num_channels; in convertBuf2Riff()
1042 if (bytes_per_sample == 2) in convertBuf2Riff()
/external/chromium_org/media/audio/android/
Daudio_android_unittest.cc271 const int bytes_per_sample = sizeof(*interleaved); in OnData() local
272 src->ToInterleaved(src->frames(), bytes_per_sample, interleaved.get()); in OnData()
277 const int size = bytes_per_sample * num_samples; in OnData()
323 const int bytes_per_sample = sizeof(*interleaved); in OnData() local
324 src->ToInterleaved(src->frames(), bytes_per_sample, interleaved.get()); in OnData()
325 const int size = bytes_per_sample * num_samples; in OnData()
/external/chromium_org/media/filters/
Daudio_file_reader.cc135 size_t bytes_per_sample = av_get_bytes_per_sample(codec_context_->sample_fmt); in Read() local
228 av_frame->data[0], current_frame, frames_read, bytes_per_sample); in Read()
/external/srec/srec/EventLog/include/
Driff.h229 int bytes_per_sample,
/external/chromium_org/media/audio/win/
Daudio_low_latency_input_win_unittest.cc132 const int bytes_per_sample = sizeof(*interleaved); in OnData() local
133 src->ToInterleaved(src->frames(), bytes_per_sample, interleaved.get()); in OnData()
138 const int size = bytes_per_sample * num_samples; in OnData()

12