/external/chromium_org/third_party/webrtc/common_audio/ |
D | wav_header.cc | 34 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 …]
|
D | wav_header.h | 30 int bytes_per_sample, 41 int bytes_per_sample,
|
/external/chromium_org/content/browser/speech/ |
D | audio_buffer.cc | 12 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()
|
D | audio_buffer.h | 21 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/ |
D | SDL_paudio.c | 237 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/ |
D | audio_block_fifo.cc | 27 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()
|
D | audio_bus.h | 63 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);
|
D | audio_bus.cc | 241 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()
|
D | audio_block_fifo_unittest.cc | 31 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()
|
D | audio_block_fifo.h | 29 void Push(const void* source, int frames, int bytes_per_sample);
|
/external/chromium_org/third_party/libvpx/source/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 | 60 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/ |
D | webrtc_audio_device_impl.cc | 141 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/ |
D | simple_sources_unittest.cc | 20 static const uint32 bytes_per_sample = 2; in TEST() local 25 AudioParameters::kTelephoneSampleRate, bytes_per_sample * 8, samples); in TEST()
|
/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() 513 format_input_(&ctx->internal_buf, signal, channels, samples, bytes_per_sample); in FLAC__MD5Accumulate()
|
/external/chromium_org/remoting/codec/ |
D | audio_decoder_opus.cc | 105 decoded_packet->bytes_per_sample(); in Decode() 128 decoded_packet->bytes_per_sample(); in Decode()
|
D | audio_encoder_verbatim.cc | 21 DCHECK_NE(AudioPacket::BYTES_PER_SAMPLE_INVALID, packet->bytes_per_sample()); in Encode()
|
D | audio_decoder_verbatim.cc | 24 (packet->bytes_per_sample() != AudioPacket::BYTES_PER_SAMPLE_2) || in Decode()
|
/external/chromium_org/media/audio/mac/ |
D | audio_low_latency_input_mac_unittest.cc | 84 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/ |
D | md5.h | 48 …onst FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);
|
/external/srec/srec/EventLog/src/ |
D | riff.c | 946 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/ |
D | audio_android_unittest.cc | 271 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/ |
D | audio_file_reader.cc | 135 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/ |
D | riff.h | 229 int bytes_per_sample,
|
/external/chromium_org/media/audio/win/ |
D | audio_low_latency_input_win_unittest.cc | 132 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()
|