Lines Matching defs:avctx
27 static av_cold int y41p_decode_init(AVCodecContext *avctx)
29 avctx->pix_fmt = AV_PIX_FMT_YUV411P;
30 avctx->bits_per_raw_sample = 12;
32 if (avctx->width & 7) {
33 av_log(avctx, AV_LOG_WARNING, "y41p requires width to be divisible by 8.\n");
39 static int y41p_decode_frame(AVCodecContext *avctx, AVFrame *pic,
46 if (avpkt->size < 3LL * avctx->height * FFALIGN(avctx->width, 8) / 2) {
47 av_log(avctx, AV_LOG_ERROR, "Insufficient input data.\n");
51 if ((ret = ff_get_buffer(avctx, pic, 0)) < 0)
57 for (i = avctx->height - 1; i >= 0 ; i--) {
61 for (j = 0; j < avctx->width; j += 8) {