Changeset 1217 in SHVCSoftware
- Timestamp:
- 8 Jul 2015, 23:47:38 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1216 r1217 58 58 #if CGS_3D_ASYMLUT 59 59 #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 syntax61 60 #define R0164_CGS_LUT_BUGFIX_CHECK 0 ///< JCTVC-R0164: Add traces explicitly/non-explicitly encoded vertices and check if 3DLUT is correctly filled 62 61 #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 3552 3552 #endif 3553 3553 xParse3DAsymLUTOctant( pc3DAsymLUT , 0 , 0 , 0 , 0 , 1 << pc3DAsymLUT->getCurOctantDepth() ); 3554 #if R0164_CGS_LUT_BUGFIX3555 3554 #if R0164_CGS_LUT_BUGFIX_CHECK 3556 3555 printf("============= Before 'xCuboidsFilledCheck()': ================\n"); … … 3560 3559 pc3DAsymLUT->display(); 3561 3560 #endif 3562 #endif3563 3561 } 3564 3562 … … 3590 3588 for( Int l = 0 ; l < nYPartNum ; l++ ) 3591 3589 { 3592 #if R0164_CGS_LUT_BUGFIX 3593 Int shift = pc3DAsymLUT->getCurOctantDepth() - nDepth ; 3594 #endif 3590 Int shift = pc3DAsymLUT->getCurOctantDepth() - nDepth; 3591 3595 3592 for( Int nVertexIdx = 0 ; nVertexIdx < 4 ; nVertexIdx++ ) 3596 3593 { … … 3604 3601 xReadParam( deltaV, nFLCbits ); 3605 3602 } 3606 #if R0164_CGS_LUT_BUGFIX 3603 3607 3604 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 { 3609 3608 pc3DAsymLUT->setCuboidVertexResTree( yIdx + (l<<shift) + m , uIdx , vIdx , nVertexIdx , 0 , 0 , 0 ); 3610 3609 #if R0164_CGS_LUT_BUGFIX_CHECK … … 3612 3611 #endif 3613 3612 } 3614 #else3615 pc3DAsymLUT->setCuboidVertexResTree( yIdx + l , uIdx , vIdx , nVertexIdx , deltaY , deltaU , deltaV );3616 #endif3617 3613 } 3618 3614 #if R0164_CGS_LUT_BUGFIX_CHECK … … 3620 3616 #endif 3621 3617 } 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 { 3627 3627 for( Int nVertexIdx = 0 ; nVertexIdx < 4 ; nVertexIdx++ ) 3628 3628 { … … 3636 3636 } 3637 3637 } 3638 #endif3639 3638 } 3640 3639 } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1215 r1217 2606 2606 for( Int l = 0 ; l < nYPartNum ; l++ ) 2607 2607 { 2608 #if R0164_CGS_LUT_BUGFIX2609 2608 Int shift = pc3DAsymLUT->getCurOctantDepth() - nDepth ; 2610 #endif 2609 2611 2610 for( Int nVertexIdx = 0 ; nVertexIdx < 4 ; nVertexIdx++ ) 2612 2611 { 2613 #if R0164_CGS_LUT_BUGFIX2614 2612 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 2618 2614 UInt uiCodeVertex = sRes.Y != 0 || sRes.U != 0 || sRes.V != 0; 2619 2615 WRITE_FLAG( uiCodeVertex , "coded_vertex_flag" );
Note: See TracChangeset for help on using the changeset viewer.