Lines Matching defs:ctx
36 AVCodecContext *ctx= NULL;
74 ctx = avcodec_alloc_context3(codec);
75 if (!ctx) {
80 result = avcodec_parameters_to_context(ctx, origin_par);
86 result = avcodec_open2(ctx, codec, NULL);
88 av_log(ctx, AV_LOG_ERROR, "Can't open decoder\n");
104 byte_buffer_size = av_image_get_buffer_size(ctx->pix_fmt, ctx->width, ctx->height, 16);
123 result = avcodec_send_packet(ctx, NULL);
127 result = avcodec_send_packet(ctx, pkt);
137 result = avcodec_receive_frame(ctx, fr);
150 ctx->pix_fmt, ctx->width, ctx->height, 1);
169 avcodec_free_context(&ctx);