Changeset 1430 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
10 Aug 2015, 20:01:28 (10 years ago)
Author:
seregin
Message:

fix posScalingFactor invocation for CGS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r1419 r1430  
    125125      shift = bitDepthLuma - currSlice->getPPS()->getCGSOutputBitDepthY();
    126126    }
     127#endif
    127128    assert( shift >= 0 );
    128 #endif
    129129
    130130    for( i = 0; i < heightBL; i++ )
     
    159159    if( currSlice->getPPS()->getCGSFlag() )
    160160    {
    161       shift = currSlice->getBitDepth(CHANNEL_TYPE_CHROMA) - currSlice->getPPS()->getCGSOutputBitDepthC();
     161      shift = bitDepthChroma - currSlice->getPPS()->getCGSOutputBitDepthC();
    162162    }
    163163#endif
     164    assert( shift >= 0 );
    164165
    165166    for( i = 0; i < heightBL; i++ )
     
    220221    Int rlClipB = heightBL - 1 + (NTAPS_US_LUMA>>1);
    221222
    222     // g_bitDepthY was set to EL bit-depth, but shift1 should be calculated using BL bit-depth
     223    // shift1 should be calculated using BL bit-depth
    223224    Int shift1 = refBitDepthLuma - 8;
    224225
     
    320321    heightBL  = min<Int>( pcBasePic->getHeight(COMPONENT_Y) >> 1, heightEL );
    321322
    322     // g_bitDepthC was set to EL bit-depth, but shift1 should be calculated using BL bit-depth
     323    // shift1 should be calculated using BL bit-depth
    323324    shift1 = refBitDepthChroma - 8;
    324325
Note: See TracChangeset for help on using the changeset viewer.