Lines Matching refs:avctx
31 static int decode_frame(AVCodecContext *avctx,
41 if (avctx->height <= 0 || avctx->width <= 0) {
42 av_log(avctx, AV_LOG_ERROR, "Invalid width or height\n");
46 if (buf_size / avctx->height < avctx->width) {
47 av_log(avctx, AV_LOG_ERROR,
52 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
59 for (y = 0; y < avctx->height; y++) {
63 for (x = 0; x < avctx->width; x += 4) {
79 static av_cold int decode_init(AVCodecContext *avctx)
81 avctx->pix_fmt = AV_PIX_FMT_YUV411P;