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/TLibEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-15.1-dev0-BBC/source/Lib/TLibEncoder/SEIwrite.cpp

    r1331 r1334  
    148148     xWriteSEISubBitstreamProperty(*static_cast<const SEISubBitstreamProperty*>(&sei));
    149149     break;
    150 #if NH_MV_SEI_TBD
    151150   case SEI::ALPHA_CHANNEL_INFO:
    152151     xWriteSEIAlphaChannelInfo(*static_cast<const SEIAlphaChannelInfo*>(&sei));
    153      break;
     152     break;
     153#if NH_MV_SEI_TBD
    154154   case SEI::OVERLAY_INFO:
    155155     xWriteSEIOverlayInfo(*static_cast<const SEIOverlayInfo*>(&sei));
     
    977977  }
    978978};
    979 #if NH_MV_SEI_TBD
     979
    980980Void SEIWriter::xWriteSEIAlphaChannelInfo( const SEIAlphaChannelInfo& sei)
    981981{
     
    985985    WRITE_CODE( sei.m_alphaChannelUseIdc, 3, "alpha_channel_use_idc" );
    986986    WRITE_CODE( sei.m_alphaChannelBitDepthMinus8, 3, "alpha_channel_bit_depth_minus8" );
    987     WRITE_CODE( sei.m_alphaTransparentValue, getAlphaTransparentValueLen ), "alpha_transparent_value" );
    988     WRITE_CODE( sei.m_alphaOpaqueValue, getAlphaOpaqueValueLen ), "alpha_opaque_value" );
     987    WRITE_CODE( sei.m_alphaTransparentValue, sei.m_alphaChannelBitDepthMinus8+9, "alpha_transparent_value" );
     988    WRITE_CODE( sei.m_alphaOpaqueValue, sei.m_alphaChannelBitDepthMinus8+9, "alpha_opaque_value" );
    989989    WRITE_FLAG( ( sei.m_alphaChannelIncrFlag ? 1 : 0 ), "alpha_channel_incr_flag" );
    990990    WRITE_FLAG( ( sei.m_alphaChannelClipFlag ? 1 : 0 ), "alpha_channel_clip_flag" );
     
    996996};
    997997
     998#if NH_MV_SEI_TBD
    998999Void SEIWriter::xWriteSEIOverlayInfo( const SEIOverlayInfo& sei)
    9991000{
  • branches/HTM-15.1-dev0-BBC/source/Lib/TLibEncoder/SEIwrite.h

    r1331 r1334  
    9393#endif
    9494  Void xWriteSEISubBitstreamProperty          ( const SEISubBitstreamProperty& sei);
     95  Void xWriteSEIAlphaChannelInfo              ( const SEIAlphaChannelInfo& sei);
    9596#if NH_MV_SEI_TBD
    96   Void xWriteSEIAlphaChannelInfo              ( const SEIAlphaChannelInfo& sei);
    9797  Void xWriteSEIOverlayInfo                   ( const SEIOverlayInfo& sei);
    9898#endif
Note: See TracChangeset for help on using the changeset viewer.