Ticket #23: ref_format.diff
File ref_format.diff, 2.2 KB (added by danny, 10 years ago) |
---|
-
TLibDecoder/TDecCAVLC.cpp
1455 1472 for(i = 0; i < vps->getVpsNumRepFormats(); i++) 1456 1473 { 1457 1474 // Read rep_format_structures 1475 #if 1 // danny@vidyo.com - fix for parsing of ref_format() 1476 parseRepFormat( vps->getVpsRepFormat(i), i > 0 ? vps->getVpsRepFormat(i-1) : 0 ); 1477 #else 1458 1478 parseRepFormat( vps->getVpsRepFormat(i) ); 1479 #endif 1459 1480 } 1460 1481 1461 1482 // Default assignment for layer 0 … … (this hunk was shorter than expected) 1619 1640 parseVPSVUI(vps); 1620 1641 #endif 1621 1642 } 1622 1643 } 1623 1644 #endif 1624 1645 #if REPN_FORMAT_IN_VPS 1646 #if 1 // danny@vidyo.com - fix for parsing of ref_format() 1647 Void TDecCavlc::parseRepFormat ( RepFormat *repFormat, RepFormat *repFormatPrev ) 1648 #else 1625 1649 Void TDecCavlc::parseRepFormat ( RepFormat *repFormat ) 1650 #endif 1626 1651 { 1627 1652 UInt uiCode; 1628 1653 #if REPN_FORMAT_CONTROL_FLAG … … 1647 1678 READ_CODE( 4, uiCode, "bit_depth_luma_minus8" ); repFormat->setBitDepthVpsLuma ( uiCode + 8 ); 1648 1679 READ_CODE( 4, uiCode, "bit_depth_chroma_minus8" ); repFormat->setBitDepthVpsChroma( uiCode + 8 ); 1649 1680 } 1681 #if 1 // danny@vidyo.com - fix for parsing of ref_format() 1682 else if( repFormatPrev ) { 1683 repFormat->setChromaFormatVpsIdc( repFormatPrev->getChromaFormatVpsIdc() ); 1684 repFormat->setBitDepthVpsLuma( repFormatPrev->getBitDepthVpsLuma() ); 1685 repFormat->setBitDepthVpsChroma( repFormatPrev->getBitDepthVpsChroma() ); 1686 } 1687 #endif 1650 1688 #else 1651 1689 #if AUXILIARY_PICTURES 1652 1690 READ_CODE( 2, uiCode, "chroma_format_idc" ); repFormat->setChromaFormatVpsIdc( ChromaFormat(uiCode) ); -
TLibDecoder/TDecCAVLC.h
80 80 Void parseVPSVUI ( TComVPS* pcVPS ); 81 81 #endif 82 82 #if REPN_FORMAT_IN_VPS 83 #if 1 // danny@vidyo.com - fix for parsing of ref_format() 84 Void parseRepFormat ( RepFormat *repFormat, RepFormat *repFormatPrev ); 85 #else 83 86 Void parseRepFormat ( RepFormat *repFormat ); 84 87 #endif 88 #endif 85 89 #if VPS_DPB_SIZE_TABLE 86 90 Void parseVpsDpbSizeTable( TComVPS *vps ); 87 91 #endif