/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_audio_capturer_adapter_wrapper.cpp | 69 … ArkAudioCapturerAdapterWrapper::GetBufferDesc(std::shared_ptr<NWeb::BufferDescAdapter> bufferDesc) in GetBufferDesc() argument 71 if (CHECK_SHARED_PTR_IS_NULL(bufferDesc)) { in GetBufferDesc() 74 return ctocpp_->GetBufferDesc(new ArkBufferDescAdapterImpl(bufferDesc)); in GetBufferDesc() 77 … ArkAudioCapturerAdapterWrapper::Enqueue(const std::shared_ptr<NWeb::BufferDescAdapter> bufferDesc) in Enqueue() argument 79 if (CHECK_SHARED_PTR_IS_NULL(bufferDesc)) { in Enqueue() 82 return ctocpp_->Enqueue(new ArkBufferDescAdapterImpl(bufferDesc)); in Enqueue()
|
H A D | ark_audio_capturer_adapter_wrapper.h | 40 int32_t GetBufferDesc(std::shared_ptr<NWeb::BufferDescAdapter> bufferDesc) override; 42 int32_t Enqueue(const std::shared_ptr<NWeb::BufferDescAdapter> bufferDesc) override;
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_audio_capturer_adapter_impl.cpp | 65 int32_t ArkAudioCapturerAdapterImpl::GetBufferDesc(ArkWebRefPtr<ArkBufferDescAdapter> bufferDesc) in GetBufferDesc() argument 67 if (CHECK_REF_PTR_IS_NULL(bufferDesc)) { in GetBufferDesc() 70 return real_->GetBufferDesc(std::make_shared<ArkBufferDescAdapterWrapper>(bufferDesc)); in GetBufferDesc() 73 int32_t ArkAudioCapturerAdapterImpl::Enqueue(const ArkWebRefPtr<ArkBufferDescAdapter> bufferDesc) in Enqueue() argument 75 if (CHECK_REF_PTR_IS_NULL(bufferDesc)) { in Enqueue() 78 return real_->Enqueue(std::make_shared<ArkBufferDescAdapterWrapper>(bufferDesc)); in Enqueue()
|
H A D | ark_audio_capturer_adapter_impl.h | 40 int32_t GetBufferDesc(ArkWebRefPtr<ArkBufferDescAdapter> bufferDesc) override; 42 int32_t Enqueue(const ArkWebRefPtr<ArkBufferDescAdapter> bufferDesc) override;
|
/ohos5.0/base/web/webview/ohos_adapter/audio_adapter/src/ |
H A D | audio_capturer_adapter_impl.cpp | 174 int32_t AudioCapturerAdapterImpl::GetBufferDesc(std::shared_ptr<BufferDescAdapter> bufferDesc) in GetBufferDesc() argument 181 if (!bufferDesc) { in GetBufferDesc() 188 bufferDesc->SetBuffer(bufDesc.buffer); in GetBufferDesc() 189 bufferDesc->SetBufLength(bufDesc.bufLength); in GetBufferDesc() 190 bufferDesc->SetDataLength(bufDesc.dataLength); in GetBufferDesc() 194 int32_t AudioCapturerAdapterImpl::Enqueue(const std::shared_ptr<BufferDescAdapter> bufferDesc) in Enqueue() argument 201 if (!bufferDesc) { in Enqueue() 207 bufDesc.buffer = bufferDesc->GetBuffer(); in Enqueue() 208 bufDesc.bufLength = bufferDesc->GetBufLength(); in Enqueue() 209 bufDesc.dataLength = bufferDesc->GetDataLength(); in Enqueue()
|
H A D | audio_capturer_adapter_mock.cpp | 46 int32_t AudioCapturerAdapterImpl::GetBufferDesc(std::shared_ptr<BufferDescAdapter> bufferDesc) in GetBufferDesc() argument 51 int32_t AudioCapturerAdapterImpl::Enqueue(const std::shared_ptr<BufferDescAdapter> bufferDesc) in Enqueue() argument
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | pro_renderer_stream_impl.cpp | 368 BufferDesc bufferDesc = {nullptr, 0, 0}; in DequeueBuffer() local 370 return bufferDesc; in DequeueBuffer() 373 bufferDesc.bufLength = sinkBuffer_[0].size(); in DequeueBuffer() 374 return bufferDesc; in DequeueBuffer() 377 int32_t ProRendererStreamImpl::EnqueueBuffer(const BufferDesc &bufferDesc) in EnqueueBuffer() argument 387 ConvertSrcToFloat(bufferDesc.buffer, bufferDesc.bufLength, volume); in EnqueueBuffer() 392 ConvertSrcToFloat(bufferDesc.buffer, bufferDesc.bufLength, volume); in EnqueueBuffer() 397 ConvertSrcToFloat(bufferDesc.buffer, bufferDesc.bufLength, volume); in EnqueueBuffer() 405 uint32_t frameLength = bufferDesc.bufLength / samplePerFrame; in EnqueueBuffer() 420 totalBytesWritten_ += bufferDesc.bufLength; in EnqueueBuffer() [all …]
|
H A D | renderer_in_server.cpp | 492 if (bufferDesc.buffer == nullptr) { in WriteData() 499 DoFadingOut(bufferDesc); in WriteData() 502 stream_->EnqueueBuffer(bufferDesc); in WriteData() 504 …DumpFileUtil::WriteDumpFile(dumpC2S_, static_cast<void *>(bufferDesc.buffer), bufferDesc.bufLength… in WriteData() 506 static_cast<void *>(bufferDesc.buffer), bufferDesc.bufLength); in WriteData() 509 OtherStreamEnqueue(bufferDesc); in WriteData() 511 WriteMuteDataSysEvent(bufferDesc.buffer, bufferDesc.bufLength); in WriteData() 512 …memset_s(bufferDesc.buffer, bufferDesc.bufLength, 0, bufferDesc.bufLength); // clear is needed for… in WriteData() 557 memset_s(bufferDesc.buffer, bufferDesc.bufLength, 0, bufferDesc.bufLength); in WriteEmptyData() 558 stream_->EnqueueBuffer(bufferDesc); in WriteEmptyData() [all …]
|
H A D | pa_capturer_stream_impl.cpp | 339 BufferDesc bufferDesc; in DequeueBuffer() local 341 pa_stream_peek(paStream_, &tempBuffer, &bufferDesc.bufLength); in DequeueBuffer() 342 bufferDesc.buffer = static_cast<uint8_t *>(const_cast<void* >(tempBuffer)); in DequeueBuffer() 343 totalBytesRead_ += bufferDesc.bufLength; in DequeueBuffer() 345 …fwrite(reinterpret_cast<void *>(bufferDesc.buffer), 1, bufferDesc.bufLength, capturerServerDumpFil… in DequeueBuffer() 347 return bufferDesc; in DequeueBuffer() 350 int32_t PaCapturerStreamImpl::EnqueueBuffer(const BufferDesc &bufferDesc) in EnqueueBuffer() argument
|
H A D | audio_endpoint.cpp | 1415 srcDataList[i].bufferDesc.bufLength != dstData.bufferDesc.bufLength || in ProcessData() 1416 srcDataList[i].bufferDesc.dataLength != dstData.bufferDesc.dataLength) { in ProcessData() 1426 size_t dataLength = dstData.bufferDesc.dataLength; in ProcessData() 1556 … memset_s(static_cast<void *>(streamData.bufferDesc.buffer), streamData.bufferDesc.bufLength, in GetAllReadyProcessData() 1559 CheckPlaySignal(streamData.bufferDesc.buffer, streamData.bufferDesc.bufLength); in GetAllReadyProcessData() 1563 streamData.bufferDesc.bufLength); in GetAllReadyProcessData() 1590 memset_s(dstStreamData.bufferDesc.buffer, dstStreamData.bufferDesc.bufLength, 0, in ProcessToEndpointDataHandle() 1591 dstStreamData.bufferDesc.bufLength); in ProcessToEndpointDataHandle() 1608 dstStreamData.bufferDesc.bufLength); in ProcessToEndpointDataHandle() 1610 … static_cast<void *>(dstStreamData.bufferDesc.buffer), dstStreamData.bufferDesc.bufLength); in ProcessToEndpointDataHandle() [all …]
|
H A D | audio_endpoint_separate.cpp | 603 srcDataList[i].bufferDesc.bufLength != dstData.bufferDesc.bufLength || in ProcessData() 604 srcDataList[i].bufferDesc.dataLength != dstData.bufferDesc.dataLength) { in ProcessData() 616 size_t dataLength = dstData.bufferDesc.dataLength; in ProcessData() 618 int16_t *dstPtr = reinterpret_cast<int16_t *>(dstData.bufferDesc.buffer); in ProcessData() 623 … int16_t *srcPtr = reinterpret_cast<int16_t *>(srcDataList[i].bufferDesc.buffer) + offset; in ProcessData()
|
H A D | pa_renderer_stream_impl.cpp | 673 BufferDesc bufferDesc; in DequeueBuffer() local 674 bufferDesc.bufLength = length; in DequeueBuffer() 676 …pa_stream_begin_write(paStream_, reinterpret_cast<void **>(&bufferDesc.buffer), &bufferDesc.bufLen… in DequeueBuffer() 677 return bufferDesc; in DequeueBuffer() 680 int32_t PaRendererStreamImpl::EnqueueBuffer(const BufferDesc &bufferDesc) in EnqueueBuffer() argument 682 …Trace trace("PaRendererStreamImpl::EnqueueBuffer " + std::to_string(bufferDesc.bufLength) + " tota… in EnqueueBuffer() 698 …error = pa_stream_write(paStream_, static_cast<void*>(bufferDesc.buffer), bufferDesc.bufLength, nu… in EnqueueBuffer() 704 totalBytesWritten_ += bufferDesc.bufLength; in EnqueueBuffer()
|
H A D | capturer_in_server.cpp | 362 BufferDesc bufferDesc = {nullptr, 0, 0}; in Flush() local 363 int32_t readResult = audioServerBuffer_->GetReadbuffer(readFrame, bufferDesc); in Flush() 367 memset_s(bufferDesc.buffer, bufferDesc.bufLength, 0, bufferDesc.bufLength); in Flush()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_node_staging.cpp | 48 auto const& bufferDesc = gpuResourceMgr.GetBufferDescriptor(ref.dstHandle.GetHandle()); in CopyHostDirectlyToBuffer() local 49 const uint8_t* baseDstDataEnd = baseDstDataBegin + bufferDesc.byteSize; in CopyHostDirectlyToBuffer() 65 PLUGIN_ASSERT(bufferDesc.byteSize >= srcSize); in CopyHostDirectlyToBuffer() 86 auto const& bufferDesc = gpuResourceMgr.GetBufferDescriptor(ref.dstHandle.GetHandle()); in CopyHostDirectlyToBuffer() local 91 PLUGIN_ASSERT((size_t(bufferDesc.byteSize) - dstOffset) >= copySize); in CopyHostDirectlyToBuffer() 92 if (!CloneData(data, bufferDesc.byteSize - dstOffset, srcPtr, copySize)) { in CopyHostDirectlyToBuffer()
|
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/audio_adapter/audiocapturer_fuzzer/ |
H A D | audiocaptureradapter_fuzzer.cpp | 95 std::shared_ptr<BufferDescAdapter> bufferDesc = std::make_shared<BufferDescAdapter>(); in AudioCapturerFuzzTest() local 96 adapter.GetBufferDesc(bufferDesc); in AudioCapturerFuzzTest() 97 adapter.Enqueue(bufferDesc); in AudioCapturerFuzzTest()
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/test/example/ |
H A D | audio_inner_capturer_test.cpp | 77 BufferDesc bufferDesc = { nullptr, 0, 0 }; in OnReadData() local 78 audioCapturer_->GetBufferDesc(bufferDesc); in OnReadData() 80 ret = fwrite(reinterpret_cast<void *>(bufferDesc.buffer), 1, bufferDesc.bufLength, pfd_); in OnReadData() 83 audioCapturer_->Enqueue(bufferDesc); in OnReadData()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/common/include/ |
H A D | oh_audio_buffer.h | 161 int32_t GetWriteBuffer(uint64_t writePosInFrame, BufferDesc &bufferDesc); 163 int32_t GetReadbuffer(uint64_t readPosInFrame, BufferDesc &bufferDesc); 165 int32_t GetBufferByFrame(uint64_t posInFrame, BufferDesc &bufferDesc);
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/opensles/src/adapter/ |
H A D | audiocapturer_adapter.cpp | 180 BufferDesc bufferDesc = {}; in GetBufferAdapter() local 181 audioCapturer->GetBufferDesc(bufferDesc); in GetBufferAdapter() 182 *buffer = bufferDesc.buffer; in GetBufferAdapter() 183 *size = bufferDesc.bufLength; in GetBufferAdapter()
|
H A D | audioplayer_adapter.cpp | 236 BufferDesc bufferDesc = {}; in GetBufferAdapter() local 237 audioRenderer->GetBufferDesc(bufferDesc); in GetBufferAdapter() 238 *buffer = bufferDesc.buffer; in GetBufferAdapter() 239 *size = bufferDesc.bufLength; in GetBufferAdapter()
|
/ohos5.0/base/web/webview/ohos_adapter/audio_adapter/include/ |
H A D | audio_capturer_adapter_impl.h | 61 int32_t GetBufferDesc(std::shared_ptr<BufferDescAdapter> bufferDesc) override; 63 int32_t Enqueue(const std::shared_ptr<BufferDescAdapter> bufferDesc) override;
|
/ohos5.0/base/web/webview/ohos_interface/include/ohos_adapter/ |
H A D | audio_capturer_adapter.h | 98 virtual int32_t GetBufferDesc(std::shared_ptr<BufferDescAdapter> bufferDesc) = 0; 100 virtual int32_t Enqueue(const std::shared_ptr<BufferDescAdapter> bufferDesc) = 0;
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/ |
H A D | render_node_default_material_objects.cpp | 239 const GpuBufferDesc bufferDesc { CORE_BUFFER_USAGE_UNIFORM_BUFFER_BIT, in ProcessBuffers() local 243 …puResourceMgr.Create(us + DefaultMaterialMaterialConstants::MATERIAL_DATA_BUFFER_NAME, bufferDesc); in ProcessBuffers() 246 us + DefaultMaterialMaterialConstants::MATERIAL_TRANSFORM_DATA_BUFFER_NAME, bufferDesc); in ProcessBuffers() 249 …ourceMgr.Create(us + DefaultMaterialMaterialConstants::MATERIAL_USER_DATA_BUFFER_NAME, bufferDesc); in ProcessBuffers()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | oh_audio_buffer.cpp | 604 int32_t OHAudioBuffer::GetBufferByFrame(uint64_t posInFrame, BufferDesc &bufferDesc) in GetBufferByFrame() argument 620 bufferDesc.buffer = dataBase_ + offset; in GetBufferByFrame() 621 bufferDesc.bufLength = spanSizeInByte_; in GetBufferByFrame() 622 bufferDesc.dataLength = spanSizeInByte_; in GetBufferByFrame() 639 int32_t OHAudioBuffer::GetWriteBuffer(uint64_t writePosInFrame, BufferDesc &bufferDesc) in GetWriteBuffer() argument 646 return GetBufferByFrame(writePosInFrame, bufferDesc); in GetWriteBuffer() 649 int32_t OHAudioBuffer::GetReadbuffer(uint64_t readPosInFrame, BufferDesc &bufferDesc) in GetReadbuffer() argument 654 return GetBufferByFrame(readPosInFrame, bufferDesc); in GetReadbuffer()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/test/unittest/ |
H A D | audio_service_common_unit_test.cpp | 278 BufferDesc bufferDesc; variable 281 ret = oHAudioBuffer->GetBufferByFrame(posInFrame, bufferDesc); 285 ret = oHAudioBuffer->GetBufferByFrame(posInFrame, bufferDesc); 289 ret = oHAudioBuffer->GetWriteBuffer(writePosInFrame, bufferDesc); 293 ret = oHAudioBuffer->GetWriteBuffer(writePosInFrame, bufferDesc); 297 ret = oHAudioBuffer->GetReadbuffer(readPosInFrame, bufferDesc); 301 ret = oHAudioBuffer->GetReadbuffer(readPosInFrame, bufferDesc);
|
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/custom/ |
H A D | lume_custom_render.cpp | 194 RENDER_NS::GpuBufferDesc bufferDesc { in OnSizeChange() local 198 bufferDesc.byteSize = bSize; in OnSizeChange() 200 … renderContext_->GetDevice().GetGpuResourceManager().Create(RESOLUTION_BUFFER, bufferDesc); in OnSizeChange()
|