Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 24 of 24) sorted by relevance

/device/generic/car/emulator/audio/driver/
Daudio_vbuffer.c30 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()
Daudio_vbuffer.h25 size_t frame_size; member
33 size_t frame_size);
/device/google/cuttlefish/tools/play_audio/
Dplay_audio.cpp62 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/host/frontend/gcastv2/libsource/
DAudioSource.cpp80 size32_t frame_size; member
104 frame_size(0), in gce_audio_message()
272 || mPrevHeader.frame_size != hdr.frame_size in encode()
280 << hdr.frame_size in encode()
282 << mPrevHeader.frame_size in encode()
299 const size_t numChannels = hdr.frame_size / sizeof(int16_t); in encode()
505 || mPrevHeader.frame_size != hdr.frame_size in encode()
513 << hdr.frame_size in encode()
515 << mPrevHeader.frame_size in encode()
532 mChannelCount = hdr.frame_size / sizeof(int16_t); in encode()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/plugins/cadence/mixer/
Dxa-mixer.c57 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/
Dxa-class-mixer.c120 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()
Dxa-class-audio-codec.c111 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/
Dsndhdr.py102 frame_size = sample_size * nchannels
103 return type, rate, nchannels, data_size//frame_size, sample_bits
/device/google/cuttlefish/guest/hals/audio/
Daudio_hw.c78 size_t frame_size; member
86 size_t frame_size) { in audio_vbuffer_init() argument
90 audio_vbuffer->frame_size = frame_size; in audio_vbuffer_init()
92 size_t bytes = frame_count * frame_size; in audio_vbuffer_init()
138 memcpy(&audio_vbuffer->data[audio_vbuffer->head*audio_vbuffer->frame_size], in audio_vbuffer_write()
139 &((uint8_t*)buffer)[frames_written*audio_vbuffer->frame_size], in audio_vbuffer_write()
140 frames*audio_vbuffer->frame_size); in audio_vbuffer_write()
165 memcpy(&((uint8_t*)buffer)[frames_read*audio_vbuffer->frame_size], in audio_vbuffer_read()
166 &audio_vbuffer->data[audio_vbuffer->tail*audio_vbuffer->frame_size], in audio_vbuffer_read()
167 frames*audio_vbuffer->frame_size); in audio_vbuffer_read()
/device/google/coral-kernel/sm8150/original-kernel-headers/input/
Dtouch_offload.h99 __u32 frame_size; member
/device/google/coral-kernel/sm8150/kernel-headers/input/
Dtouch_offload.h61 __u32 frame_size; member
/device/amlogic/yukawa/audio/
Daudio_hw.c272 size_t frame_size = audio_stream_out_frame_size(stream); in out_write() local
273 size_t out_frames = bytes / frame_size; in out_write()
296 ret = pcm_write(out->pcm, buffer, out_frames * frame_size); in out_write()
303 info.bytes = out_frames * frame_size; in out_write()
563 size_t frame_size = audio_stream_in_frame_size(stream); in in_read() local
564 size_t in_frames = bytes / frame_size; in in_read()
639 ret = pcm_read(in->pcm, buffer, in_frames * frame_size); in in_read()
Daudio_aec.c582 size_t frame_size = aec->mic_frame_size_bytes; in process_aec() local
583 size_t in_frames = bytes / frame_size; in process_aec()
/device/google/crosshatch/sdm845/original-kernel-headers/sound/
Dcompress_offload.h131 __u32 frame_size; member
/device/google/bonito/sdm710/original-kernel-headers/sound/
Dcompress_offload.h131 __u32 frame_size; member
/device/google/bonito/sdm710/kernel-headers/sound/
Dcompress_offload.h66 __u32 frame_size; member
/device/google/crosshatch/sdm845/kernel-headers/sound/
Dcompress_offload.h66 __u32 frame_size; member
/device/linaro/hikey/audio/
Daudio_hw.c179 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/google/sunfish-kernel/sm7150/kernel-headers/sound/
Dcompress_offload.h66 __u32 frame_size; member
/device/google/coral-kernel/sm8150/original-kernel-headers/sound/
Dcompress_offload.h133 __u32 frame_size; member
/device/google/coral-kernel/sm8150/kernel-headers/sound/
Dcompress_offload.h66 __u32 frame_size; member
/device/google/sunfish-kernel/sm7150/original-kernel-headers/sound/
Dcompress_offload.h133 __u32 frame_size; member
/device/linaro/poplar/audio/
Daudio_hw.c247 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/linaro/dragonboard/audio/
Daudio_hw.c248 size_t frame_size = audio_stream_out_frame_size(stream); in out_write() local
249 size_t out_frames = bytes / frame_size; in out_write()
268 ret = pcm_mmap_write(out->pcm, buffer, out_frames * frame_size); in out_write()