Home
last modified time | relevance | path

Searched refs:frameSize (Results 1 - 25 of 67) sorted by relevance

123

/drivers/peripheral/audio/test/systemtest/common/adm_common/include/
H A Daudio_adm_common.h80 uint32_t frameSize; member
91 uint32_t frameSize; member
96 int32_t AdmRenderFramePrepare(const std::string& path, char *&frame, uint32_t& numRead, uint32_t& frameSize);
/drivers/hdf_core/framework/model/audio/usb/src/
H A Daudio_usb_dma_ops.c608 audioUsbDriver->renderBufInfo.periodSize = data->renderBufInfo.periodSize / data->renderPcmInfo.frameSize; in AudioUsbDmaConfigChannel()
609 audioUsbDriver->renderBufInfo.cirBufSize = data->renderBufInfo.cirBufSize / data->renderPcmInfo.frameSize; in AudioUsbDmaConfigChannel()
614 audioUsbDriver->captureBufInfo.periodSize = data->captureBufInfo.periodSize / data->capturePcmInfo.frameSize; in AudioUsbDmaConfigChannel()
615 audioUsbDriver->captureBufInfo.cirBufSize = data->captureBufInfo.cirBufSize / data->capturePcmInfo.frameSize; in AudioUsbDmaConfigChannel()
674 *pointer = hwptrDone / data->renderPcmInfo.frameSize; in AudioUsbPcmPointer()
677 *pointer = hwptrDone / data->capturePcmInfo.frameSize; in AudioUsbPcmPointer()
792 ret = BytesToFrames(data->renderPcmInfo.frameSize, audioUsbDriver->renderDataEndpoint->maxPackSize, in AudioUsbBytesToFrames()
797 ret = BytesToFrames(data->renderPcmInfo.frameSize, audioUsbDriver->renderDataEndpoint->curPackSize, in AudioUsbBytesToFrames()
808 ret = BytesToFrames(data->capturePcmInfo.frameSize, audioUsbDriver->captureDataEndpoint->maxPackSize, in AudioUsbBytesToFrames()
814 ret = BytesToFrames(data->capturePcmInfo.frameSize, audioUsbDrive in AudioUsbBytesToFrames()
1041 uint32_t frameSize, frames, bytes, oldptr, offset; AudioUsbRetireCaptureUrb() local
[all...]
/drivers/peripheral/audio/test/systemtest/common/adm_common/src/
H A Daudio_adm_common.cpp71 if (!HdfSbufWriteUint32(sBuf, hwParams.frameSize)) { in WriteHwParamsToBuf()
92 int32_t AdmRenderFramePrepare(const std::string& path, char *&frame, uint32_t& readSize, uint32_t& frameSize) in AdmRenderFramePrepare() argument
134 frameSize = readSize / (attrs.channelCount * (PcmFormatToBits(attrs.format) >> MOVE_RIGHT_NUM)); in AdmRenderFramePrepare()
145 uint32_t frameSize = 0; in WriteFrameToSBuf() local
150 ret = AdmRenderFramePrepare(path, buf, bufsize, frameSize); in WriteFrameToSBuf()
161 if (!HdfSbufWriteUint32(sBufT, frameSize)) { in WriteFrameToSBuf()
/drivers/peripheral/audio/supportlibs/interfaces/include/
H A Daudio_if_lib_common.h32 uint32_t frameSize; member
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/
H A Daudio_capture_interface_impl.cpp43 devAttrs_.frameSize = CalculateFrameSize(attrs.sampleRate, attrs.channelCount, attrs.format, in AudioCaptureInterfaceImpl()
49 framePeriodNs_ = (static_cast<int64_t>(devAttrs_.frameSize) * AUDIO_NS_PER_SECOND) / sizePerSec; in AudioCaptureInterfaceImpl()
51 DHLOGD("Distributed audio capture constructed, period(%{public}d),frameSize(%{public}d).", in AudioCaptureInterfaceImpl()
52 attrs.period, devAttrs_.frameSize); in AudioCaptureInterfaceImpl()
71 DHLOGD("Capture frame[sampleRate:%{public}d, channelCount: %{public}d, format: %{public}d, frameSize: %{public}d].", in CaptureFrame()
72 devAttrs_.sampleRate, devAttrs_.channelCount, devAttrs_.format, devAttrs_.frameSize); in CaptureFrame()
94 frame.resize(devAttrs_.frameSize, 0); in CaptureFrame()
H A Daudio_render_interface_impl.cpp42 devAttrs_.frameSize = CalculateFrameSize(attrs.sampleRate, attrs.channelCount, attrs.format, in AudioRenderInterfaceImpl()
44 DHLOGD("Distributed audio render constructed, period(%{public}d), frameSize(%{public}d).", in AudioRenderInterfaceImpl()
45 attrs.period, devAttrs_.frameSize); in AudioRenderInterfaceImpl()
99 DHLOGD("Render frame[sampleRate: %{public}u, channelCount: %{public}u, format: %{public}d, frameSize: %{public}u].", in RenderFrame()
100 devAttrs_.sampleRate, devAttrs_.channelCount, devAttrs_.format, devAttrs_.frameSize); in RenderFrame()
110 devAttrs_.frameSize, devAttrs_.type}; in RenderFrame()
/drivers/hdf_core/framework/model/audio/common/src/
H A Daudio_platform_base.c148 platformData->renderPcmInfo.frameSize = param->channels * platformData->renderPcmInfo.bitWidth / BITSTOBYTE; in AudioSetPcmInfo()
166 platformData->capturePcmInfo.frameSize = param->channels * platformData->capturePcmInfo.bitWidth / BITSTOBYTE; in AudioSetPcmInfo()
263 rptr = data->renderBufInfo.pointer * data->renderPcmInfo.frameSize; in AudioDmaBuffStatus()
277 wptr = pointer * data->capturePcmInfo.frameSize; in AudioDmaBuffStatus()
316 data->renderBufInfo.trafBufSize = txData->frames * data->renderPcmInfo.frameSize; in AudioPcmWrite()
369 wptr = data->captureBufInfo.pointer * data->capturePcmInfo.frameSize; in PcmReadData()
388 rxData->frames = data->captureBufInfo.curTrafSize / data->capturePcmInfo.frameSize; in PcmReadData()
468 data->renderBufInfo.framesPosition += data->renderBufInfo.trafBufSize / data->renderPcmInfo.frameSize; in MmapWriteData()
490 *totalSize = (uint32_t)data->mmapData.totalBufferFrames * data->renderPcmInfo.frameSize; in AudioRenderPlatformDataInit()
599 wPtr = data->captureBufInfo.pointer * data->capturePcmInfo.frameSize; in MmapReadData()
[all...]
/drivers/hdf_core/framework/model/audio/core/include/
H A Daudio_host.h174 uint32_t frameSize; member
199 uint32_t frameSize; member
/drivers/peripheral/audio/test/unittest/common/adapter/
H A Daudio_adapter_multchannel_test.cpp91 attrs.frameSize = AUDIO_FORMAT_TYPE_PCM_32_BIT * AUDIO_MULTCHANNEL_CHANNELCOUNT; in InitMultchannelAttrs()
94 attrs.startThreshold = DEEP_BUFFER_RENDER_PERIOD_SIZE / (attrs.format * attrs.frameSize); in InitMultchannelAttrs()
H A Daudio_adapter_direct_test.cpp92 attrs.frameSize = AUDIO_FORMAT_TYPE_PCM_32_BIT * AUDIO_CHANNELCOUNT; in InitDirectAttrs()
95 attrs.startThreshold = DEEP_BUFFER_RENDER_PERIOD_SIZE / (attrs.format * attrs.frameSize); in InitDirectAttrs()
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/fuzztest/createcapture_fuzzer/
H A Dcreatecapture_fuzzer.cpp52 .frameSize = *(reinterpret_cast<const uint32_t*>(data)), in CreateCaptureFuzzTest()
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/fuzztest/createrender_fuzzer/
H A Dcreaterender_fuzzer.cpp52 .frameSize = *(reinterpret_cast<const uint32_t*>(data)), in CreateRenderFuzzTest()
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/
H A Daudio_common_vdi.c57 vdiAttrs->frameSize = attrs->frameSize; in AudioCommonAttrsToVdiAttrsVdi()
445 vdiAttrs->frameSize = attrs->frameSize; in AudioCommonSampleAttrToVdiSampleAttrVdi()
478 attrs->frameSize = vdiAttrs->frameSize; in AudioCommonVdiSampleAttrToSampleAttrVdi()
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/include/
H A Dbuffer_operator.h69 void SetEsFrameSize(const int32_t frameSize) override;
334 void MyBuffer::SetEsFrameSize(const int32_t frameSize) in SetEsFrameSize() argument
337 esInfo_.size = frameSize; in SetEsFrameSize()
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
H A Daudio_render.cpp36 uint32_t frameSize = frameRenderMode->attrs.channelCount * (formatBits >> 3); // Bit to byte >> 3 in PcmBytesToFrames() local
37 if (frameSize == 0) { in PcmBytesToFrames()
40 *frameCount = (uint32_t)bytes / frameSize; in PcmBytesToFrames()
205 attrs->frameSize = hwRender->renderParam.frameRenderMode.attrs.frameSize; in AudioRenderGetSampleAttributes()
/drivers/peripheral/audio/test/benchmarktest/render/
H A Daudio_render_benchmarktest.cpp70 uint64_t frameSize = 0; in GetRenderBufferSize() local
78 ret = render_->GetFrameSize(render_, &frameSize); in GetRenderBufferSize()
88 bufferSize = frameCount * frameSize; in GetRenderBufferSize()
103 attrs.frameSize = AUDIO_FORMAT_TYPE_PCM_16_BIT * AUDIO_RENDER_CHANNELCOUNT / MOVE_LEFT_NUM; in InitRenderAttrs()
306 uint64_t frameSize = 0; in BENCHMARK_F() local
309 ret = render_->GetFrameSize(render_, &frameSize); in BENCHMARK_F()
/drivers/peripheral/audio/test/benchmarktest/capture/
H A Daudio_capture_benchmarktest.cpp61 uint64_t frameSize = 0; in GetCaptureBufferSize() local
69 ret = capture_->GetFrameSize(capture_, &frameSize); in GetCaptureBufferSize()
79 bufferSize = frameCount * frameSize; in GetCaptureBufferSize()
111 attrs.frameSize = AUDIO_FORMAT_TYPE_PCM_16_BIT * TEST_CHANNEL_COUNT / MOVE_LEFT_NUM; in InitCaptureAttrs()
589 uint64_t frameSize = 0; in BENCHMARK_F() local
592 ret = capture_->GetFrameSize(capture_, &frameSize); in BENCHMARK_F()
/drivers/peripheral/audio/test/sample/
H A Didl_render.c167 attrs->frameSize = PCM_16_BIT * attrs->channelCount / PCM_8_BIT; in InitAttrs()
170 attrs->startThreshold = DEEP_BUFFER_RENDER_PERIOD_SIZE / (attrs->frameSize); in InitAttrs()
373 uint64_t frameSize = 0; in InitPlayingAudioParam() local
376 if (render->GetFrameSize(render, &frameSize) != HDF_SUCCESS) { in InitPlayingAudioParam()
383 bufferSize = frameCount * frameSize; in InitPlayingAudioParam()
960 attrs.type, attrs.format, attrs.sampleRate, attrs.channelCount, attrs.period, attrs.frameSize, in SetRenderAttributes()
/drivers/peripheral/audio/supportlibs/alsa_adapter/src/
H A Dalsa_snd_render.c424 cardIns->hwParams.frameSize = handleData->frameRenderMode.attrs.frameSize; in SaveHwParams()
619 uint32_t frameSize = cardIns->hwParams.channels * cardIns->hwParams.format; in RenderWriteiMmap() local
620 if (frameSize == 0) { in RenderWriteiMmap()
625 uint32_t totalSize = (uint32_t)mmapBufDesc->totalBufferFrames * frameSize; in RenderWriteiMmap()
631 snd_pcm_uframes_t frames = (snd_pcm_uframes_t)(copyLen / frameSize); in RenderWriteiMmap()
/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_render/src/
H A Daudio_alsa_if_lib_render_test.cpp528 int32_t frameSize = channel * 2; /* 2 is for AUDIO_FORMAT_TYPE_PCM_16_BIT to byte */ in HWTEST_F() local
529 ASSERT_NE(frameSize, 0); in HWTEST_F()
530 handleData->frameRenderMode.bufferFrameSize = frameData / frameSize; in HWTEST_F()
562 int32_t frameSize = channel * 2; /* 2 is for AUDIO_FORMAT_TYPE_PCM_16_BIT to byte */ in HWTEST_F() local
563 ASSERT_NE(frameSize, 0); in HWTEST_F()
564 handleData->frameRenderMode.mmapBufDesc.totalBufferFrames = mmapFrameData / frameSize; in HWTEST_F()
/drivers/peripheral/audio/test/unittest/common/render/
H A Daudio_render_common_test.cpp62 uint64_t frameSize = 0; in GetRenderBufferSize() local
70 ret = render_->GetFrameSize(render_, &frameSize); in GetRenderBufferSize()
80 bufferSize = frameCount * frameSize; in GetRenderBufferSize()
96 attrs.frameSize = AUDIO_FORMAT_TYPE_PCM_16_BIT * AUDIO_RENDER_CHANNELCOUNT; in InitRenderAttrs()
229 uint64_t frameSize = 0; in HWTEST_F() local
230 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, render_->GetFrameSize(nullptr, &frameSize)); in HWTEST_F()
240 uint64_t frameSize = 0; in HWTEST_F() local
241 EXPECT_EQ(HDF_SUCCESS, render_->GetFrameSize(render_, &frameSize)); in HWTEST_F()
/drivers/peripheral/audio/test/systemtest/common/hdi_service_common/src/
H A Dhdi_service_common.cpp44 attrs.frameSize = AUDIO_FORMAT_TYPE_PCM_16_BIT * CHANNELCOUNT / MOVE_LEFT_NUM; in InitAttrs()
57 attrs.frameSize = AUDIO_FORMAT_TYPE_PCM_32_BIT * CHANNELCOUNT / MOVE_LEFT_NUM; in InitAttrs()
76 attrs.frameSize = PCM_16_BIT * CHANNELCOUNT / MOVE_LEFT_NUM; in InitOffloadAttrs()
492 attrs.frameSize = AUDIO_FORMAT_TYPE_PCM_16_BIT * CHANNELCOUNT / MOVE_LEFT_NUM; in AudioCreateCapture()
517 attrs.frameSize = AUDIO_FORMAT_TYPE_PCM_16_BIT * CHANNELCOUNT / MOVE_LEFT_NUM; in AudioCaptureStartAndOneFrame()
1075 uint64_t frameSize = 0; in GetCaptureBufferSize() local
1082 ret = capture->GetFrameSize(capture, &frameSize); in GetCaptureBufferSize()
1092 bufferSize = frameCount * frameSize; in GetCaptureBufferSize()
/drivers/peripheral/bluetooth/audio/interfaces/include/
H A Daudio_types.h188 uint32_t frameSize; /**< Frame size of the audio data */ member
/drivers/peripheral/camera/vdi_base/common/include/
H A Dibuffer.h84 virtual void SetEsFrameSize(const int32_t frameSize) = 0;
/drivers/peripheral/distributed_audio/interface/audio/v1_0/
H A Dtypes.h83 uint32_t frameSize; member

Completed in 22 milliseconds

123