Lines Matching defs:avctx
37 static av_cold int raw_encode_init(AVCodecContext *avctx)
39 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
41 avctx->bits_per_coded_sample = av_get_bits_per_pixel(desc);
42 if(!avctx->codec_tag)
43 avctx->codec_tag = avcodec_pix_fmt_to_codec_tag(avctx->pix_fmt);
44 avctx->bit_rate = ff_guess_coded_bitrate(avctx);
49 static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
58 if ((ret = ff_get_encode_buffer(avctx, pkt, ret, 0)) < 0)
66 if(avctx->codec_tag == AV_RL32("yuv2") && ret > 0 &&
71 } else if (avctx->codec_tag == AV_RL32("b64a") && ret > 0 &&