Ticket #54: 54Patch.3.patch

File 54Patch.3.patch, 2.4 KB (added by tung@…, 14 years ago)
  • TComRom.cpp

     
    7373
    7474#if HHI_TRANSFORM_CODING
    7575  // init adaptive scan for sig/last SE coding
     76#if BUGFIX54
     77  for ( i = 0; i < MAX_CU_DEPTH+1; i++ )
     78#else
    7679  for ( i = 0; i < MAX_CU_DEPTH; i++ )
     80#endif
    7781  {
    7882    const int   iBlockSize    = 1 << i;
    7983    const UInt  uiNumScanPos  = UInt( iBlockSize * iBlockSize );
     
    22832287UInt* g_auiFrameScanY [ MAX_CU_DEPTH  ];
    22842288
    22852289#if HHI_TRANSFORM_CODING
     2290#if BUGFIX54
     2291UInt* g_auiSigLastScan[ MAX_CU_DEPTH+1 ][ 2 ];
     2292#else
    22862293UInt* g_auiSigLastScan[ MAX_CU_DEPTH  ][ 2 ];
    22872294#endif
     2295#endif
    22882296
    22892297// scanning order to 8x8 context model mapping table
    22902298UInt  g_auiAntiScan8  [64];
  • TComRom.h

     
    4747// Macros
    4848// ====================================================================================================================
    4949
    50 #define     MAX_CU_DEPTH            7                           // log2(LCUSize)
     50#define     MAX_CU_DEPTH            6                           // log2(LCUSize)
    5151#define     MAX_CU_SIZE             (1<<(MAX_CU_DEPTH))         // maximum allowable size of CU
    5252#define     MIN_PU_SIZE             4
    5353#define     MAX_NUM_SPU_W           (MAX_CU_SIZE/MIN_PU_SIZE)   // maximum number of SPU in horizontal line
     
    166166
    167167#endif
    168168#if HHI_TRANSFORM_CODING
     169#if BUGFIX54
     170extern       UInt*  g_auiSigLastScan[ MAX_CU_DEPTH+1 ][ 2 ];
     171#else
    169172extern       UInt*  g_auiSigLastScan[ MAX_CU_DEPTH  ][ 2 ];
    170173#endif
     174#endif
    171175
    172176// ====================================================================================================================
    173177// CAVLC table
  • TypeDef.h

     
    5858#define HHI_AMVP_OFF                      0           ///< SOPH: Advanced Motion Vector Predictor deactivated [not in TMuC]
    5959#define HHI_DEBLOCKING_FILTER             0           ///< MW: deblocking filter supporting residual quadtrees
    6060
     61#define BUGFIX54                          1
     62
    6163#if ( HHI_RQT_INTRA && !HHI_RQT )
    6264#error "HHI_RQT_INTRA can only be equal to 1 if HHI_RQT is equal to 1"
    6365#endif