Lines Matching refs:ctx
76 AVCodecContext *ctx, AVPacket *pkt, AVFrame *fr,
85 byte_buffer_size = av_image_get_buffer_size(ctx->pix_fmt, ctx->width, ctx->height, 16);
99 avcodec_flush_buffers(ctx);
110 result = avcodec_send_packet(ctx, NULL);
116 result = avcodec_send_packet(ctx, pkt);
127 result = avcodec_receive_frame(ctx, fr);
140 ctx->pix_fmt, ctx->width, ctx->height, 1);
188 AVCodecContext *ctx= NULL;
239 ctx = avcodec_alloc_context3(codec);
240 if (!ctx) {
246 result = avcodec_parameters_to_context(ctx, origin_par);
252 result = avcodec_open2(ctx, codec, NULL);
254 av_log(ctx, AV_LOG_ERROR, "Can't open decoder\n");
272 result = compute_crc_of_packets(fmt_ctx, video_stream, ctx, pkt, fr, 0, 0, 1);
278 result = compute_crc_of_packets(fmt_ctx, video_stream, ctx, pkt, fr, i, j, 0);
290 avcodec_free_context(&ctx);