Lines Matching refs:ctx
53 IMM5Context *ctx = avctx->priv_data;
60 ctx->h264_avctx = avcodec_alloc_context3(codec);
61 if (!ctx->h264_avctx)
63 ctx->h264_avctx->thread_count = 1;
64 ctx->h264_avctx->flags = avctx->flags;
65 ctx->h264_avctx->flags2 = avctx->flags2;
66 ret = avcodec_open2(ctx->h264_avctx, codec, NULL);
73 ctx->hevc_avctx = avcodec_alloc_context3(codec);
74 if (!ctx->hevc_avctx)
76 ctx->hevc_avctx->thread_count = 1;
77 ctx->hevc_avctx->flags = avctx->flags;
78 ctx->hevc_avctx->flags2 = avctx->flags2;
79 ret = avcodec_open2(ctx->hevc_avctx, codec, NULL);
89 IMM5Context *ctx = avctx->priv_data;
90 AVCodecContext *codec_avctx = ctx->h264_avctx;
100 codec_avctx = ctx->hevc_avctx;
164 IMM5Context *ctx = avctx->priv_data;
166 avcodec_flush_buffers(ctx->h264_avctx);
167 avcodec_flush_buffers(ctx->hevc_avctx);
172 IMM5Context *ctx = avctx->priv_data;
174 avcodec_free_context(&ctx->h264_avctx);
175 avcodec_free_context(&ctx->hevc_avctx);