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


Ignore:
Timestamp:
8 Jul 2015, 23:43:06 (10 years ago)
Author:
seregin
Message:

macro cleanup: R0300_CGS_RES_COEFF_CODING

Location:
branches/SHM-dev/source/Lib/TLibDecoder
Files:
2 edited

Legend:

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

    r1214 r1215  
    35163516  }
    35173517
    3518   UInt uiCurOctantDepth , uiCurPartNumLog2 , uiInputBitDepthM8 , uiOutputBitDepthM8 , uiResQaunBit;
    3519 #if R0300_CGS_RES_COEFF_CODING
    3520   UInt uiDeltaBits;
    3521 #endif
     3518  UInt uiCurOctantDepth, uiCurPartNumLog2, uiInputBitDepthM8, uiOutputBitDepthM8, uiResQaunBit, uiDeltaBits;;
     3519 
    35223520  READ_CODE( 2 , uiCurOctantDepth , "cm_octant_depth" );
    35233521  READ_CODE( 2 , uiCurPartNumLog2 , "cm_y_part_num_log2" );     
     
    35303528  READ_UVLC( uiChromaOutputBitDepthM8 , "cm_output_chroma_bit_depth_minus8" );
    35313529  READ_CODE( 2 , uiResQaunBit , "cm_res_quant_bit" );
    3532 #if R0300_CGS_RES_COEFF_CODING
     3530
    35333531  READ_CODE( 2 , uiDeltaBits , "cm_flc_bits" );
    35343532  pc3DAsymLUT->setDeltaBits(uiDeltaBits + 1);
    3535 #endif
    35363533
    35373534  Int nAdaptCThresholdU = 1 << ( uiChromaInputBitDepthM8 + 8 - 1 );
     
    35883585  else
    35893586  {
    3590 #if R0300_CGS_RES_COEFF_CODING
    35913587    Int nFLCbits = pc3DAsymLUT->getMappingShift()-pc3DAsymLUT->getResQuantBit()-pc3DAsymLUT->getDeltaBits() ;
    35923588    nFLCbits = nFLCbits >= 0 ? nFLCbits:0;
    3593 #endif
     3589
    35943590    for( Int l = 0 ; l < nYPartNum ; l++ )
    35953591    {
     
    36043600        if( uiCodeVertex )
    36053601        {
    3606 #if R0300_CGS_RES_COEFF_CODING
    36073602          xReadParam( deltaY, nFLCbits );
    36083603          xReadParam( deltaU, nFLCbits );
    36093604          xReadParam( deltaV, nFLCbits );
    3610 #else
    3611           xReadParam( deltaY );
    3612           xReadParam( deltaU );
    3613           xReadParam( deltaV );
    3614 #endif
    36153605        }
    36163606#if R0164_CGS_LUT_BUGFIX
     
    36503640}
    36513641
    3652 #if R0300_CGS_RES_COEFF_CODING
    36533642Void TDecCavlc::xReadParam( Int& param, Int rParam )
    3654 #else
    3655 Void TDecCavlc::xReadParam( Int& param )
    3656 #endif
    3657 {
    3658 #if !R0300_CGS_RES_COEFF_CODING
    3659   const UInt rParam = 7;
    3660 #endif
     3643{
    36613644  UInt prefix;
    36623645  UInt codeWord ;
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.h

    r1214 r1215  
    148148  Void xParse3DAsymLUT( TCom3DAsymLUT * pc3DAsymLUT );
    149149  Void xParse3DAsymLUTOctant( TCom3DAsymLUT * pc3DAsymLUT , Int nDepth , Int yIdx , Int uIdx , Int vIdx , Int nLength );
    150 #if R0300_CGS_RES_COEFF_CODING
    151150  Void xReadParam( Int& param, Int flc_bits );
    152 #else
    153   Void xReadParam( Int& param );
    154 #endif
    155151#endif
    156152#endif //SVC_EXTENSION
Note: See TracChangeset for help on using the changeset viewer.