/device/google/cuttlefish_common/host/frontend/stream_audio/opuscpp/ |
D | opus_wrapper.cc | 101 const std::vector<opus_int16>& pcm, int frame_size) { in Encode() argument 103 const auto frame_length = frame_size * num_channels_ * sample_size; in Encode() 113 encoded.push_back(EncodeFrame(pcm.begin() + (i / sample_size), frame_size)); in Encode() 120 int frame_size) { in EncodeFrame() argument 121 const auto frame_length = (frame_size * num_channels_ * sizeof(*frame_start)); in EncodeFrame() 123 auto num_bytes = opus_encode(encoder_.get(), &*frame_start, frame_size, in EncodeFrame() 141 const std::vector<std::vector<unsigned char>>& packets, int frame_size, in Decode() argument 145 auto just_decoded = Decode(enc, frame_size, decode_fec); in Decode() 153 const std::vector<unsigned char>& packet, int frame_size, bool decode_fec) { in Decode() argument 154 const auto frame_length = (frame_size * num_channels_ * sizeof(opus_int16)); in Decode() [all …]
|
D | opus_wrapper.h | 80 const std::vector<opus_int16>& pcm, int frame_size); 87 int frame_size); 111 const std::vector<std::vector<unsigned char>>& packets, int frame_size, 120 int frame_size, bool decode_fec); 123 std::vector<opus_int16> DecodeDummy(int frame_size);
|
/device/generic/car/emulator/audio/driver/ |
D | audio_vbuffer.c | 30 size_t frame_size) { in audio_vbuffer_init() argument 34 audio_vbuffer->frame_size = frame_size; in audio_vbuffer_init() 36 size_t bytes = frame_count * frame_size; in audio_vbuffer_init() 94 &audio_vbuffer->data[audio_vbuffer->head * audio_vbuffer->frame_size], in audio_vbuffer_write() 95 &((uint8_t *)buffer)[frames_written * audio_vbuffer->frame_size], in audio_vbuffer_write() 96 frames * audio_vbuffer->frame_size); in audio_vbuffer_write() 125 &((uint8_t *)buffer)[frames_read * audio_vbuffer->frame_size], in audio_vbuffer_read() 126 &audio_vbuffer->data[audio_vbuffer->tail * audio_vbuffer->frame_size], in audio_vbuffer_read() 127 frames * audio_vbuffer->frame_size); in audio_vbuffer_read()
|
D | audio_vbuffer.h | 25 size_t frame_size; member 33 size_t frame_size);
|
/device/google/cuttlefish_common/tools/play_audio/ |
D | play_audio.cpp | 62 auto frame_size = conn->RecvUInt32(); in RecvEncodedAudio() local 68 return {frame_size, std::move(encoded)}; in RecvEncodedAudio() 99 const auto& [frame_size, encoded] = RecvEncodedAudio(&conn); in main() 103 auto decoded = dec.Decode(encoded, frame_size, false); in main()
|
/device/google/cuttlefish_common/host/frontend/stream_audio/ |
D | main.cpp | 63 const size_t num_channels = header_.frame_size / sizeof(opus_int16); in MakeAudioDescriptionHeader() 81 return header_.frame_size / sizeof(opus_int16); in num_channels() 188 CHECK_EQ(header_.frame_size, new_header.frame_size) in CheckAudioConfigurationIsSame() 225 const std::uint32_t frame_size = pcm.size() / num_channels; in HandleClient() local 226 auto encoded = enc.Encode(pcm, frame_size); in HandleClient() 231 client_socket.SendNoSignal(cvd::CreateMessage(frame_size)); in HandleClient()
|
/device/google/cuttlefish_common/host/commands/record_audio/ |
D | main.cc | 110 const size_t numChannels = hdr.frame_size / sizeof(int16_t); in main() 117 } else if (writer_hdr.frame_size != hdr.frame_size in main()
|
/device/google/cuttlefish_common/common/vsoc/lib/ |
D | vsoc_audio_message.h | 67 size32_t frame_size; member 91 frame_size(0), in gce_audio_message()
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/plugins/cadence/mixer/ |
D | xa-mixer.c | 57 u32 frame_size; member 117 d->pcm_width = 16, d->channels = 2, d->frame_size = 512; in xa_mixer_preinit() 172 for (i = 0; i < d->frame_size; i++) in xa_mixer_do_execute_stereo_16bit() 201 TRACE(PROCESS, _b("produced: %u bytes (%u samples)"), d->produced, d->frame_size); in xa_mixer_do_execute_stereo_16bit() 259 … d->buffer_size = d->channels * d->frame_size * (d->pcm_width == 16 ? sizeof(s16) : sizeof(s32)); in xa_mixer_init() 370 *(WORD32 *)pv_value = d->frame_size; in xa_mixer_get_config_param()
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/audio/ |
D | xa-class-mixer.c | 120 u32 frame_size; member 180 u32 frame_size; in xa_mixer_prepare_runtime() local 189 XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_MIXER_CONFIG_PARAM_FRAME_SIZE, &frame_size); in xa_mixer_prepare_runtime() 195 mixer->frame_duration = frame_size * factor; in xa_mixer_prepare_runtime() 531 … XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_MIXER_CONFIG_PARAM_FRAME_SIZE, &mixer->frame_size); in xa_mixer_memtab() 668 track->pts += mixer->frame_size; in xa_mixer_postprocess() 703 mixer->pts += mixer->frame_size; in xa_mixer_postprocess()
|
D | xa-class-audio-codec.c | 111 u32 frame_size; in xa_codec_prepare_runtime() local 130 frame_size = msg->output_length / codec->sample_size; in xa_codec_prepare_runtime() 133 … XF_CHK_ERR(frame_size * codec->sample_size == msg->output_length, XA_API_FATAL_INVALID_CMD_TYPE); in xa_codec_prepare_runtime()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | sndhdr.py | 102 frame_size = sample_size * nchannels 103 return type, rate, nchannels, data_size//frame_size, sample_bits
|
/device/google/cuttlefish_common/guest/hals/audio/ |
D | audio_hw.c | 74 size_t frame_size; member 82 size_t frame_size) { in audio_vbuffer_init() argument 86 audio_vbuffer->frame_size = frame_size; in audio_vbuffer_init() 88 size_t bytes = frame_count * frame_size; in audio_vbuffer_init() 134 memcpy(&audio_vbuffer->data[audio_vbuffer->head*audio_vbuffer->frame_size], in audio_vbuffer_write() 135 &((uint8_t*)buffer)[frames_written*audio_vbuffer->frame_size], in audio_vbuffer_write() 136 frames*audio_vbuffer->frame_size); in audio_vbuffer_write() 161 memcpy(&((uint8_t*)buffer)[frames_read*audio_vbuffer->frame_size], in audio_vbuffer_read() 162 &audio_vbuffer->data[audio_vbuffer->tail*audio_vbuffer->frame_size], in audio_vbuffer_read() 163 frames*audio_vbuffer->frame_size); in audio_vbuffer_read()
|
/device/generic/goldfish/audio/ |
D | audio_hw.c | 71 size_t frame_size; member 79 size_t frame_size) { in audio_vbuffer_init() argument 83 audio_vbuffer->frame_size = frame_size; in audio_vbuffer_init() 85 size_t bytes = frame_count * frame_size; in audio_vbuffer_init() 131 memcpy(&audio_vbuffer->data[audio_vbuffer->head*audio_vbuffer->frame_size], in audio_vbuffer_write() 132 &((uint8_t*)buffer)[frames_written*audio_vbuffer->frame_size], in audio_vbuffer_write() 133 frames*audio_vbuffer->frame_size); in audio_vbuffer_write() 158 memcpy(&((uint8_t*)buffer)[frames_read*audio_vbuffer->frame_size], in audio_vbuffer_read() 159 &audio_vbuffer->data[audio_vbuffer->tail*audio_vbuffer->frame_size], in audio_vbuffer_read() 160 frames*audio_vbuffer->frame_size); in audio_vbuffer_read()
|
/device/google/bonito/sdm710/original-kernel-headers/sound/ |
D | compress_offload.h | 131 __u32 frame_size; member
|
/device/google/crosshatch/sdm845/kernel-headers/sound/ |
D | compress_offload.h | 66 __u32 frame_size; member
|
/device/google/bonito/sdm710/kernel-headers/sound/ |
D | compress_offload.h | 66 __u32 frame_size; member
|
/device/google/crosshatch/sdm845/original-kernel-headers/sound/ |
D | compress_offload.h | 131 __u32 frame_size; member
|
/device/linaro/hikey/audio/ |
D | audio_hw.c | 179 static int xa_device_run(struct audio_stream_out *stream, const void *buffer, size_t frame_size, si… in xa_device_run() argument 412 size_t frame_size = audio_stream_out_frame_size(stream); in out_write() local 413 size_t out_frames = bytes / frame_size; in out_write() 440 ret = xa_device_run(stream, buffer,frame_size, out_frames, bytes); in out_write() 443 ret = pcm_mmap_write(out->pcm, buffer, out_frames * frame_size); in out_write()
|
/device/linaro/poplar/audio/ |
D | audio_hw.c | 247 size_t frame_size = audio_stream_out_frame_size(stream); in out_write() local 248 size_t out_frames = bytes / frame_size; in out_write() 267 ret = pcm_mmap_write(out->pcm, buffer, out_frames * frame_size); in out_write()
|
/device/google/cuttlefish_common/guest/hals/audio/legacy/ |
D | vsoc_audio_input_stream.cpp | 102 rval.frame_size = frame_size_; in GetStreamDescriptor()
|
D | vsoc_audio_output_stream.cpp | 195 message_header_.frame_size = frame_size_; in Write()
|
/device/google/marlin/camera/QCamera2/stack/mm-camera-test/inc/ |
D | mm_qcamera_app.h | 228 uint32_t frame_size; member
|