Lines Matching refs:enc_ctx
75 AVCodecContext *enc_ctx;
104 AVCodecContext *enc_ctx;
113 mcdeint->enc_ctx = avcodec_alloc_context3(enc);
114 if (!mcdeint->enc_ctx)
116 enc_ctx = mcdeint->enc_ctx;
117 enc_ctx->width = inlink->w;
118 enc_ctx->height = inlink->h;
119 enc_ctx->time_base = (AVRational){1,25}; // meaningless
120 enc_ctx->gop_size = 300;
121 enc_ctx->max_b_frames = 0;
122 enc_ctx->pix_fmt = AV_PIX_FMT_YUV420P;
123 enc_ctx->flags = CODEC_FLAG_QSCALE | CODEC_FLAG_LOW_DELAY;
124 enc_ctx->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
125 enc_ctx->global_quality = 1;
126 enc_ctx->me_cmp = enc_ctx->me_sub_cmp = FF_CMP_SAD;
127 enc_ctx->mb_cmp = FF_CMP_SSE;
132 enc_ctx->refs = 3;
134 enc_ctx->me_method = ME_ITER;
136 enc_ctx->flags |= CODEC_FLAG_4MV;
137 enc_ctx->dia_size = 2;
139 enc_ctx->flags |= CODEC_FLAG_QPEL;
142 ret = avcodec_open2(enc_ctx, enc, &opts);
154 if (mcdeint->enc_ctx) {
155 avcodec_close(mcdeint->enc_ctx);
156 av_freep(&mcdeint->enc_ctx);
191 ret = avcodec_encode_video2(mcdeint->enc_ctx, &pkt, inpic, &got_frame);
195 frame_dec = mcdeint->enc_ctx->coded_frame;