Lines Matching refs:ctx
331 * @param ctx The context of vpu api, allocated in this function.
338 * @note check whether ctx has been allocated success after you do init.
340 RK_S32 (*init)(struct VpuCodecContext *ctx, RK_U8 *extraData, RK_U32 extra_size);
344 * @param ctx The context of vpu codec
349 RK_S32 (*decode)(struct VpuCodecContext *ctx, VideoPacket_t *pkt, DecoderOut_t *aDecOut);
353 * @param ctx The context of vpu codec
358 RK_S32 (*encode)(struct VpuCodecContext *ctx, EncInputStream_t *aEncInStrm, EncoderOut_t *aEncOut);
361 * @param ctx The context of vpu codec
364 RK_S32 (*flush)(struct VpuCodecContext *ctx);
365 RK_S32 (*control)(struct VpuCodecContext *ctx, VPU_API_CMD cmdType, void* param);
368 * @param ctx The context of vpu codec
372 RK_S32 (*decode_sendstream)(struct VpuCodecContext *ctx, VideoPacket_t *pkt);
375 * @param ctx The context of vpu codec
379 RK_S32 (*decode_getframe)(struct VpuCodecContext *ctx, DecoderOut_t *aDecOut);
382 * @param ctx The context of vpu codec
386 RK_S32 (*encoder_sendframe)(struct VpuCodecContext *ctx, EncInputStream_t *aEncInStrm);
389 * @param ctx The context of vpu codec
393 RK_S32 (*encoder_getstream)(struct VpuCodecContext *ctx, EncoderOut_t *aEncOut);
404 * @param ctx pointer of vpu codec context
406 RK_S32 vpu_open_context(struct VpuCodecContext **ctx);
409 * @param ctx pointer of vpu codec context
411 RK_S32 vpu_close_context(struct VpuCodecContext **ctx);
454 RK_S32 VPUMallocLinearFromRender(VPUMemLinear_t *p, RK_U32 size, void *ctx);