OSDN Git Service

Merge remote-tracking branch 'qatar/master'
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Dec 2013 09:59:41 +0000 (10:59 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Dec 2013 09:59:48 +0000 (10:59 +0100)
* qatar/master:
  dsputil: x86: Move ff_inv_zigzag_direct16 table init to mpegvideo

If someone optimizes dct_quantize for non x86 SIMD, then this
probably needs to be reverted.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/dsputil.c
libavcodec/x86/mpegvideoenc.c
libavcodec/x86/mpegvideoenc_template.c

Simple merge
@@@ -81,9 -82,13 +82,13 @@@ DECLARE_ALIGNED(16, static uint16_t, in
  #include "mpegvideoenc_template.c"
  #endif /* HAVE_SSSE3_INLINE */
  
 -av_cold void ff_MPV_encode_init_x86(MpegEncContext *s)
 +av_cold void ff_dct_encode_init_x86(MpegEncContext *s)
  {
      const int dct_algo = s->avctx->dct_algo;
+     int i;
+     for (i = 0; i < 64; i++)
+         inv_zigzag_direct16[ff_zigzag_direct[i]] = i + 1;
  
      if (dct_algo == FF_DCT_AUTO || dct_algo == FF_DCT_MMX) {
  #if HAVE_MMX_INLINE