Lines Matching defs:avctx
33 static int msrle_decode_pal4(AVCodecContext *avctx, AVFrame *pic,
40 int line = avctx->height - 1;
43 while (line >= 0 && pixel_ptr <= avctx->width) {
45 av_log(avctx, AV_LOG_ERROR,
47 avctx->width - pixel_ptr, line);
72 if (pixel_ptr + 2*rle_code - odd_pixel > avctx->width ||
74 av_log(avctx, AV_LOG_ERROR,
80 if (pixel_ptr >= avctx->width)
87 if (pixel_ptr >= avctx->width)
99 if (pixel_ptr + rle_code > avctx->width + 1) {
100 av_log(avctx, AV_LOG_ERROR,
101 "MS RLE: frame ptr just went out of bounds (run) %d %d %d\n", pixel_ptr, rle_code, avctx->width);
106 if (pixel_ptr >= avctx->width)
119 av_log(avctx, AV_LOG_ERROR,
129 static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVFrame *pic,
133 int p1, p2, line=avctx->height - 1, pos=0, i;
138 output = pic->data[0] + (avctx->height - 1) * pic->linesize[0];
150 av_log(avctx, AV_LOG_ERROR,
168 av_log(avctx, AV_LOG_ERROR, "Skip beyond picture bounds\n");
180 av_log(avctx, AV_LOG_ERROR, "bytestream overrun\n");
244 av_log(avctx, AV_LOG_WARNING, "MS RLE warning: no end-of-picture code\n");
249 int ff_msrle_decode(AVCodecContext *avctx, AVFrame *pic,
254 return msrle_decode_pal4(avctx, pic, gb);
259 return msrle_decode_8_16_24_32(avctx, pic, depth, gb);
261 av_log(avctx, AV_LOG_ERROR, "Unknown depth %d\n", depth);