Changeset 1533 in SHVCSoftware
- Timestamp:
- 16 Mar 2016, 19:05:53 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1522 r1533 3653 3653 Int deltaY = 0, deltaU = 0, deltaV = 0; 3654 3654 3655 READ_FLAG( uiCodeVertex, "coded_ vertex_flag" );3655 READ_FLAG( uiCodeVertex, "coded_res_flag" ); 3656 3656 3657 3657 if( uiCodeVertex ) … … 3706 3706 UInt sign; 3707 3707 3708 READ_UVLC( prefix, " quotient");3709 READ_CODE (rParam, codeWord, "re mainder");3708 READ_UVLC( prefix, "res_coeff_q"); 3709 READ_CODE (rParam, codeWord, "res_coeff_r"); 3710 3710 rSymbol = (prefix<<rParam) + codeWord; 3711 3711 3712 3712 if(rSymbol) 3713 3713 { 3714 READ_FLAG(sign, " sign");3714 READ_FLAG(sign, "res_coeff_s"); 3715 3715 param = sign ? -(Int)(rSymbol) : (Int)(rSymbol); 3716 3716 } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1502 r1533 2600 2600 nFLCbits = nFLCbits >= 0 ? nFLCbits : 0; 2601 2601 2602 for( Int l = 0 ; l < nYPartNum; l++ )2603 { 2604 Int shift = pc3DAsymLUT->getCurOctantDepth() - nDepth 2605 2606 for( Int nVertexIdx = 0 ; nVertexIdx < 4; nVertexIdx++ )2607 { 2608 SYUVP sRes = pc3DAsymLUT->getCuboidVertexResTree( yIdx + (l<<shift) , uIdx , vIdx, nVertexIdx );2602 for( Int l = 0; l < nYPartNum; l++ ) 2603 { 2604 Int shift = pc3DAsymLUT->getCurOctantDepth() - nDepth; 2605 2606 for( Int nVertexIdx = 0; nVertexIdx < 4; nVertexIdx++ ) 2607 { 2608 SYUVP sRes = pc3DAsymLUT->getCuboidVertexResTree( yIdx + (l<<shift), uIdx, vIdx, nVertexIdx ); 2609 2609 2610 2610 UInt uiCodeVertex = sRes.Y != 0 || sRes.U != 0 || sRes.V != 0; 2611 WRITE_FLAG( uiCodeVertex , "coded_vertex_flag" );2611 WRITE_FLAG( uiCodeVertex, "coded_res_flag" ); 2612 2612 if( uiCodeVertex ) 2613 2613 { … … 2627 2627 { 2628 2628 Int codeNumber = abs(param); 2629 WRITE_UVLC(codeNumber / (1 << rParam), " quotient");2630 WRITE_CODE((codeNumber % (1 << rParam)), rParam, "re mainder");2629 WRITE_UVLC(codeNumber / (1 << rParam), "res_coeff_q"); 2630 WRITE_CODE((codeNumber % (1 << rParam)), rParam, "res_coeff_r"); 2631 2631 if (abs(param)) 2632 WRITE_FLAG( param < 0, "sign");2632 WRITE_FLAG( param < 0, "res_coeff_s"); 2633 2633 } 2634 2634
Note: See TracChangeset for help on using the changeset viewer.