Lines Matching defs:avctx
73 static int pcx_decode_frame(AVCodecContext *avctx, AVFrame *p,
84 av_log(avctx, AV_LOG_ERROR, "Packet too small\n");
91 av_log(avctx, AV_LOG_ERROR, "this is not PCX encoded data\n");
101 avctx->sample_aspect_ratio.num = bytestream2_get_le16u(&gb);
102 avctx->sample_aspect_ratio.den = bytestream2_get_le16u(&gb);
105 av_log(avctx, AV_LOG_ERROR, "invalid image dimensions\n");
119 av_log(avctx, AV_LOG_ERROR, "PCX data is corrupted\n");
125 avctx->pix_fmt = AV_PIX_FMT_RGB24;
134 avctx->pix_fmt = AV_PIX_FMT_PAL8;
137 av_log(avctx, AV_LOG_ERROR, "invalid PCX file\n");
143 if ((ret = ff_set_dimensions(avctx, w, h)) < 0)
146 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
176 av_log(avctx, AV_LOG_ERROR, "File is too short\n");
177 ret = avctx->err_recognition & AV_EF_EXPLODE ?
190 av_log(avctx, AV_LOG_WARNING, "image data possibly corrupted\n");
194 av_log(avctx, AV_LOG_ERROR, "expected palette after image data\n");
195 ret = avctx->err_recognition & AV_EF_EXPLODE ?