Lines Matching defs:avctx
28 static av_cold int y41p_encode_init(AVCodecContext *avctx)
30 if (avctx->width & 7) {
31 av_log(avctx, AV_LOG_ERROR, "y41p requires width to be divisible by 8.\n");
35 avctx->bits_per_coded_sample = 12;
36 avctx->bit_rate = ff_guess_coded_bitrate(avctx);
41 static int y41p_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
48 ret = ff_get_encode_buffer(avctx, pkt, avctx->width * avctx->height * 1.5, 0);
54 for (i = avctx->height - 1; i >= 0; i--) {
58 for (j = 0; j < avctx->width; j += 8) {