Changeset 1217 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 23:47:38 (9 years ago)
Author:
seregin
Message:

macro cleanup: R0164_CGS_LUT_BUGFIX

Location:
branches/SHM-dev/source/Lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1216 r1217  
    5858#if CGS_3D_ASYMLUT
    5959#define CGS_GCC_NO_VECTORIZATION         1      ///< disable victorization to avoid issues with some compilers
    60 #define R0164_CGS_LUT_BUGFIX             1      ///< JCTVC-R0164: Bug fix with LUT syntax
    6160#define R0164_CGS_LUT_BUGFIX_CHECK       0      ///< JCTVC-R0164: Add traces explicitly/non-explicitly encoded vertices and check if 3DLUT is correctly filled
    6261#define R0179_ENC_OPT_3DLUT_SIZE         0      ///< JCTVC-R0179: RD decision based LUT size selection
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1215 r1217  
    35523552#endif
    35533553  xParse3DAsymLUTOctant( pc3DAsymLUT , 0 , 0 , 0 , 0 , 1 << pc3DAsymLUT->getCurOctantDepth() );
    3554 #if R0164_CGS_LUT_BUGFIX
    35553554#if R0164_CGS_LUT_BUGFIX_CHECK
    35563555  printf("============= Before 'xCuboidsFilledCheck()': ================\n");
     
    35603559  pc3DAsymLUT->display();
    35613560#endif
    3562 #endif
    35633561}
    35643562
     
    35903588    for( Int l = 0 ; l < nYPartNum ; l++ )
    35913589    {
    3592 #if R0164_CGS_LUT_BUGFIX
    3593       Int shift = pc3DAsymLUT->getCurOctantDepth() - nDepth ;
    3594 #endif
     3590      Int shift = pc3DAsymLUT->getCurOctantDepth() - nDepth;
     3591
    35953592      for( Int nVertexIdx = 0 ; nVertexIdx < 4 ; nVertexIdx++ )
    35963593      {
     
    36043601          xReadParam( deltaV, nFLCbits );
    36053602        }
    3606 #if R0164_CGS_LUT_BUGFIX
     3603
    36073604        pc3DAsymLUT->setCuboidVertexResTree( yIdx + (l<<shift) , uIdx , vIdx , nVertexIdx , deltaY , deltaU , deltaV );
    3608         for (Int m = 1; m < (1<<shift); m++) {
     3605
     3606        for( Int m = 1; m < (1<<shift); m++ )
     3607        {
    36093608          pc3DAsymLUT->setCuboidVertexResTree( yIdx + (l<<shift) + m , uIdx , vIdx , nVertexIdx , 0 , 0 , 0 );
    36103609#if R0164_CGS_LUT_BUGFIX_CHECK
     
    36123611#endif
    36133612        }
    3614 #else
    3615         pc3DAsymLUT->setCuboidVertexResTree( yIdx + l , uIdx , vIdx , nVertexIdx , deltaY , deltaU , deltaV );
    3616 #endif
    36173613      }
    36183614#if R0164_CGS_LUT_BUGFIX_CHECK
     
    36203616#endif
    36213617    }
    3622 #if R0164_CGS_LUT_BUGFIX
    3623     for ( Int u=0 ; u<nLength ; u++ ) {
    3624       for ( Int v=0 ; v<nLength ; v++ ) {
    3625         if ( u!=0 || v!=0 ) {
    3626           for ( Int y=0 ; y<nLength*nYPartNum ; y++ ) {
     3618
     3619    for( Int u=0; u<nLength; u++ )
     3620    {
     3621      for( Int v=0; v<nLength; v++ )
     3622      {
     3623        if( u!=0 || v!=0 )
     3624        {
     3625          for( Int y=0 ; y<nLength*nYPartNum ; y++ )
     3626          {
    36273627            for( Int nVertexIdx = 0 ; nVertexIdx < 4 ; nVertexIdx++ )
    36283628            {
     
    36363636      }
    36373637    }
    3638 #endif
    36393638  }
    36403639}
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1215 r1217  
    26062606    for( Int l = 0 ; l < nYPartNum ; l++ )
    26072607    {
    2608 #if R0164_CGS_LUT_BUGFIX     
    26092608      Int shift = pc3DAsymLUT->getCurOctantDepth() - nDepth ;
    2610 #endif
     2609
    26112610      for( Int nVertexIdx = 0 ; nVertexIdx < 4 ; nVertexIdx++ )
    26122611      {
    2613 #if R0164_CGS_LUT_BUGFIX
    26142612        SYUVP sRes = pc3DAsymLUT->getCuboidVertexResTree( yIdx + (l<<shift) , uIdx , vIdx , nVertexIdx );
    2615 #else
    2616         SYUVP sRes = pc3DAsymLUT->getCuboidVertexResTree( yIdx + l , uIdx , vIdx , nVertexIdx );
    2617 #endif
     2613
    26182614        UInt uiCodeVertex = sRes.Y != 0 || sRes.U != 0 || sRes.V != 0;
    26192615        WRITE_FLAG( uiCodeVertex , "coded_vertex_flag" );
Note: See TracChangeset for help on using the changeset viewer.