Home
last modified time | relevance | path

Searched refs:bufferId (Results 1 – 25 of 45) sorted by relevance

12

/drivers/peripheral/codec/hal/idl_service/src/
Dcomponent_node.cpp368 uint32_t bufferId = GenerateBufferId(); in UseBuffer() local
369 buffer.bufferId = bufferId; in UseBuffer()
370 codecBuffer->SetBufferId(bufferId); in UseBuffer()
373 codecBufferMap_.emplace(std::make_pair(bufferId, codecBuffer)); in UseBuffer()
374 bufferHeaderMap_.emplace(std::make_pair(bufferHdrType, bufferId)); in UseBuffer()
398 uint32_t bufferId = GenerateBufferId(); in AllocateBuffer() local
399 buffer.bufferId = bufferId; in AllocateBuffer()
402 codecBufferMap_.emplace(std::make_pair(bufferId, codecBuffer)); in AllocateBuffer()
403 bufferHeaderMap_.emplace(std::make_pair(bufferHdrType, bufferId)); in AllocateBuffer()
415 if (!GetBufferById(buffer.bufferId, codecBufer, bufferHdrType)) { in FreeBuffer()
[all …]
Dicodec_buffer.cpp71 void ICodecBuffer::SetBufferId(int32_t bufferId) in SetBufferId() argument
73 codecBuffer_.bufferId = bufferId; in SetBufferId()
/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/
Dcomponent_node.cpp342 uint32_t bufferId = GenerateBufferId(); in UseBuffer() local
343 buffer.bufferId = bufferId; in UseBuffer()
344 codecBuffer->SetBufferId(bufferId); in UseBuffer()
347 codecBufferMap_.emplace(std::make_pair(bufferId, codecBuffer)); in UseBuffer()
348 bufferHeaderMap_.emplace(std::make_pair(bufferHdrType, bufferId)); in UseBuffer()
375 uint32_t bufferId = GenerateBufferId(); in AllocateBuffer() local
376 buffer.bufferId = bufferId; in AllocateBuffer()
379 codecBufferMap_.emplace(std::make_pair(bufferId, codecBuffer)); in AllocateBuffer()
380 bufferHeaderMap_.emplace(std::make_pair(bufferHdrType, bufferId)); in AllocateBuffer()
396 if (!GetBufferById(buffer.bufferId, codecBufer, bufferHdrType)) { in FreeBuffer()
[all …]
Dicodec_buffer.cpp70 void ICodecBuffer::SetBufferId(int32_t bufferId) in SetBufferId() argument
72 codecBuffer_.bufferId = static_cast<uint32_t>(bufferId); in SetBufferId()
/drivers/peripheral/codec/test/unittest/idl_omx/
Dcodec_function_utils.cpp156 omxBuffer->bufferId = outBuffer.bufferId; in UseDynaBuffer()
159 inputBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseDynaBuffer()
185 omxBuffer->bufferId = outBuffer.bufferId; in UseHandleBuffer()
188 outputBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseHandleBuffer()
210 omxBuffer->bufferId = outBuffer.bufferId; in UseBufferOnPort()
216 inputBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferOnPort()
218 outputBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferOnPort()
244 omxBuffer->bufferId = outBuffer.bufferId; in AllocateBufferOnPort()
254 inputBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in AllocateBufferOnPort()
257 outputBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in AllocateBufferOnPort()
[all …]
/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() local
144 buf.id = bufferId; in CameraAllocBuffer()
158 lengthArray_[bufferId] = buf.planes[0].length; in CameraAllocBuffer()
159 offArray_[bufferId] = buf.planes[0].memory.offset; in CameraAllocBuffer()
160 … mmapArray_[bufferId] = mmap(NULL, buf.planes[0].length, PROT_READ|PROT_WRITE, MAP_SHARED, in CameraAllocBuffer()
161 fd, offArray_[bufferId]); in CameraAllocBuffer()
170 lengthArray_[bufferId] = buf.planes[0].length; in CameraAllocBuffer()
171 … mmapArray_[bufferId] = mmap(NULL, lengthArray_[bufferId], PROT_READ | PROT_WRITE, MAP_SHARED, in CameraAllocBuffer()
/drivers/peripheral/codec/test/demo/idl/src/
Dcodec_hdi_decode.cpp425 omxBuffer->bufferId = outBuffer.bufferId; in UseBufferOnPort()
427 HDF_LOGI("UseBuffer returned bufferID [%{public}d]", omxBuffer->bufferId); in UseBufferOnPort()
433 omxBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferOnPort()
435 unUsedInBuffers_.push_back(omxBuffer->bufferId); in UseBufferOnPort()
437 unUsedOutBuffers_.push_back(omxBuffer->bufferId); in UseBufferOnPort()
529 omxBuffer->bufferId = outBuffer.bufferId; in UseBufferHandle()
530 HDF_LOGI("UseBuffer returned bufferID [%{public}d]", omxBuffer->bufferId); in UseBufferHandle()
536 omxBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferHandle()
537 unUsedOutBuffers_.push_back(omxBuffer->bufferId); in UseBufferHandle()
585 for (auto bufferId : unUsedOutBuffers_) { in FillAllTheBuffer() local
[all …]
Dcodec_hdi_encode.cpp374 omxBuffer->bufferId = outBuffer.bufferId; in UseBufferOnPort()
375 HDF_LOGI("UseBuffer returned bufferID [%{public}d]", omxBuffer->bufferId); in UseBufferOnPort()
381 omxBuffers_.insert(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferOnPort()
383 unUsedInBuffers_.push_back(omxBuffer->bufferId); in UseBufferOnPort()
385 unUsedOutBuffers_.push_back(omxBuffer->bufferId); in UseBufferOnPort()
417 omxBuffer->bufferId = outBuffer.bufferId; in UseDynaBuffer()
418 HDF_LOGI("UseBuffer returned bufferID [%{public}d]", omxBuffer->bufferId); in UseDynaBuffer()
423 omxBuffers_.insert(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseDynaBuffer()
424 unUsedInBuffers_.push_back(omxBuffer->bufferId); in UseDynaBuffer()
470 for (auto bufferId : unUsedOutBuffers_) { in FillAllTheBuffer() local
[all …]
/drivers/hdf_core/framework/model/camera/buffer_manager/src/
Dbuffer_queue.c159 uint32_t bufferId; in BufferQueueAllocBuffers() local
165 for (bufferId = 0; bufferId < numBuffers; ++bufferId) { in BufferQueueAllocBuffers()
174 buffer->id = queue->numBuffers + bufferId; in BufferQueueAllocBuffers()
196 HDF_LOGI("%s: allocated %{public}d buffers and %{public}d planes", __func__, bufferId, planeId); in BufferQueueAllocBuffers()
198 return bufferId; in BufferQueueAllocBuffers()
Dcamera_buffer_manager.c50 unsigned long off, uint32_t *bufferId, uint32_t *planeId) in BufferQueueFindPlaneByOffset() argument
56 if (queue == NULL || bufferId == NULL || planeId == NULL) { in BufferQueueFindPlaneByOffset()
64 *bufferId = bufferCnt; in BufferQueueFindPlaneByOffset()
/drivers/peripheral/codec/test/demo/v2.0/src/
Dcodec_hdi_encode.cpp345 HDF_LOGI("UseBuffer returned bufferID [%{public}d]", omxBuffer->bufferId); in UseBufferOnPort()
351 omxBuffers_.insert(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferOnPort()
353 unUsedInBuffers_.push_back(omxBuffer->bufferId); in UseBufferOnPort()
355 unUsedOutBuffers_.push_back(omxBuffer->bufferId); in UseBufferOnPort()
386 HDF_LOGI("UseBuffer returned bufferID [%{public}d]", omxBuffer->bufferId); in UseDynaBuffer()
391 omxBuffers_.insert(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseDynaBuffer()
392 unUsedInBuffers_.push_back(omxBuffer->bufferId); in UseDynaBuffer()
439 for (auto bufferId : unUsedOutBuffers_) { in FillAllTheBuffer() local
440 HDF_LOGI("fill bufferid [%{public}d]", bufferId); in FillAllTheBuffer()
441 auto iter = omxBuffers_.find(bufferId); in FillAllTheBuffer()
[all …]
Dcodec_hdi_decode.cpp361 HDF_LOGI("UseBuffer returned bufferID [%{public}d]", omxBuffer->bufferId); in UseBufferOnPort()
367 omxBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferOnPort()
369 unUsedInBuffers_.push_back(omxBuffer->bufferId); in UseBufferOnPort()
371 unUsedOutBuffers_.push_back(omxBuffer->bufferId); in UseBufferOnPort()
472 HDF_LOGI("UseBuffer returned bufferID [%{public}d]", omxBuffer->bufferId); in UseBufferHandle()
478 omxBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferHandle()
479 unUsedOutBuffers_.push_back(omxBuffer->bufferId); in UseBufferHandle()
528 for (auto bufferId : unUsedOutBuffers_) { in FillAllTheBuffer() local
529 HDF_LOGI("fill bufferid [%{public}d]", bufferId); in FillAllTheBuffer()
530 auto iter = omxBuffers_.find(bufferId); in FillAllTheBuffer()
[all …]
/drivers/peripheral/codec/image/jpeg/src/
Dcodec_jpeg_dec.cpp107 uint32_t bufferId = inBuffer.id; in FreeInBuffer() local
108 auto entry = bufferHandleMap_.find(bufferId); in FreeInBuffer()
109 …_RET_LOG(entry != bufferHandleMap_.end(), HDF_FAILURE, "not find bufferId:[%{public}d]", bufferId); in FreeInBuffer()
/drivers/peripheral/codec/hal/v1.0/codec_instance/include/
Dcodec_instance.h91 …t AddInputShm(struct CodecInstance *instance, const CodecBufferInfo *bufferInfo, int32_t bufferId);
92 … AddOutputShm(struct CodecInstance *instance, const CodecBufferInfo *bufferInfo, int32_t bufferId);
/drivers/peripheral/codec/hal/v1.0/codec_instance/src/
Dcodec_instance.c458 …_t AddInputShm(struct CodecInstance *instance, const CodecBufferInfo *bufferInfo, int32_t bufferId) in AddInputShm() argument
469 instance->inputBuffers[count].id = bufferId; in AddInputShm()
489 …t AddOutputShm(struct CodecInstance *instance, const CodecBufferInfo *bufferInfo, int32_t bufferId) in AddOutputShm() argument
500 instance->outputBuffers[count].id = bufferId; in AddOutputShm()
624 if (instance->inputInfos[i]->bufferId == id) { in GetInputInfo()
639 if (instance->outputInfos[i]->bufferId == id) { in GetOutputInfo()
729 dst->bufferId = src->bufferId; in CopyCodecBufferWithTypeSwitch()
741 dst->buffer[i].buf = (intptr_t)GetShmById(instance, src->bufferId)->virAddr; in CopyCodecBufferWithTypeSwitch()
743 dst->buffer[i].buf = (intptr_t)GetShmById(instance, src->bufferId)->virAddr; in CopyCodecBufferWithTypeSwitch()
746 HDF_LOGE("%{public}s: buf value invalid! bufferId:%{public}d", __func__, src->bufferId); in CopyCodecBufferWithTypeSwitch()
/drivers/peripheral/codec/test/benchmarktest/
Dcodec_benchmark_omx_test.cpp163 omxBuffer->bufferId = outBuffer.bufferId; in UseBufferOnPort()
169 inputBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferOnPort()
171 outputBuffers_.emplace(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferOnPort()
183 for (auto [bufferId, bufferInfo] : buffer) { in FreeBufferOnPort()
473 omxBuffer->bufferId = outBuffer.bufferId; in BENCHMARK_F()
511 omxBuffer.bufferId = BUFFER_ID_ERROR; in BENCHMARK_F()
527 omxBuffer.bufferId = BUFFER_ID_ERROR; in BENCHMARK_F()
/drivers/peripheral/codec/test/demo/adapter/src/
Dcodec_hdi_adapter_encode.cpp298 HDF_LOGI("UseBuffer returned bufferID [%{public}d]", omxBuffer->bufferId); in UseBufferOnPort()
304 omxBuffers_.insert(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseBufferOnPort()
338 omxBuffers_.insert(std::make_pair(omxBuffer->bufferId, bufferInfo)); in UseDynaBuffer()
387 for (auto bufferId : unUsedOutBuffers_) { in FillAllTheBuffer() local
388 HDF_LOGI("fill bufferid [%{public}d]", bufferId); in FillAllTheBuffer()
389 auto iter = omxBuffers_.find(bufferId); in FillAllTheBuffer()
570 unUsedInBuffers_.push_back(buffer.bufferId); in OnEmptyBufferDone()
572 auto bufferInfo = omxBuffers_[buffer.bufferId]; in OnEmptyBufferDone()
589 auto iter = omxBuffers_.find(buffer.bufferId); in OnFillBufferDone()
/drivers/hdf_core/framework/model/camera/buffer_manager/include/
Dcamera_buffer_manager.h22 unsigned long off, uint32_t *bufferId, uint32_t *planeId);
/drivers/peripheral/codec/test/unittest/hdi_v1.0/
Dcodec_proxy_test.cpp336 g_inputInfoData->bufferId = 0;
360 ASSERT_EQ(inputInfo->bufferId, g_inputInfoData->bufferId);
397 g_outputInfoData->bufferId = 1;
423 ASSERT_EQ(outInfo->bufferId, g_outputInfoData->bufferId);
/drivers/peripheral/codec/hal/passthrough/adapter/src/
Dcomponent_node.cpp427 buffer.bufferId = bufferId_++; in UseBuffer()
476 buffer.bufferId = bufferId_++; in AllocateBuffer()
514 if (buffer.bufferId >= bufferId_) { in EmptyThisBuffer()
515 HDF_LOGE("%{public}s error, bufferId = %{public}d is invalid.", __func__, buffer.bufferId); in EmptyThisBuffer()
541 if (buffer.bufferId >= bufferId_) { in FillThisBuffer()
542 HDF_LOGE("%{public}s error, bufferId = %{public}d is invalid.", __func__, buffer.bufferId); in FillThisBuffer()
/drivers/peripheral/codec/hal/v2.0/hdi_impl/include/
Dicodec_buffer.h60 void SetBufferId(int32_t bufferId);
/drivers/peripheral/codec/hal/idl_service/include/
Dicodec_buffer.h61 void SetBufferId(int32_t bufferId);
/drivers/peripheral/codec/hdi_service/codec_service_stub/
Dcodec_service.c79 CodecBuffer *inputInfo = GetInputInfo(instance, inBuf->bufferId); in CodecInputBufferAvailable()
101 CodecBuffer *outputInfo = GetOutputInfo(instance, outBuf->bufferId); in CodecOutputBufferAvailable()
470 if (AddInputShm(instance, &inputData->buffer[i], inputData->bufferId) != HDF_SUCCESS) { in CodecQueueInput()
484 CodecBuffer *info = GetInputInfo(instance, inputData->bufferId); in CodecQueueInput()
538 if (AddOutputShm(instance, &outInfo->buffer[i], outInfo->bufferId) != HDF_SUCCESS) { in CodecQueueOutput()
552 CodecBuffer *info = GetOutputInfo(instance, outInfo->bufferId); in CodecQueueOutput()
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codeccommonomx_fuzzer/
Dcodeccommon_fuzzer.cpp54 dataFuzz->bufferId = DATA_BUFFERID; in FillDataOmxCodecBuffer()
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccommonhdi_fuzzer/
Dcodeccommon_fuzzer.cpp47 dataFuzz->bufferId = DATA_BUFFERID; in FillDataOmxCodecBuffer()

12