- Timestamp:
- 22 Nov 2013, 00:13:36 (11 years ago)
- Location:
- branches/SHM-4.1-dev/source/Lib/TLibEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r502 r506 471 471 WRITE_FLAG( pcSPS->getUpdateRepFormatFlag(), "update_rep_format_flag" ); 472 472 } 473 #if O0096_REP_FORMAT_INDEX 474 if( pcSPS->getLayerId() == 0 ) 475 #else 473 476 if( pcSPS->getLayerId() == 0 || pcSPS->getUpdateRepFormatFlag() ) 477 #endif 474 478 { 475 479 #endif … … 486 490 #if REPN_FORMAT_IN_VPS 487 491 } 492 #if O0096_REP_FORMAT_INDEX 493 else if (pcSPS->getUpdateRepFormatFlag()) 494 { 495 WRITE_CODE( pcSPS->getUpdateRepFormatIndex(), 8, "update_rep_format_index"); 496 } 497 #endif 488 498 #endif 489 499 Window conf = pcSPS->getConformanceWindow(); … … 499 509 500 510 #if REPN_FORMAT_IN_VPS 511 #if O0096_REP_FORMAT_INDEX 512 if( pcSPS->getLayerId() == 0 ) 513 #else 501 514 if( pcSPS->getLayerId() == 0 || pcSPS->getUpdateRepFormatFlag() ) 515 #endif 502 516 { 503 517 assert( pcSPS->getBitDepthY() >= 8 ); … … 987 1001 if( vps->getRepFormatIdxPresentFlag() ) 988 1002 { 1003 #if O0096_REP_FORMAT_INDEX 1004 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 8, "vps_num_rep_formats_minus1" ); 1005 #else 989 1006 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 4, "vps_num_rep_formats_minus1" ); 1007 #endif 990 1008 } 991 1009 for(i = 0; i < vps->getVpsNumRepFormats(); i++) … … 1001 1019 if( vps->getVpsNumRepFormats() > 1 ) 1002 1020 { 1021 #if O0096_REP_FORMAT_INDEX 1022 WRITE_CODE( vps->getVpsRepFormatIdx(i), 8, "vps_rep_format_idx[i]" ); 1023 #else 1003 1024 WRITE_CODE( vps->getVpsRepFormatIdx(i), 4, "vps_rep_format_idx[i]" ); 1025 #endif 1004 1026 } 1005 1027 } … … 1027 1049 #if VPS_EXTN_DIRECT_REF_LAYERS && M0457_PREDICTION_INDICATIONS 1028 1050 WRITE_UVLC( vps->getDirectDepTypeLen()-2, "direct_dep_type_len_minus2"); 1051 #if O0096_DEFAULT_DEPENDENCY_TYPE 1052 WRITE_FLAG(vps->getDefaultDirectDependencyTypeFlag(), "default_direct_dependency_flag"); 1053 if (vps->getDefaultDirectDependencyTypeFlag()) 1054 { 1055 WRITE_CODE( vps->getDefaultDirectDependencyType(), vps->getDirectDepTypeLen(), "default_direct_dependency_type" ); 1056 } 1057 else 1058 { 1059 for(i = 1; i < vps->getMaxLayers(); i++) 1060 { 1061 for(j = 0; j < i; j++) 1062 { 1063 if (vps->getDirectDependencyFlag(i, j)) 1064 { 1065 WRITE_CODE( vps->getDirectDependencyType(i, j), vps->getDirectDepTypeLen(), "direct_dependency_type[i][j]" ); 1066 } 1067 } 1068 } 1069 } 1070 #else 1029 1071 for(i = 1; i < vps->getMaxLayers(); i++) 1030 1072 { … … 1037 1079 } 1038 1080 } 1081 #endif 1039 1082 1040 1083 #if IL_SL_SIGNALLING_N0371 -
branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r494 r506 1753 1753 pcSlice->getSPS()->getVuiParameters()->setHrdParametersPresentFlag( true ); 1754 1754 } 1755 #if O0092_0094_DEPENDENCY_CONSTRAINT 1756 assert( pcSlice->getSPS()->getSPSId() == 0 || pcSlice->getSPS()->getSPSId() == m_layerId || m_pcEncTop->getVPS()->getRecursiveRefLayerFlag(m_layerId, pcSlice->getSPS()->getSPSId()) ); 1757 #endif 1755 1758 m_pcEntropyCoder->encodeSPS(pcSlice->getSPS()); 1756 1759 writeRBSPTrailingBits(nalu.m_Bitstream); … … 1766 1769 #endif 1767 1770 m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream); 1771 #if O0092_0094_DEPENDENCY_CONSTRAINT 1772 assert( pcSlice->getPPS()->getPPSId() == 0 || pcSlice->getPPS()->getPPSId() == m_layerId || m_pcEncTop->getVPS()->getRecursiveRefLayerFlag(m_layerId, pcSlice->getPPS()->getPPSId()) ); 1773 #endif 1768 1774 m_pcEntropyCoder->encodePPS(pcSlice->getPPS()); 1769 1775 writeRBSPTrailingBits(nalu.m_Bitstream); -
branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncTop.cpp
r494 r506 1072 1072 #if REPN_FORMAT_IN_VPS 1073 1073 Int lowestQP; 1074 #if O0096_REP_FORMAT_INDEX 1075 if( m_layerId == 0 ) 1076 { 1077 lowestQP = - m_cSPS.getQpBDOffsetY(); 1078 } 1079 else 1080 { 1081 lowestQP = - (m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cSPS.getUpdateRepFormatFlag() ? m_cSPS.getUpdateRepFormatIndex() : m_layerId ) )->getBitDepthVpsLuma() - 8) * 6; 1082 } 1083 #else 1074 1084 if( m_layerId == 0 || m_cSPS.getUpdateRepFormatFlag() ) 1075 1085 { … … 1080 1090 lowestQP = - (m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_layerId ) )->getBitDepthVpsLuma() - 8) * 6; 1081 1091 } 1092 #endif 1082 1093 #else 1083 1094 Int lowestQP = - m_cSPS.getQpBDOffsetY(); … … 1607 1618 Void TEncTop::xInitILRP() 1608 1619 { 1620 #if O0096_REP_FORMAT_INDEX 1621 RepFormat *repFormat = m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cSPS.getUpdateRepFormatFlag() ? m_cSPS.getUpdateRepFormatIndex() : m_layerId ) ); 1622 #else 1609 1623 RepFormat *repFormat = m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_layerId ) ); 1624 #endif 1610 1625 Int bitDepthY,bitDepthC,picWidth,picHeight; 1611 1626 1627 #if O0096_REP_FORMAT_INDEX 1628 bitDepthY = repFormat->getBitDepthVpsLuma(); 1629 bitDepthC = repFormat->getBitDepthVpsChroma(); 1630 picWidth = repFormat->getPicWidthVpsInLumaSamples(); 1631 picHeight = repFormat->getPicHeightVpsInLumaSamples(); 1632 #else 1612 1633 if( m_cSPS.getUpdateRepFormatFlag() ) 1613 1634 { … … 1624 1645 picHeight = repFormat->getPicHeightVpsInLumaSamples(); 1625 1646 } 1647 #endif 1626 1648 1627 1649 if(m_layerId > 0)
Note: See TracChangeset for help on using the changeset viewer.