Ignore:
Timestamp:
22 Sep 2015, 23:25:33 (10 years ago)
Author:
tech
Message:

Alpha channel SEI modifications. On behalf of Matteo.

Location:
branches/HTM-15.1-dev0-BBC/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-15.1-dev0-BBC/source/Lib/TLibDecoder/SEIread.cpp

    r1332 r1334  
    336336      xParseSEISubBitstreamProperty((SEISubBitstreamProperty&) *sei, payloadSize, pDecodedMessageOutputStream );
    337337      break;
    338 #if NH_MV_SEI_TBD
    339338    case SEI::ALPHA_CHANNEL_INFO:
    340339      sei = new SEIAlphaChannelInfo;
    341340      xParseSEIAlphaChannelInfo((SEIAlphaChannelInfo&) *sei, payloadSize, pDecodedMessageOutputStream );
    342341      break;
     342#if NH_MV_SEI_TBD
    343343    case SEI::OVERLAY_INFO:
    344344      sei = new SEIOverlayInfo;
     
    13341334};
    13351335
    1336 #if NH_MV_SEI_TBD
    13371336Void SEIReader::xParseSEIAlphaChannelInfo(SEIAlphaChannelInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream)
    13381337{
     
    13451344    sei_read_code( pDecodedMessageOutputStream, 3, code, "alpha_channel_use_idc" ); sei.m_alphaChannelUseIdc = code;
    13461345    sei_read_code( pDecodedMessageOutputStream, 3, code, "alpha_channel_bit_depth_minus8" ); sei.m_alphaChannelBitDepthMinus8 = code;
    1347     sei_read_code( pDecodedMessageOutputStream, getAlphaTransparentValueLen ), code, "alpha_transparent_value" ); sei.m_alphaTransparentValue = code;
    1348     sei_read_code( pDecodedMessageOutputStream, getAlphaOpaqueValueLen ), code, "alpha_opaque_value" ); sei.m_alphaOpaqueValue = code;
     1346    sei_read_code( pDecodedMessageOutputStream, sei.m_alphaChannelBitDepthMinus8+9, code, "alpha_transparent_value" ); sei.m_alphaTransparentValue = code;
     1347    sei_read_code( pDecodedMessageOutputStream, sei.m_alphaChannelBitDepthMinus8+9, code, "alpha_opaque_value" ); sei.m_alphaOpaqueValue = code;
    13491348    sei_read_flag( pDecodedMessageOutputStream, code, "alpha_channel_incr_flag" ); sei.m_alphaChannelIncrFlag = (code == 1);
    13501349    sei_read_flag( pDecodedMessageOutputStream, code, "alpha_channel_clip_flag" ); sei.m_alphaChannelClipFlag = (code == 1);
     
    13561355};
    13571356
     1357#if NH_MV_SEI_TBD
    13581358Void SEIReader::xParseSEIOverlayInfo(SEIOverlayInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream)
    13591359{
  • branches/HTM-15.1-dev0-BBC/source/Lib/TLibDecoder/SEIread.h

    r1331 r1334  
    111111#endif
    112112  Void xParseSEISubBitstreamProperty          (SEISubBitstreamProperty& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
     113  Void xParseSEIAlphaChannelInfo              (SEIAlphaChannelInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
    113114#if NH_MV_SEI_TBD
    114   Void xParseSEIAlphaChannelInfo              (SEIAlphaChannelInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
    115115  Void xParseSEIOverlayInfo                   (SEIOverlayInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
    116116#endif
Note: See TracChangeset for help on using the changeset viewer.