Lines Matching refs:ctx

199     MppCtx ctx = NULL;
205 ret = component->mppApi->HdiMppCreate(&ctx, &(component->mpi));
210 *handle = ctx;
211 component->ctx = ctx;
219 ret = component->mpi->control(ctx, MPP_SET_OUTPUT_TIMEOUT, &timeout);
226 ret = component->mppApi->HdiMppInit(ctx, ctxType, codingType);
238 MppCtx ctx = handle;
283 ret = mppApi->HdiMppDestroy(ctx);
364 MppCtx ctx = handle;
372 if (ctx != component->ctx) {
373 HDF_LOGE("%{public}s: ctx not match %{public}d", __func__, ctx);
468 MppCtx ctx = handle;
475 if (ctx != component->ctx) {
476 HDF_LOGE("%{public}s: ctx not match %{public}d", __func__, ctx);
522 MppCtx ctx = handle;
532 ret = component->mpi->reset(ctx);
544 UINTPTR userData = (UINTPTR)component->ctx;
578 MPP_RET DecodeGetFrame(RKHdiBaseComponent* component, MppCtx ctx, MppFrame *frame)
584 ret = mpi->decode_get_frame(ctx, frame);
599 int32_t HandleDecodeFrameInfoChange(RKHdiBaseComponent* component, MppFrame frame, MppCtx ctx)
626 ret = mpi->control(ctx, MPP_DEC_SET_EXT_BUF_GROUP, component->frmGrp);
644 ret = mpi->control(ctx, MPP_DEC_SET_INFO_CHANGE_READY, NULL);
728 UINTPTR userData = (UINTPTR)component->ctx;
733 int32_t HandleDecodedFrame(RKHdiBaseComponent* component, MppFrame frame, MppCtx ctx,
739 if (HandleDecodeFrameInfoChange(component, frame, ctx) != HDF_SUCCESS) {
759 RK_U32 CodecDecodeGetFrameLoop(RKHdiBaseComponent* component, MppCtx ctx, RK_U32 pkt_done,
769 ret = DecodeGetFrame(component, ctx, &frame);
777 if (HandleDecodedFrame(component, frame, ctx, frm_eos, outInfo) != HDF_SUCCESS) {
805 MppCtx ctx = handle;
826 ret = mpi->decode_put_packet(ctx, packet);
832 frm_eos = CodecDecodeGetFrameLoop(component, ctx, pkt_done, pkt_eos, outInfo);
843 UINTPTR userData = (UINTPTR)component->ctx;
942 UINTPTR userData = (UINTPTR)component->ctx;
967 RK_U32 CodecEncodeGetPacketLoop(RKHdiBaseComponent* component, MppCtx ctx, CodecBuffer *outInfo)
977 ret = mpi->encode_get_packet(ctx, &packet);
1009 MppCtx ctx = handle;
1034 ret = mpi->encode_put_frame(ctx, frame);
1041 pkt_eos = CodecEncodeGetPacketLoop(component, ctx, outInfo);
1043 userData = (UINTPTR)component->ctx;
1062 MppCtx ctx = handle;
1076 ret = component->mpi->control(ctx, MPP_ENC_GET_HDR_SYNC, packet);
1085 UINTPTR userData = (UINTPTR)component->ctx;