Lines Matching defs:avctx
26 static av_cold int v308_decode_init(AVCodecContext *avctx)
28 avctx->pix_fmt = AV_PIX_FMT_YUV444P;
30 if (avctx->width & 1)
31 av_log(avctx, AV_LOG_WARNING, "v308 requires width to be even.\n");
36 static int v308_decode_frame(AVCodecContext *avctx, AVFrame *pic,
43 if (avpkt->size < 3 * avctx->height * avctx->width) {
44 av_log(avctx, AV_LOG_ERROR, "Insufficient input data.\n");
48 if ((ret = ff_get_buffer(avctx, pic, 0)) < 0)
58 for (i = 0; i < avctx->height; i++) {
59 for (j = 0; j < avctx->width; j++) {