Lines Matching defs:avctx
40 static int decode_frame(AVCodecContext *avctx, AVFrame *p,
51 if (avctx->width % 4) {
52 av_log(avctx, AV_LOG_ERROR, "width is not a multiple of 4\n");
55 if (buf_size < avctx->width * avctx->height) {
56 av_log(avctx, AV_LOG_ERROR, "Packet is too small\n");
60 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
69 stride = avctx->width - 4;
71 for (i = 0; i < avctx->height; i++) {
75 for (j = 0; j < avctx->width; j += 4) {
111 buf += avctx->width + 4;
122 static av_cold int decode_init(AVCodecContext *avctx)
124 avctx->pix_fmt = AV_PIX_FMT_YUV411P;