Lines Matching refs:avctx
39 static int decode_frame(AVCodecContext *avctx,
52 if (avctx->width % 4) {
53 av_log(avctx, AV_LOG_ERROR, "width is not a multiple of 4\n");
56 if (buf_size < avctx->width * avctx->height) {
57 av_log(avctx, AV_LOG_ERROR, "Packet is too small\n");
61 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
70 stride = avctx->width - 4;
72 for (i = 0; i < avctx->height; i++) {
76 for (j = 0; j < avctx->width; j += 4) {
112 buf += avctx->width + 4;
123 static av_cold int decode_init(AVCodecContext *avctx)
125 avctx->pix_fmt = AV_PIX_FMT_YUV411P;