Changeset 659 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibDecoder
- Timestamp:
- 9 Apr 2014, 21:42:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r652 r659 1623 1623 #endif 1624 1624 #if REPN_FORMAT_IN_VPS 1625 Void TDecCavlc::parseRepFormat 1625 Void TDecCavlc::parseRepFormat( RepFormat *repFormat ) 1626 1626 { 1627 1627 UInt uiCode; 1628 #if REPN_FORMAT_CONTROL_FLAG 1629 READ_ FLAG ( uiCode, "chroma_and_bit_depth_vps_present_flag"); repFormat->setChromaAndBitDepthVpsPresentFlag(uiCode ? true : false);1630 READ_CODE ( 16, uiCode, "pic_width_in_luma_samples" ); repFormat->setPicWidthVpsInLumaSamples( uiCode );1631 READ_ CODE ( 16, uiCode, "pic_height_in_luma_samples" ); repFormat->setPicHeightVpsInLumaSamples( uiCode );1628 #if REPN_FORMAT_CONTROL_FLAG 1629 READ_CODE( 16, uiCode, "pic_width_vps_in_luma_samples" ); repFormat->setPicWidthVpsInLumaSamples ( uiCode ); 1630 READ_CODE( 16, uiCode, "pic_height_vps_in_luma_samples" ); repFormat->setPicHeightVpsInLumaSamples( uiCode ); 1631 READ_FLAG( uiCode, "chroma_and_bit_depth_vps_present_flag" ); repFormat->setChromaAndBitDepthVpsPresentFlag( uiCode ? true : false ); 1632 1632 1633 1633 if( repFormat->getChromaAndBitDepthVpsPresentFlag() ) 1634 1634 { 1635 READ_CODE( 2, uiCode, "chroma_format_vps_idc" ); 1635 1636 #if AUXILIARY_PICTURES 1636 READ_CODE( 2, uiCode, "chroma_format_idc" );repFormat->setChromaFormatVpsIdc( ChromaFormat(uiCode) );1637 #else 1638 READ_CODE( 2, uiCode, "chroma_format_idc" );repFormat->setChromaFormatVpsIdc( uiCode );1637 repFormat->setChromaFormatVpsIdc( ChromaFormat(uiCode) ); 1638 #else 1639 repFormat->setChromaFormatVpsIdc( uiCode ); 1639 1640 #endif 1640 1641 1641 1642 if( repFormat->getChromaFormatVpsIdc() == 3 ) 1642 1643 { 1643 READ_FLAG( uiCode, "separate_colour_plane_flag"); repFormat->setSeparateColourPlaneVpsFlag(uiCode ? true : false); 1644 } 1645 1646 1647 READ_CODE( 4, uiCode, "bit_depth_luma_minus8" ); repFormat->setBitDepthVpsLuma ( uiCode + 8 ); 1648 READ_CODE( 4, uiCode, "bit_depth_chroma_minus8" ); repFormat->setBitDepthVpsChroma( uiCode + 8 ); 1644 READ_FLAG( uiCode, "separate_colour_plane_vps_flag" ); repFormat->setSeparateColourPlaneVpsFlag( uiCode ? true : false ); 1645 } 1646 1647 READ_CODE( 4, uiCode, "bit_depth_vps_luma_minus8" ); repFormat->setBitDepthVpsLuma ( uiCode + 8 ); 1648 READ_CODE( 4, uiCode, "bit_depth_vps_chroma_minus8" ); repFormat->setBitDepthVpsChroma( uiCode + 8 ); 1649 1649 } 1650 1650 #else
Note: See TracChangeset for help on using the changeset viewer.