| /drivers/hdf_core/framework/utils/src/ |
| D | hdf_block_buffer.c | 18 struct HdfBlockBuffer *buffer = NULL; in HdfHdfBlockBufferNew() local 38 void HdfBlockBufferFree(const struct HdfBlockBuffer *buffer) in HdfBlockBufferFree() 45 uint16_t HdfBlockBufferGetDataSize(struct HdfBlockBuffer *buffer) in HdfBlockBufferGetDataSize() 50 uint16_t HdfBlockBufferGetAvailableSize(struct HdfBlockBuffer *buffer) in HdfBlockBufferGetAvailableSize() 55 uint8_t *HdfBlockBufferRead(struct HdfBlockBuffer *buffer, uint16_t size) in HdfBlockBufferRead() 66 uint8_t *HdfBlockBufferGetData(struct HdfBlockBuffer *buffer) in HdfBlockBufferGetData() 71 uint16_t HdfBlockBufferGetPoistion(struct HdfBlockBuffer *buffer) in HdfBlockBufferGetPoistion() 77 uint16_t HdfBlockBufferSkipBytes(struct HdfBlockBuffer *buffer, uint16_t bytes) in HdfBlockBufferSkipBytes() 91 bool HdfBlockBufferReadUint8(struct HdfBlockBuffer *buffer, uint8_t *outValue) in HdfBlockBufferReadUint8() 103 bool HdfBlockBufferReadUint8At(struct HdfBlockBuffer *buffer, uint16_t idx, uint8_t *outValue) in HdfBlockBufferReadUint8At() [all …]
|
| /drivers/peripheral/pin_auth/hdi_service/common/src/ |
| D | buffer.c | 23 bool IsBufferValid(const Buffer *buffer) in IsBufferValid() 34 bool CheckBufferWithSize(const Buffer *buffer, const uint32_t size) in CheckBufferWithSize() 50 Buffer *buffer = (Buffer *)Malloc(sizeof(Buffer)); in CreateBufferBySize() local 81 Buffer *buffer = (Buffer *)Malloc(sizeof(Buffer)); in CreateBufferByData() local 105 ResultCode InitBuffer(Buffer *buffer, const uint8_t *buf, const uint32_t bufSize) in InitBuffer() 121 void DestoryBuffer(Buffer *buffer) in DestoryBuffer() 137 Buffer *CopyBuffer(const Buffer *buffer) in CopyBuffer() 177 ResultCode GetBufferData(const Buffer *buffer, uint8_t *data, uint32_t *dataSize) in GetBufferData()
|
| /drivers/peripheral/user_auth/hdi_service/common/src/ |
| D | buffer.c | 25 bool IsBufferValid(const Buffer *buffer) in IsBufferValid() 36 bool CheckBufferWithSize(const Buffer *buffer, const uint32_t size) in CheckBufferWithSize() 52 Buffer *buffer = (Buffer *)Malloc(sizeof(Buffer)); in CreateBufferBySize() local 83 Buffer *buffer = (Buffer *)Malloc(sizeof(Buffer)); in CreateBufferByData() local 107 void DestoryBuffer(Buffer *buffer) in DestoryBuffer() 123 Buffer *CopyBuffer(const Buffer *buffer) in CopyBuffer() 162 ResultCode GetBufferData(const Buffer *buffer, uint8_t *data, uint32_t *dataSize) in GetBufferData()
|
| /drivers/peripheral/camera/hal/buffer_manager/src/ |
| D | buffer_allocator_utils.cpp | 49 …::shared_ptr<IBufferAllocator> BufferAllocatorUtils::GetAllocator(std::shared_ptr<IBuffer>& buffer) in GetAllocator() 72 RetCode BufferAllocatorUtils::FreeBuffer(std::shared_ptr<IBuffer>& buffer) in FreeBuffer() 79 RetCode BufferAllocatorUtils::MapBuffer(std::shared_ptr<IBuffer>& buffer) in MapBuffer() 86 RetCode BufferAllocatorUtils::UnmapBuffer(std::shared_ptr<IBuffer>& buffer) in UnmapBuffer() 93 RetCode BufferAllocatorUtils::FlushCache(std::shared_ptr<IBuffer>& buffer) in FlushCache() 100 RetCode BufferAllocatorUtils::InvalidateCache(std::shared_ptr<IBuffer>& buffer) in InvalidateCache()
|
| D | buffer_pool.cpp | 84 std::shared_ptr<IBuffer> buffer = in PrepareBuffer() local 154 RetCode BufferPool::AddBuffer(std::shared_ptr<IBuffer>& buffer) in AddBuffer() 170 auto buffer = *it; in AcquireBuffer() local 183 auto buffer = *it; in AcquireBuffer() local 200 auto buffer = *it; in AcquireBuffer() local 211 RetCode BufferPool::ReturnBuffer(std::shared_ptr<IBuffer>& buffer) in ReturnBuffer()
|
| /drivers/peripheral/camera/hal/test/mpi/src/ |
| D | hdi_stream_test.cpp | 69 Test_->streamInfo->bufferQueue_ = consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anondcc1421a0102() 123 Test_->streamInfo->bufferQueue_ = consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anondcc1421a0302() 211 Test_->streamInfo->bufferQueue_ = consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anondcc1421a0502() 260 Test_->streamInfo->bufferQueue_ = consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anondcc1421a0702() 306 Test_->streamInfo->bufferQueue_ = consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anondcc1421a0902() 347 Test_->streamInfo->bufferQueue_ = consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anondcc1421a0b02() 391 Test_->streamInfo->bufferQueue_ = consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anondcc1421a0d02() 432 Test_->streamInfo->bufferQueue_ = consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anondcc1421a0f02() 477 Test_->streamInfo->bufferQueue_ = consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anondcc1421a1102() 519 Test_->streamInfo->bufferQueue_ = consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anondcc1421a1302() [all …]
|
| D | resolution_test.cpp | 71 …reamInfo_pre->bufferQueue_ = preview_consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anona928d16e0102() 100 …Info_capture->bufferQueue_ = consumer_capture->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anona928d16e0302() 177 …reamInfo_pre->bufferQueue_ = preview_consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anona928d16e0502() 207 …reamInfo_video->bufferQueue_ = consumer_video->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anona928d16e0702() 284 …reamInfo_pre->bufferQueue_ = preview_consumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anona928d16e0902() 314 …reamInfo_video->bufferQueue_ = consumer_video->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anona928d16e0b02()
|
| D | common.cpp | 64 int32_t Test::SaveYUV(const char* type, const void* buffer, int32_t size) in SaveYUV() 132 int32_t Test::SaveVideoFile(const char* type, const void* buffer, int32_t size, int32_t operationMo… in SaveVideoFile() 288 … streamInfo->bufferQueue_ = consumer_pre->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in StartStream() 316 …reamInfo_video->bufferQueue_ = consumer_video->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in StartStream() 345 …Info_capture->bufferQueue_ = consumer_capture->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in StartStream() 468 OHOS::SurfaceBuffer* buffer = consumer_->AcquireBuffer(); in CreateProducer() local 501 OHOS::sptr<OHOS::SurfaceBuffer> buffer = nullptr; in CreateProducer() local
|
| /drivers/peripheral/camera/hal/buffer_manager/src/gralloc_buffer_allocator/ |
| D | gralloc_buffer_allocator.cpp | 77 std::shared_ptr<IBuffer> buffer = std::make_shared<ImageBuffer>(sourceType_); in AllocBuffer() local 85 RetCode GrallocBufferAllocator::FreeBuffer(std::shared_ptr<IBuffer>& buffer) in FreeBuffer() 107 RetCode GrallocBufferAllocator::MapBuffer(std::shared_ptr<IBuffer>& buffer) in MapBuffer() 134 RetCode GrallocBufferAllocator::UnmapBuffer(std::shared_ptr<IBuffer>& buffer) in UnmapBuffer() 161 RetCode GrallocBufferAllocator::FlushCache(std::shared_ptr<IBuffer>& buffer) in FlushCache() 184 RetCode GrallocBufferAllocator::InvalidateCache(std::shared_ptr<IBuffer>& buffer) in InvalidateCache()
|
| /drivers/peripheral/codec/hal/v1.0/buffer_manager/src/ |
| D | buffer_manager_wrapper.cpp | 32 CodecBuffer *buffer = in IsInputDataBufferReadyImpl() local 44 CodecBuffer *buffer = in GetInputDataBufferImpl() local 57 CodecBuffer *buffer = in GetUsedInputDataBufferImpl() local 88 CodecBuffer *buffer = in IsUsedOutputDataBufferReadyImpl() local 100 CodecBuffer *buffer = in GetOutputDataBufferImpl() local 113 CodecBuffer *buffer = in GetUsedOutputDataBufferImpl() local
|
| /drivers/peripheral/usb/test/unittest/hal/src/ |
| D | usbd_transfer_test.cpp | 151 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 169 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 187 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 206 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 224 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 242 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 261 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 280 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 299 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 317 uint8_t buffer[LENGTH_NUM_255] = {0}; variable [all …]
|
| D | usbd_request_test.cpp | 622 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 640 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 660 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 679 uint8_t buffer[LENGTH_NUM_255] = {}; variable 700 uint8_t buffer[LENGTH_NUM_255] = {}; variable 719 uint8_t buffer[LENGTH_NUM_255] = {}; variable 738 uint8_t buffer[] = {}; variable 759 uint8_t buffer[] = {}; variable 781 uint8_t buffer[LENGTH_NUM_255] = {0}; variable 801 uint8_t buffer[LENGTH_NUM_255] = {0}; variable [all …]
|
| /drivers/peripheral/distributed_camera/hdi_service/src/dstream_operator/ |
| D | dbuffer_manager.cpp | 35 RetCode DBufferManager::AddBuffer(std::shared_ptr<DImageBuffer>& buffer) in AddBuffer() 47 RetCode DBufferManager::RemoveBuffer(std::shared_ptr<DImageBuffer>& buffer) in RemoveBuffer() 67 const std::shared_ptr<DImageBuffer> &buffer) in SurfaceBufferToDImageBuffer() 143 DCameraBuffer &buffer) in DImageBufferToDCameraBuffer()
|
| /drivers/peripheral/camera/hal/test/ut/buffer_manager/ |
| D | buffer_manager_utest.cpp | 65 OHOS::SurfaceBuffer* buffer = consumer->AcquireBuffer(); in __anon93b266320202() local 85 sptr<SurfaceBuffer> buffer = nullptr; in __anon93b266320302() local 159 std::shared_ptr<IBuffer> buffer; variable 226 auto buffer = bufferPool->AcquireBuffer(); variable 280 std::shared_ptr<IBuffer> buffer = std::make_shared<ImageBuffer>(); variable 306 auto buffer = bufferPool->AcquireBuffer(2); in __anon93b266320902() local 571 std::shared_ptr<IBuffer> buffer = nullptr; in EnqueueBufferNonBlock() local 592 void BufferManagerTest::Stream::DequeueBuffer(std::shared_ptr<IBuffer>& buffer) in DequeueBuffer() 698 …sinkNode->BindCallback([this](std::shared_ptr<IBuffer>& buffer) { localStream_->stream->DequeueBuf… in BuildPipeline() 715 auto buffer = bufferPool->AcquireBuffer(3); // 3:Minimum number of buffer rotation in CollectBuffers() local [all …]
|
| /drivers/peripheral/camera/hal/pipeline_core/nodes/src/source_node/ |
| D | source_node.cpp | 105 void SourceNode::DeliverBuffer(std::shared_ptr<IBuffer>& buffer) in DeliverBuffer() 130 auto buffer = frameSpec->buffer_; in OnPackBuffer() local 210 auto buffer = pool->AcquireBuffer(-1); in StopCollectBuffers() local 222 std::shared_ptr<IBuffer> buffer = pool->AcquireBuffer(-1); in CollectBuffers() local 272 std::shared_ptr<IBuffer> buffer = nullptr; in DistributeBuffers() local 291 void SourceNode::PortHandler::OnBuffer(std::shared_ptr<IBuffer>& buffer) in OnBuffer() 316 auto buffer = respondBufferList.front(); in FlushBuffers() local
|
| /drivers/peripheral/display/hal/default/ |
| D | display_gralloc.c | 139 static int32_t InitBufferHandle(PriBufferHandle* buffer, const AllocInfo* info) in InitBufferHandle() 166 static int32_t AllocShm(BufferHandle *buffer) in AllocShm() 206 static int32_t AllocMem(const AllocInfo* info, BufferHandle **buffer) in AllocMem() 240 static void FreeShm(BufferHandle *buffer) in FreeShm() 251 static void FreeMem(BufferHandle *buffer) in FreeMem() 270 static void *MmapShm(BufferHandle *buffer) in MmapShm() 289 static void *Mmap(BufferHandle *buffer) in Mmap() 312 static int32_t UnmapShm(BufferHandle *buffer) in UnmapShm() 325 static int32_t Unmap(BufferHandle *buffer) in Unmap()
|
| /drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
| D | component_node.cpp | 44 …onentNode::OnEmptyBufferDone(OMX_HANDLETYPE component, void *appData, OMX_BUFFERHEADERTYPE *buffer) in OnEmptyBufferDone() 54 …ponentNode::OnFillBufferDone(OMX_HANDLETYPE component, void *appData, OMX_BUFFERHEADERTYPE *buffer) in OnFillBufferDone() 197 int32_t ComponentNode::UseEglImage(struct OmxCodecBuffer &buffer, uint32_t portIndex, int8_t *eglIm… in UseEglImage() 267 int32_t ComponentNode::OnEmptyBufferDone(OMX_BUFFERHEADERTYPE *buffer) in OnEmptyBufferDone() 283 int32_t ComponentNode::OnFillBufferDone(OMX_BUFFERHEADERTYPE *buffer) in OnFillBufferDone() 301 int32_t ComponentNode::UseBuffer(uint32_t portIndex, struct OmxCodecBuffer &buffer) in UseBuffer() 341 int32_t ComponentNode::AllocateBuffer(uint32_t portIndex, struct OmxCodecBuffer &buffer) in AllocateBuffer() 369 int32_t ComponentNode::FreeBuffer(uint32_t portIndex, struct OmxCodecBuffer &buffer) in FreeBuffer() 408 int32_t ComponentNode::EmptyThisBuffer(struct OmxCodecBuffer &buffer) in EmptyThisBuffer() 431 int32_t ComponentNode::FillThisBuffer(struct OmxCodecBuffer &buffer) in FillThisBuffer() [all …]
|
| /drivers/peripheral/codec/hal/src/ |
| D | codec_callback_type_service.c | 30 const struct OmxCodecBuffer *buffer) in CodecCallbackTypeEmptyBufferDone() 37 const struct OmxCodecBuffer *buffer) in CodecCallbackTypeFillBufferDone()
|
| /drivers/peripheral/codec/hal/idl_service/src/ |
| D | component_node.cpp | 46 …onentNode::OnEmptyBufferDone(OMX_HANDLETYPE component, void *appData, OMX_BUFFERHEADERTYPE *buffer) in OnEmptyBufferDone() 56 …ponentNode::OnFillBufferDone(OMX_HANDLETYPE component, void *appData, OMX_BUFFERHEADERTYPE *buffer) in OnFillBufferDone() 228 int32_t ComponentNode::UseEglImage(struct OmxCodecBuffer &buffer, uint32_t portIndex, const int8_t … in UseEglImage() 279 int32_t ComponentNode::OnEmptyBufferDone(OMX_BUFFERHEADERTYPE *buffer) in OnEmptyBufferDone() 295 int32_t ComponentNode::OnFillBufferDone(OMX_BUFFERHEADERTYPE *buffer) in OnFillBufferDone() 313 int32_t ComponentNode::UseBuffer(uint32_t portIndex, OmxCodecBuffer &buffer) in UseBuffer() 352 int32_t ComponentNode::AllocateBuffer(uint32_t portIndex, OmxCodecBuffer &buffer) in AllocateBuffer() 377 int32_t ComponentNode::FreeBuffer(uint32_t portIndex, const OmxCodecBuffer &buffer) in FreeBuffer() 412 int32_t ComponentNode::EmptyThisBuffer(OmxCodecBuffer &buffer) in EmptyThisBuffer() 432 int32_t ComponentNode::FillThisBuffer(OmxCodecBuffer &buffer) in FillThisBuffer() [all …]
|
| /drivers/peripheral/camera/hal/buffer_manager/src/buffer_adapter/standard/ |
| D | buffer_adapter.cpp | 21 const std::shared_ptr<IBuffer>& buffer) in SurfaceBufferToCameraBuffer() 46 RetCode BufferAdapter::CameraBufferToSurfaceBuffer(const std::shared_ptr<IBuffer>& buffer, in CameraBufferToSurfaceBuffer() 72 RetCode BufferAdapter::SetExtInfoToSurfaceBuffer(const std::shared_ptr<IBuffer>& buffer, in SetExtInfoToSurfaceBuffer()
|
| /drivers/peripheral/camera/hal_c/hdi_cif/src/ |
| D | buffer_producer_wrapper.cpp | 30 int BufferProducerRequestBuffer(GraphicBufferCIF* buffer) in BufferProducerRequestBuffer() 71 int BufferProducerCancelBuffer(GraphicBufferCIF* buffer) in BufferProducerCancelBuffer() 90 int BufferProducerFlushBuffer(GraphicBufferCIF* buffer) in BufferProducerFlushBuffer()
|
| /drivers/peripheral/display/test/unittest/standard/display_device/ |
| D | hdi_test_layer.cpp | 89 HdiGrallocBuffer *buffer = nullptr; in GetFrontBuffer() local 98 HdiGrallocBuffer *buffer = nullptr; in GetBackBuffer() local 115 std::unique_ptr<HdiGrallocBuffer> buffer = in Init() local 176 HdiGrallocBuffer *buffer = AcquireBackBuffer(); in PreparePresent() local
|
| /drivers/peripheral/codec/hal/passthrough/src/ |
| D | codec_callback_if.c | 31 struct CodecCallbackType *self, int64_t appData, const struct OmxCodecBuffer *buffer) in CodecCallbackTypeEmptyBufferDone() 38 struct CodecCallbackType *self, int64_t appData, const struct OmxCodecBuffer *buffer) in CodecCallbackTypeFillBufferDone()
|
| /drivers/liteos/hievent/src/ |
| D | hievent_driver.c | 72 unsigned char *buffer; member 143 static int HieventReadRingBuffer(unsigned char *buffer, size_t bufLen) in HieventReadRingBuffer() 161 static ssize_t HieventRead(struct file *filep, char *buffer, size_t bufLen) in HieventRead() 216 static int HieventWriteRingBuffer(unsigned char *buffer, size_t bufLen) in HieventWriteRingBuffer() 270 int HieventWriteInternal(const char *buffer, size_t bufLen) in HieventWriteInternal() 327 const char *buffer, size_t bufLen) in HieventWrite()
|
| /drivers/peripheral/camera/hal/test/at/hdi/ |
| D | utest_stream_operator_impl.cpp | 94 producer = previewConsumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anon585834330102() 156 producer = previewConsumer.CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anon585834330302() 176 producer_ = snapshotConsumer->CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anon585834330502() 212 producer = previewConsumer.CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anon585834330702() 227 producer_ = snapshotConsumer.CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anon585834330802() 240 preview_consumer.CreateProducer([this](OHOS::SurfaceBuffer* buffer) { in __anon585834330902()
|