Merge commit 'b9ee5f2cab3ffe1c962e542346b1ed61394864ec'
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Feb 2013 11:19:21 +0000 (12:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Feb 2013 11:37:03 +0000 (12:37 +0100)
* commit 'b9ee5f2cab3ffe1c962e542346b1ed61394864ec':
  indeo3: replace use of copy_block4 with put_pixels
  mjpegdec: use put_pixels instead of copy_block8

Conflicts:
libavcodec/mjpegdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/indeo3.c
libavcodec/mjpegdec.c

Simple merge
@@@ -987,21 -798,6 +987,22 @@@ static int ljpeg_decode_yuv_scan(MJpegD
      return 0;
  }
  
- static av_always_inline void mjpeg_copy_block(uint8_t *dst, const uint8_t *src,
++static av_always_inline void mjpeg_copy_block(MJpegDecodeContext *s,
++                                              uint8_t *dst, const uint8_t *src,
 +                                              int linesize, int lowres)
 +{
 +    switch (lowres) {
-     case 0: copy_block8(dst, src, linesize, linesize, 8);
++    case 0: s->dsp.put_pixels_tab[1][0](dst, src, linesize, 8);
 +        break;
 +    case 1: copy_block4(dst, src, linesize, linesize, 4);
 +        break;
 +    case 2: copy_block2(dst, src, linesize, linesize, 2);
 +        break;
 +    case 3: *dst = *src;
 +        break;
 +    }
 +}
 +
  static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah,
                               int Al, const uint8_t *mb_bitmask,
                               const AVFrame *reference)
                      ptr = data[c] + block_offset;
                      if (!s->progressive) {
                          if (copy_mb)
-                             mjpeg_copy_block(ptr, reference_data[c] + block_offset,
 -                            s->dsp.put_pixels_tab[1][0](ptr,
 -                                reference_data[c] + block_offset,
 -                                linesize[c], 8);
++                            mjpeg_copy_block(s, ptr, reference_data[c] + block_offset,
 +                                             linesize[c], s->avctx->lowres);
++
                          else {
                              s->dsp.clear_block(s->block);
                              if (decode_block(s, s->block, i,