• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/ffmpeg-0.5.1/libavcodec/

Lines Matching defs:stream_ptr

53   if ((stream_ptr + n) > s->size) { \
54 av_log (s->avctx, AV_LOG_INFO, "Problem: stream_ptr out of bounds (%d >= %d)\n", \
55 stream_ptr + n, s->size); \
66 static void qtrle_decode_1bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change)
78 skip = s->buf[stream_ptr++];
79 rle_code = (signed char)s->buf[stream_ptr++];
96 pi0 = s->buf[stream_ptr++];
97 pi1 = s->buf[stream_ptr++];
111 rgb[pixel_ptr++] = s->buf[stream_ptr++];
116 static inline void qtrle_decode_2n4bpp(QtrleContext *s, int stream_ptr,
129 pixel_ptr = row_ptr + (num_pixels * (s->buf[stream_ptr++] - 1));
131 while ((rle_code = (signed char)s->buf[stream_ptr++]) != -1) {
135 pixel_ptr += (num_pixels * (s->buf[stream_ptr++] - 1));
144 pi[num_pixels-1-i] = (s->buf[stream_ptr] >> ((i*bpp) & 0x07)) & ((1<<bpp)-1);
145 stream_ptr+= ((i & ((num_pixels>>2)-1)) == 0);
159 rgb[pixel_ptr++] = ((s->buf[stream_ptr]) >> 4) & 0x0f;
160 rgb[pixel_ptr++] = (s->buf[stream_ptr++]) & 0x0f;
162 rgb[pixel_ptr++] = ((s->buf[stream_ptr]) >> 6) & 0x03;
163 rgb[pixel_ptr++] = ((s->buf[stream_ptr]) >> 4) & 0x03;
164 rgb[pixel_ptr++] = ((s->buf[stream_ptr]) >> 2) & 0x03;
165 rgb[pixel_ptr++] = (s->buf[stream_ptr++]) & 0x03;
174 static void qtrle_decode_8bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change)
185 pixel_ptr = row_ptr + (4 * (s->buf[stream_ptr++] - 1));
187 while ((rle_code = (signed char)s->buf[stream_ptr++]) != -1) {
191 pixel_ptr += (4 * (s->buf[stream_ptr++] - 1));
199 pi1 = s->buf[stream_ptr++];
200 pi2 = s->buf[stream_ptr++];
201 pi3 = s->buf[stream_ptr++];
202 pi4 = s->buf[stream_ptr++];
219 rgb[pixel_ptr++] = s->buf[stream_ptr++];
227 static void qtrle_decode_16bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change)
238 pixel_ptr = row_ptr + (s->buf[stream_ptr++] - 1) * 2;
240 while ((rle_code = (signed char)s->buf[stream_ptr++]) != -1) {
244 pixel_ptr += (s->buf[stream_ptr++] - 1) * 2;
250 rgb16 = AV_RB16(&s->buf[stream_ptr]);
251 stream_ptr += 2;
265 rgb16 = AV_RB16(&s->buf[stream_ptr]);
266 stream_ptr += 2;
276 static void qtrle_decode_24bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change)
287 pixel_ptr = row_ptr + (s->buf[stream_ptr++] - 1) * 3;
289 while ((rle_code = (signed char)s->buf[stream_ptr++]) != -1) {
293 pixel_ptr += (s->buf[stream_ptr++] - 1) * 3;
299 r = s->buf[stream_ptr++];
300 g = s->buf[stream_ptr++];
301 b = s->buf[stream_ptr++];
316 rgb[pixel_ptr++] = s->buf[stream_ptr++];
317 rgb[pixel_ptr++] = s->buf[stream_ptr++];
318 rgb[pixel_ptr++] = s->buf[stream_ptr++];
326 static void qtrle_decode_32bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change)
338 pixel_ptr = row_ptr + (s->buf[stream_ptr++] - 1) * 4;
340 while ((rle_code = (signed char)s->buf[stream_ptr++]) != -1) {
344 pixel_ptr += (s->buf[stream_ptr++] - 1) * 4;
350 a = s->buf[stream_ptr++];
351 r = s->buf[stream_ptr++];
352 g = s->buf[stream_ptr++];
353 b = s->buf[stream_ptr++];
368 a = s->buf[stream_ptr++];
369 r = s->buf[stream_ptr++];
370 g = s->buf[stream_ptr++];
371 b = s->buf[stream_ptr++];
431 int stream_ptr, height, row_ptr;
450 stream_ptr = 4;
453 header = AV_RB16(&s->buf[stream_ptr]);
454 stream_ptr += 2;
460 start_line = AV_RB16(&s->buf[stream_ptr]);
461 stream_ptr += 4;
462 height = AV_RB16(&s->buf[stream_ptr]);
463 stream_ptr += 4;
473 qtrle_decode_1bpp(s, stream_ptr, row_ptr, height);
478 qtrle_decode_2n4bpp(s, stream_ptr, row_ptr, height, 2);
484 qtrle_decode_2n4bpp(s, stream_ptr, row_ptr, height, 4);
490 qtrle_decode_8bpp(s, stream_ptr, row_ptr, height);
495 qtrle_decode_16bpp(s, stream_ptr, row_ptr, height);
499 qtrle_decode_24bpp(s, stream_ptr, row_ptr, height);
503 qtrle_decode_32bpp(s, stream_ptr, row_ptr, height);