/drivers/peripheral/audio/test/systemtest/common/adm_common/include/ |
H A D | audio_adm_common.h | 80 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 D | audio_usb_dma_ops.c | 608 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 D | audio_adm_common.cpp | 71 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 D | audio_if_lib_common.h | 32 uint32_t frameSize; member
|
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/ |
H A D | audio_capture_interface_impl.cpp | 43 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 D | audio_render_interface_impl.cpp | 42 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 D | audio_platform_base.c | 148 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 D | audio_host.h | 174 uint32_t frameSize; member 199 uint32_t frameSize; member
|
/drivers/peripheral/audio/test/unittest/common/adapter/ |
H A D | audio_adapter_multchannel_test.cpp | 91 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 D | audio_adapter_direct_test.cpp | 92 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 D | createcapture_fuzzer.cpp | 52 .frameSize = *(reinterpret_cast<const uint32_t*>(data)), in CreateCaptureFuzzTest()
|
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/fuzztest/createrender_fuzzer/ |
H A D | createrender_fuzzer.cpp | 52 .frameSize = *(reinterpret_cast<const uint32_t*>(data)), in CreateRenderFuzzTest()
|
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/ |
H A D | audio_common_vdi.c | 57 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 D | buffer_operator.h | 69 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 D | audio_render.cpp | 36 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 D | audio_render_benchmarktest.cpp | 70 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 D | audio_capture_benchmarktest.cpp | 61 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 D | idl_render.c | 167 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 D | alsa_snd_render.c | 424 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 D | audio_alsa_if_lib_render_test.cpp | 528 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 D | audio_render_common_test.cpp | 62 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 D | hdi_service_common.cpp | 44 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 D | audio_types.h | 188 uint32_t frameSize; /**< Frame size of the audio data */ member
|
/drivers/peripheral/camera/vdi_base/common/include/ |
H A D | ibuffer.h | 84 virtual void SetEsFrameSize(const int32_t frameSize) = 0;
|
/drivers/peripheral/distributed_audio/interface/audio/v1_0/ |
H A D | types.h | 83 uint32_t frameSize; member
|