/drivers/hdf_core/framework/tools/hdi-gen/util/ |
D | string_builder.cpp | 23 if (buffer_ != nullptr) { in ~StringBuilder() 24 free(buffer_); in ~StringBuilder() 36 buffer_[position_] = c; in Append() 54 (void)memcpy_s(buffer_ + position_, capacity_ - position_, string, len); in Append() 72 (void)memcpy_s(buffer_ + position_, capacity_ - position_, string.c_str(), len); in Append() 102 if (vsnprintf_s(buffer_ + position_, writeSize + 1, writeSize, format, argsCopy) < 0) { in AppendFormat() 139 if (buffer_ != nullptr) { in Grow() 140 (void)memcpy_s(newBuffer, newSize, buffer_, capacity_); in Grow() 141 free(buffer_); in Grow() 143 buffer_ = newBuffer; in Grow() [all …]
|
D | file.cpp | 109 return buffer_[position_]; in PeekChar() 114 return isEof_ || buffer_[position_] == -1; in IsEof() 123 std::fill(buffer_, buffer_ + BUFFER_SIZE, 0); in Read() 124 size_t count = fread(buffer_, 1, BUFFER_SIZE - 1, fd_); in Read() 127 buffer_[count] = -1; in Read()
|
D | string_builder.h | 33 char* buffer_ = nullptr; variable
|
D | file.h | 87 char buffer_[BUFFER_SIZE] = {0}; variable
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/ |
D | camera_buffer.cpp | 141 uint32_t bufferId = frameSpec->buffer_->GetIndex(); in CameraAllocBuffer() 164 if (buf.planeCount > frameSpec->buffer_->GetSize()) { in CameraAllocBuffer() 172 frameSpec->buffer_->GetFileDescriptor(), 0); in CameraAllocBuffer() 197 isFailed |= !HdfSbufWriteUint32(reqData, frameSpec->buffer_->GetIndex()); in CameraStreamQueue() 199 isFailed |= !HdfSbufWriteUint32(reqData, frameSpec->buffer_->GetSize()); in CameraStreamQueue() 201 isFailed |= !HdfSbufWriteUint64(reqData, (uint64_t)frameSpec->buffer_->GetVirAddress()); in CameraStreamQueue() 203 isFailed |= !HdfSbufWriteUint32(reqData, offArray_[frameSpec->buffer_->GetIndex()]); in CameraStreamQueue() 205 isFailed |= !HdfSbufWriteUint32(reqData, frameSpec->buffer_->GetFileDescriptor()); in CameraStreamQueue() 214 bufferMap[frameSpec->buffer_->GetIndex()] = frameSpec; in CameraStreamQueue() 253 …memcpy_s(bufferMap[id]->buffer_->GetVirAddress(), lengthArray_[id], mmapArray_[id], lengthArray_[i… in CameraStreamDequeue()
|
D | camera_dev.cpp | 244 CAMERA_LOGD("frameSpec->buffer index == %{public}d\n", frameSpec->buffer_->GetIndex()); in CreatBuffer()
|
/drivers/peripheral/codec/test/demo/v2.0/include/ |
D | codec_hdi_decode.h | 60 if (bufferHandle != nullptr && buffer_ != nullptr) { in ~BufferInfo() 61 buffer_->FreeMem(*bufferHandle); in ~BufferInfo() 69 if (buffer_ != nullptr) { in setBufferHandle() 70 buffer_->FreeMem(*this->bufferHandle); in setBufferHandle() 156 static OHOS::HDI::Display::Buffer::V1_0::IDisplayBuffer *buffer_; variable
|
D | codec_hdi_encode.h | 149 static OHOS::HDI::Display::Buffer::V1_0::IDisplayBuffer *buffer_; variable
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/ |
D | v4l2_buffer.cpp | 107 buf.index = (uint32_t)frameSpec->buffer_->GetIndex(); in MakeInqueueBuffer() 134 buf.m.planes[0].length = frameSpec->buffer_->GetSize(); in SetInqueueBuffer() 135 buf.m.planes[0].m.userptr = (unsigned long)frameSpec->buffer_->GetVirAddress(); in SetInqueueBuffer() 138 buf.length = frameSpec->buffer_->GetSize(); in SetInqueueBuffer() 139 buf.m.userptr = (unsigned long)frameSpec->buffer_->GetVirAddress(); in SetInqueueBuffer() 235 buf.index = (uint32_t)frameSpec->buffer_->GetIndex(); in V4L2AllocBuffer() 247 buf.length, frameSpec->buffer_->GetSize(), buf.index); in V4L2AllocBuffer() 248 if (buf.length > frameSpec->buffer_->GetSize()) { in V4L2AllocBuffer() 252 buffLong_ = frameSpec->buffer_->GetSize(); in V4L2AllocBuffer() 263 int32_t index = (uint32_t)frameSpec->buffer_->GetIndex(); in SetAdapterBuffer() [all …]
|
D | v4l2_dev.cpp | 166 CAMERA_LOGD("Creatbuffer frameSpec->buffer index == %d\n", frameSpec->buffer_->GetIndex()); in CreatBuffer()
|
/drivers/peripheral/display/composer/test/common/ |
D | hdi_test_layer.cpp | 48 buffer_ = buffer; in HdiGrallocBuffer() 55 if (buffer_ != nullptr) { in ~HdiGrallocBuffer() 57 if (buffer_->virAddr != nullptr) { in ~HdiGrallocBuffer() 58 int ret = gralloc->Unmap(*buffer_); in ~HdiGrallocBuffer() 63 gralloc->FreeMem(*buffer_); in ~HdiGrallocBuffer() 64 buffer_ = nullptr; in ~HdiGrallocBuffer() 88 DISPLAY_TEST_CHK_RETURN(buffer_ == nullptr, DISPLAY_FAILURE, in SetGraphicBuffer() 95 ret = realFunc(buffer_, seqNo_); in SetGraphicBuffer()
|
D | hdi_test_layer.h | 34 return buffer_; in Get() 49 BufferHandle* buffer_ = nullptr;
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/main_test/ |
D | v4l2_main.cpp | 317 … unsigned char* addr = reinterpret_cast<unsigned char*>(buffer->buffer_->GetVirAddress()); in V4L2BufferCallback() 318 uint32_t size = buffer->buffer_->GetSize(); in V4L2BufferCallback() 319 int32_t index = buffer->buffer_->GetIndex(); in V4L2BufferCallback() 322 … unsigned char* addr = reinterpret_cast<unsigned char*>(buffer->buffer_->GetVirAddress()); in V4L2BufferCallback() 323 uint32_t size = buffer->buffer_->GetSize(); in V4L2BufferCallback() 327 … LcdDrawScreen(g_displayBuf, reinterpret_cast<unsigned char*>(buffer->buffer_->GetVirAddress())); in V4L2BufferCallback() 334 buffer->buffer_->SetUsage(0); in V4L2BufferCallback() 343 if (!buffptr[i]->buffer_->GetUsage()) { in V4L2CamFrame() 345 buffptr[i]->buffer_->SetUsage(1); in V4L2CamFrame() 459 buffptr[i]->buffer_ = std::make_shared<IBuffer>(); in V4L2SetBuffers() [all …]
|
/drivers/peripheral/codec/test/unittest/idl_omx/ |
D | codec_function_utils.h | 74 if (bufferHandle != nullptr && buffer_ != nullptr) { in ~BufferInfo() 75 buffer_->FreeMem(*bufferHandle); in ~BufferInfo() 152 static OHOS::HDI::Display::Buffer::V1_0::IDisplayBuffer *buffer_;
|
D | codec_function_utils.cpp | 26 IDisplayBuffer *FunctionUtil::buffer_ = nullptr; member in FunctionUtil 30 buffer_ = IDisplayBuffer::Get(); in FunctionUtil() 36 buffer_ = nullptr; in ~FunctionUtil() 123 if (buffer_ == nullptr) { in FillCodecBufferWithBufferHandle() 127 auto ret = buffer_->AllocMem(alloc, bufferHandle); in FillCodecBufferWithBufferHandle()
|
/drivers/peripheral/camera/vdi_base/v4l2/src/stream_operator/ |
D | capture_request.cpp | 126 buffer_ = b; in AttachBuffer() 131 return buffer_; in GetAttachedBuffer()
|
/drivers/peripheral/camera/vdi_base/common/include/ |
D | stream.h | 64 std::shared_ptr<IBuffer> buffer_; member
|
/drivers/peripheral/camera/vdi_base/v4l2/include/ |
D | utils.h | 48 OHOS::sptr<OHOS::SurfaceBuffer> buffer_; member
|
/drivers/hdf_core/framework/tools/hc-gen/src/ |
D | lexer.h | 76 char buffer_[BUFFER_SIZE] {0};
|
D | lexer.cpp | 176 auto size = src_.readsome(buffer_, BUFFER_SIZE); in FillBuffer() 180 bufferStart_ = buffer_; in FillBuffer()
|
/drivers/peripheral/codec/test/demo/v2.0/src/ |
D | codec_hdi_decode.cpp | 34 IDisplayBuffer *CodecHdiDecode::buffer_ = nullptr; member in CodecHdiDecode 99 buffer_ = IDisplayBuffer::Get(); in Init() 431 if (bufferCount <= 0 || bufferSize <= 0 || buffer_ == nullptr) { in UseBufferHandle() 452 ret = buffer_->AllocMem(alloc, bufferHandle); in UseBufferHandle() 701 } else if (bufferInfo->bufferHandle != nullptr && buffer_ != nullptr) { in OnFillBufferDone() 702 buffer_->Mmap(*bufferInfo->bufferHandle); in OnFillBufferDone() 704 buffer_->Unmap(*bufferInfo->bufferHandle); in OnFillBufferDone()
|
D | codec_hdi_encode.cpp | 27 IDisplayBuffer *CodecHdiEncode::buffer_ = nullptr; member in CodecHdiEncode 97 buffer_ = IDisplayBuffer::Get(); in Init() 514 if (buffer_ == nullptr) { in FillCodecBuffer() 528 buffer_->Mmap(*bufferHandle); in FillCodecBuffer() 532 buffer_->Unmap(*bufferHandle); in FillCodecBuffer() 552 if (buffer_ == nullptr) { in CreateBufferHandle() 571 err = buffer_->AllocMem(alloc, bufferHandle); in CreateBufferHandle()
|
/drivers/peripheral/camera/vdi_base/v4l2/include/stream_operator/ |
D | capture_request.h | 81 std::shared_ptr<IBuffer> buffer_ = nullptr; variable
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/include/ |
D | v4l2_temp.h | 94 std::shared_ptr<IBuffer> buffer_; member
|
/drivers/peripheral/camera/vdi_base/common/pipeline_core/nodes/src/source_node/ |
D | source_node.cpp | 133 auto buffer = frameSpec->buffer_; in OnPackBuffer() 243 frameSpec->buffer_ = buffer; in CollectBuffers()
|