Lines Matching defs:pic
41 static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic,
49 int row_dec = pic->linesize[0];
88 pic->data[0][row_ptr + pixel_ptr] = stream_byte >> 4;
94 pic->data[0][row_ptr + pixel_ptr] = stream_byte & 0x0F;
114 pic->data[0][row_ptr + pixel_ptr] = stream_byte >> 4;
116 pic->data[0][row_ptr + pixel_ptr] = stream_byte & 0x0F;
133 static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic, int depth,
142 output = pic->data[0] + (avctx->height - 1) * pic->linesize[0];
143 output_end = pic->data[0] + (avctx->height) * pic->linesize[0];
149 output = pic->data[0] + (--line) * pic->linesize[0];
167 output = pic->data[0] + line * pic->linesize[0] + pos * (depth >> 3);
171 if ((pic->linesize[0] > 0 && output + p2 * (depth >> 3) > output_end)
172 ||(pic->linesize[0] < 0 && output + p2 * (depth >> 3) < output_end)) {
216 if ((pic->linesize[0] > 0 && output + p1 * (depth >> 3) > output_end)
217 ||(pic->linesize[0] < 0 && output + p1 * (depth >> 3) < output_end))
244 int ff_msrle_decode(AVCodecContext *avctx, AVPicture *pic, int depth,
249 return msrle_decode_pal4(avctx, pic, data, data_size);
254 return msrle_decode_8_16_24_32(avctx, pic, depth, data, data_size);