Home
last modified time | relevance | path

Searched refs:outBuf (Results 1 – 16 of 16) sorted by relevance

/drivers/peripheral/codec/hdi_service/codec_service_stub/
Dcodec_callback_stub.c119 CodecBuffer *outBuf = NULL; in SerCodecOutputBufferAvailable() local
134 outBuf = (CodecBuffer *)OsalMemAlloc(sizeof(CodecBuffer) + sizeof(CodecBufferInfo) * bufCnt); in SerCodecOutputBufferAvailable()
135 if (outBuf == NULL) { in SerCodecOutputBufferAvailable()
139 outBuf->bufferCnt = bufCnt; in SerCodecOutputBufferAvailable()
140 if (CodecSerParseCodecBuffer(data, outBuf)) { in SerCodecOutputBufferAvailable()
142 OsalMemFree(outBuf); in SerCodecOutputBufferAvailable()
145 ret = serviceImpl->callback.OutputBufferAvailable((UINTPTR)userData, outBuf, &acquireFd); in SerCodecOutputBufferAvailable()
148 OsalMemFree(outBuf); in SerCodecOutputBufferAvailable()
151 OsalMemFree(outBuf); in SerCodecOutputBufferAvailable()
Dcodec_callback_service.h28 int CodecCallbackOutputBufferAvailable(UINTPTR userData, CodecBuffer *outBuf, int32_t *acquireFd);
Dcodec_callback_service.c33 int CodecCallbackOutputBufferAvailable(UINTPTR userData, CodecBuffer *outBuf, int32_t *acquireFd) in CodecCallbackOutputBufferAvailable() argument
Dcodec_service.c90 static int32_t CodecOutputBufferAvailable(UINTPTR userData, CodecBuffer *outBuf, int32_t *acquireFd) in CodecOutputBufferAvailable() argument
97 if (outBuf == NULL || outBuf->bufferCnt == 0) { in CodecOutputBufferAvailable()
101 CodecBuffer *outputInfo = GetOutputInfo(instance, outBuf->bufferId); in CodecOutputBufferAvailable()
106 CopyCodecBufferWithTypeSwitch(instance, outputInfo, outBuf, true); in CodecOutputBufferAvailable()
118 SetOemCodecBufferType(outBuf, output); in CodecOutputBufferAvailable()
119 CopyCodecBufferWithTypeSwitch(instance, outBuf, output, false); in CodecOutputBufferAvailable()
/drivers/peripheral/display/test/unittest/lite/
Dloadbmp_test.c115 uint8_t **outBuf, uint32_t *stride) in LoadPicToBuffer() argument
150 *outBuf = (uint8_t*)malloc(videoLogo->height * (*stride)); in LoadPicToBuffer()
151 if (*outBuf == NULL) { in LoadPicToBuffer()
161 free(*outBuf); in LoadPicToBuffer()
162 *outBuf = NULL; in LoadPicToBuffer()
165 if (fread((*outBuf), 1, byteNum, file) != byteNum) { in LoadPicToBuffer()
168 free(*outBuf); in LoadPicToBuffer()
169 *outBuf = NULL; in LoadPicToBuffer()
/drivers/peripheral/sensor/chipset/ppg/
Dppg_cs1262.c91 static int32_t ReadFifo(uint8_t *outBuf, uint16_t outBufMaxLen, uint16_t *outLen) in ReadFifo() argument
120 (void)memset_s(outBuf, outBufMaxLen, 0, (fifoNum * sizeof(Cs1262FifoVal))); in ReadFifo()
121 ret = Cs1262ReadFifoReg((Cs1262FifoVal *)outBuf, fifoNum); in ReadFifo()
208 static int32_t Cs1262ReadData(uint8_t *outBuf, uint16_t outBufMaxLen, uint16_t *outLen) in Cs1262ReadData() argument
212 CHECK_NULL_PTR_RETURN_VALUE(outBuf, HDF_ERR_INVALID_PARAM); in Cs1262ReadData()
221 ret = ReadFifo(outBuf, outBufMaxLen, outLen); in Cs1262ReadData()
/drivers/hdf_core/framework/model/sensor/driver/ppg/
Dsensor_ppg_driver.h21 int32_t (*ReadData)(uint8_t *outBuf, uint16_t outBufMaxLen, uint16_t *outLen);
/drivers/peripheral/codec/hdi_service/codec_proxy/
Dcodec_callback.h46 CodecBuffer *outBuf, int32_t *acquireFd);
Dcodec_callback_proxy.c157 CodecBuffer *outBuf, int32_t *acquireFd) in CodecCallbackProxyOutputBufferAvailable() argument
162 if (outBuf == NULL || self == NULL) { in CodecCallbackProxyOutputBufferAvailable()
180 if (CodecProxyPackCodecBuffer(data, outBuf)) { in CodecCallbackProxyOutputBufferAvailable()
/drivers/peripheral/codec/hal/passthrough/adapter/include/
Dcomponent_node.h52 int32_t static OutputBufferAvailable(UINTPTR userData, CodecBuffer *outBuf, int32_t *acquireFd);
68 int32_t OnFillBufferDone(CodecBuffer *outBuf, int32_t *acquireFd);
/drivers/peripheral/codec/test/demo/v1.0/
Dcodec_encode_test_async.c480 static int32_t CodecCallbackOutputBufferAvailable(UINTPTR userData, CodecBuffer *outBuf, int32_t *a… in CodecCallbackOutputBufferAvailable() argument
482 if (outBuf == NULL) { in CodecCallbackOutputBufferAvailable()
486 g_totalDstSize += outBuf->buffer[0].length; in CodecCallbackOutputBufferAvailable()
487 ShareMemory *sm = GetShareMemoryById(outBuf->bufferId); in CodecCallbackOutputBufferAvailable()
488 DumpOutputToFile(g_data.fpOutput, sm->virAddr, outBuf->buffer[0].length); in CodecCallbackOutputBufferAvailable()
490 outBuf->buffer[0].length = 0; in CodecCallbackOutputBufferAvailable()
491 …g_codecProxy->CodecQueueOutput(g_codecProxy, (CODEC_HANDLETYPE)g_handle, outBuf, QUEUE_TIME_OUT, -… in CodecCallbackOutputBufferAvailable()
492 if (outBuf->flag & STREAM_FLAG_EOS) { in CodecCallbackOutputBufferAvailable()
Dcodec_decode_test_async.c604 static int32_t CodecCallbackOutputBufferAvailable(UINTPTR userData, CodecBuffer *outBuf, int32_t *a… in CodecCallbackOutputBufferAvailable() argument
606 if (outBuf == NULL) { in CodecCallbackOutputBufferAvailable()
611 ShareMemory *sm = GetShareMemoryById(outBuf->bufferId); in CodecCallbackOutputBufferAvailable()
614 outBuf->buffer[0].length = 0; in CodecCallbackOutputBufferAvailable()
615 …g_codecProxy->CodecQueueOutput(g_codecProxy, (CODEC_HANDLETYPE)g_handle, outBuf, QUEUE_TIME_OUT, -… in CodecCallbackOutputBufferAvailable()
616 if (outBuf->flag & STREAM_FLAG_EOS) { in CodecCallbackOutputBufferAvailable()
Dcodec_encode_test_ipc.c300 int32_t TestOutputBufferAvailable(UINTPTR userData, CodecBuffer *outBuf, int32_t *acquireFd) in TestOutputBufferAvailable() argument
302 …HDF_LOGI("%{public}s: TestOutputBufferAvailable write %{public}d", __func__, outBuf->buffer[0].len… in TestOutputBufferAvailable()
Dcodec_decode_test_ipc.c412 int32_t TestOutputBufferAvailable(UINTPTR userData, CodecBuffer *outBuf, int32_t *acquireFd) in TestOutputBufferAvailable() argument
414 …HDF_LOGI("%{public}s: TestOutputBufferAvailable write %{public}d", __func__, outBuf->buffer[0].len… in TestOutputBufferAvailable()
/drivers/peripheral/codec/hal/passthrough/adapter/src/
Dcomponent_node.cpp52 int32_t ComponentNode::OutputBufferAvailable(UINTPTR userData, CodecBuffer *outBuf, int32_t *acquir… in OutputBufferAvailable() argument
56 node->OnFillBufferDone(outBuf, acquireFd); in OutputBufferAvailable()
382 int32_t ComponentNode::OnFillBufferDone(CodecBuffer *outBuf, int32_t *acquireFd) in OnFillBufferDone() argument
384 if (omxCallback_ == nullptr || outBuf == nullptr || omxCallback_->FillBufferDone == nullptr) { in OnFillBufferDone()
390 Common::ConvertCodecBufferToOmxCodecBuffer(omxCodecBuffer, *outBuf); in OnFillBufferDone()
/drivers/peripheral/codec/interfaces/include/
Dcodec_type.h408 int32_t (*OutputBufferAvailable)(UINTPTR userData, CodecBuffer *outBuf, int32_t *acquireFd);