Home
last modified time | relevance | path

Searched refs:buffer_ (Results 1 – 25 of 26) sorted by relevance

12

/drivers/hdf_core/framework/tools/hdi-gen/util/
Dstring_builder.cpp23 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 …]
Dfile.cpp109 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()
Dstring_builder.h33 char* buffer_ = nullptr; variable
Dfile.h87 char buffer_[BUFFER_SIZE] = {0}; variable
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/
Dcamera_buffer.cpp141 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()
Dcamera_dev.cpp244 CAMERA_LOGD("frameSpec->buffer index == %{public}d\n", frameSpec->buffer_->GetIndex()); in CreatBuffer()
/drivers/peripheral/codec/test/demo/v2.0/include/
Dcodec_hdi_decode.h60 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
Dcodec_hdi_encode.h149 static OHOS::HDI::Display::Buffer::V1_0::IDisplayBuffer *buffer_; variable
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/
Dv4l2_buffer.cpp107 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 …]
Dv4l2_dev.cpp166 CAMERA_LOGD("Creatbuffer frameSpec->buffer index == %d\n", frameSpec->buffer_->GetIndex()); in CreatBuffer()
/drivers/peripheral/display/composer/test/common/
Dhdi_test_layer.cpp48 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()
Dhdi_test_layer.h34 return buffer_; in Get()
49 BufferHandle* buffer_ = nullptr;
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/main_test/
Dv4l2_main.cpp317 … 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/
Dcodec_function_utils.h74 if (bufferHandle != nullptr && buffer_ != nullptr) { in ~BufferInfo()
75 buffer_->FreeMem(*bufferHandle); in ~BufferInfo()
152 static OHOS::HDI::Display::Buffer::V1_0::IDisplayBuffer *buffer_;
Dcodec_function_utils.cpp26 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/
Dcapture_request.cpp126 buffer_ = b; in AttachBuffer()
131 return buffer_; in GetAttachedBuffer()
/drivers/peripheral/camera/vdi_base/common/include/
Dstream.h64 std::shared_ptr<IBuffer> buffer_; member
/drivers/peripheral/camera/vdi_base/v4l2/include/
Dutils.h48 OHOS::sptr<OHOS::SurfaceBuffer> buffer_; member
/drivers/hdf_core/framework/tools/hc-gen/src/
Dlexer.h76 char buffer_[BUFFER_SIZE] {0};
Dlexer.cpp176 auto size = src_.readsome(buffer_, BUFFER_SIZE); in FillBuffer()
180 bufferStart_ = buffer_; in FillBuffer()
/drivers/peripheral/codec/test/demo/v2.0/src/
Dcodec_hdi_decode.cpp34 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()
Dcodec_hdi_encode.cpp27 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/
Dcapture_request.h81 std::shared_ptr<IBuffer> buffer_ = nullptr; variable
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/include/
Dv4l2_temp.h94 std::shared_ptr<IBuffer> buffer_; member
/drivers/peripheral/camera/vdi_base/common/pipeline_core/nodes/src/source_node/
Dsource_node.cpp133 auto buffer = frameSpec->buffer_; in OnPackBuffer()
243 frameSpec->buffer_ = buffer; in CollectBuffers()

12