Changeset 852 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
5 Aug 2014, 01:37:56 (10 years ago)
Author:
qualcomm
Message:

Bug fix for R0164

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r851 r852  
    41544154  pc3DAsymLUT->setResQuantBit( uiResQaunBit );
    41554155
    4156 #if R0164_CGS_LUT_BUGFIX
     4156#if R0164_CGS_LUT_BUGFIX_CHECK
    41574157  pc3DAsymLUT->xInitCuboids();
    41584158#endif
    41594159  xParse3DAsymLUTOctant( pc3DAsymLUT , 0 , 0 , 0 , 0 , 1 << pc3DAsymLUT->getCurOctantDepth() );
    41604160#if R0164_CGS_LUT_BUGFIX
    4161   pc3DAsymLUT->xCuboidsExplicitCheck( true );
     4161#if R0164_CGS_LUT_BUGFIX_CHECK
     4162  printf("============= Before 'xCuboidsFilledCheck()': ================\n");
     4163  pc3DAsymLUT->display();
     4164  pc3DAsymLUT->xCuboidsFilledCheck( false );
     4165  printf("============= After 'xCuboidsFilledCheck()': =================\n");
     4166  pc3DAsymLUT->display();
     4167#endif
    41624168#endif
    41634169}
     
    42194225#if R0164_CGS_LUT_BUGFIX
    42204226        pc3DAsymLUT->setCuboidVertexResTree( yIdx + (l<<shift) , uIdx , vIdx , nVertexIdx , deltaY , deltaU , deltaV );
     4227        for (Int m = 1; m < (1<<shift); m++) {
     4228          pc3DAsymLUT->setCuboidVertexResTree( yIdx + (l<<shift) + m , uIdx , vIdx , nVertexIdx , 0 , 0 , 0 );
     4229#if R0164_CGS_LUT_BUGFIX_CHECK
     4230          pc3DAsymLUT->xSetFilled( yIdx + (l<<shift) + m , uIdx , vIdx );
     4231#endif
     4232        }
    42214233#else
    42224234        pc3DAsymLUT->setCuboidVertexResTree( yIdx + l , uIdx , vIdx , nVertexIdx , deltaY , deltaU , deltaV );
    42234235#endif
    42244236      }
     4237#if R0164_CGS_LUT_BUGFIX_CHECK
     4238      pc3DAsymLUT->xSetExplicit( yIdx + (l<<shift) , uIdx , vIdx );
     4239#endif
     4240    }
    42254241#if R0164_CGS_LUT_BUGFIX
    4226       pc3DAsymLUT->xSetExplicit( yIdx + (l<<shift) , uIdx , vIdx );
    4227 #endif
    4228     }
     4242    for ( Int u=0 ; u<nLength ; u++ ) {
     4243      for ( Int v=0 ; v<nLength ; v++ ) {
     4244        if ( u!=0 || v!=0 ) {
     4245          for ( Int y=0 ; y<nLength*nYPartNum ; y++ ) {
     4246            for( Int nVertexIdx = 0 ; nVertexIdx < 4 ; nVertexIdx++ )
     4247            {
     4248              pc3DAsymLUT->setCuboidVertexResTree( yIdx + y , uIdx + u , vIdx + v , nVertexIdx , 0 , 0 , 0 );
     4249#if R0164_CGS_LUT_BUGFIX_CHECK
     4250              pc3DAsymLUT->xSetFilled( yIdx + y , uIdx + u , vIdx + v );
     4251#endif
     4252            }
     4253          }
     4254        }
     4255      }
     4256    }
     4257#endif
    42294258  }
    42304259}
Note: See TracChangeset for help on using the changeset viewer.