Changeset 1479 in SHVCSoftware for branches/SHM-dev/source/Lib


Ignore:
Timestamp:
12 Oct 2015, 18:26:07 (9 years ago)
Author:
seregin
Message:

port rev 4611

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/SEIEncoder.cpp

    r1475 r1479  
    541541      readTokenValueAndValidate(seiColourRemappingInfo->m_colourRemapBitDepth,      failed, fic, "colour_remap_bit_depth",                  Int(8), Int(16) );
    542542
    543       const Int maximumInputValue    = (1<<seiColourRemappingInfo->m_colourRemapInputBitDepth)-1;
    544       const Int maximumRemappedValue = (1<<seiColourRemappingInfo->m_colourRemapBitDepth)-1;
     543      const Int maximumInputValue    = (1 << (((seiColourRemappingInfo->m_colourRemapInputBitDepth + 7) >> 3) << 3)) - 1;
     544      const Int maximumRemappedValue = (1 << (((seiColourRemappingInfo->m_colourRemapBitDepth      + 7) >> 3) << 3)) - 1;
    545545
    546546      for( Int c=0 ; c<3 ; c++ )
Note: See TracChangeset for help on using the changeset viewer.