Changeset 763 in SHVCSoftware
- Timestamp:
- 30 Apr 2014, 01:19:30 (11 years ago)
- Location:
- branches/SHM-6-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.cpp
r762 r763 2246 2246 #endif 2247 2247 #endif 2248 #if VPS_VUI_BITRATE_PICRATE2249 2248 , m_bitRatePresentVpsFlag (false) 2250 2249 , m_picRatePresentVpsFlag (false) 2251 #endif2252 2250 #if REPN_FORMAT_IN_VPS 2253 2251 #if Q0195_REP_FORMAT_CLEANUP … … 2371 2369 } 2372 2370 #endif 2373 #if VPS_VUI_BITRATE_PICRATE2374 2371 ::memset(m_bitRatePresentFlag, 0, sizeof(m_bitRatePresentFlag)); 2375 2372 ::memset(m_picRatePresentFlag, 0, sizeof(m_picRatePresentFlag)); … … 2378 2375 ::memset(m_constPicRateIdc , 0, sizeof(m_constPicRateIdc) ); 2379 2376 ::memset(m_avgPicRate , 0, sizeof(m_avgPicRate) ); 2380 #endif2381 2377 #if REPN_FORMAT_IN_VPS 2382 2378 ::memset( m_vpsRepFormatIdx, 0, sizeof(m_vpsRepFormatIdx) ); -
branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.h
r760 r763 616 616 Int m_vpsTransChar[16]; 617 617 Int m_vpsMatCoeff[16]; 618 #endif 619 #if VPS_VUI_BITRATE_PICRATE 618 #endif 619 620 620 Bool m_bitRatePresentVpsFlag; 621 621 Bool m_picRatePresentVpsFlag; … … 626 626 Int m_constPicRateIdc [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; 627 627 Int m_avgPicRate [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; 628 #endif629 628 630 629 #if P0312_VERT_PHASE_ADJ … … 1003 1002 Void setMaxtrixCoeff(Int idx, Int x) { m_vpsMatCoeff[idx] = x; } 1004 1003 #endif 1005 #if VPS_VUI_BITRATE_PICRATE1006 1004 Bool getBitRatePresentVpsFlag() { return m_bitRatePresentVpsFlag; } 1007 1005 Void setBitRatePresentVpsFlag(Bool x) { m_bitRatePresentVpsFlag = x; } … … 1023 1021 Int getAvgPicRate(Int i, Int j) { return m_avgPicRate[i][j]; } 1024 1022 Void setAvgPicRate(Int i, Int j, Int x) { m_avgPicRate[i][j] = x; } 1025 #endif1026 1023 #if O0164_MULTI_LAYER_HRD 1027 1024 Bool getVpsVuiBspHrdPresentFlag() { return m_vpsVuiBspHrdPresentFlag; } -
branches/SHM-6-dev/source/Lib/TLibCommon/TypeDef.h
r762 r763 158 158 #define TILE_BOUNDARY_ALIGNED_FLAG 1 ///< JCTVC-N0160/JCTVC-N0199 proposal 2 variant 2: VPS VUI flag to indicate tile boundary alignment 159 159 #define N0160_VUI_EXT_ILP_REF 1 ///< VUI extension inter-layer dependency offset signalling 160 #define VPS_VUI_BITRATE_PICRATE 1 ///< JCTVC-N0085: Signal bit rate and picture in VPS VUI161 160 #if M0040_ADAPTIVE_RESOLUTION_CHANGE 162 161 #define HIGHER_LAYER_IRAP_SKIP_FLAG 1 ///< JCTVC-O0199: Indication that higher layer IRAP picture uses skip blocks only -
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r762 r763 2068 2068 } 2069 2069 #endif 2070 #if VPS_VUI_BITRATE_PICRATE 2070 2071 2071 READ_FLAG( uiCode, "bit_rate_present_vps_flag" ); vps->setBitRatePresentVpsFlag( uiCode ? true : false ); 2072 2072 READ_FLAG( uiCode, "pic_rate_present_vps_flag" ); vps->setPicRatePresentVpsFlag( uiCode ? true : false ); 2073 2073 2074 2074 Bool parseFlag = vps->getBitRatePresentVpsFlag() || vps->getPicRatePresentVpsFlag(); 2075 { 2076 2077 2075 2076 for( i = 0; i < vps->getNumLayerSets(); i++ ) 2077 { 2078 2078 #if BITRATE_PICRATE_SIGNALLING 2079 for( j = 0; j <= vps->getMaxSLayersInLayerSetMinus1(i); j++ ) 2080 #else 2081 for( j = 0; j < vps->getMaxTLayers(); j++ ) 2082 #endif 2083 { 2084 if( parseFlag && vps->getBitRatePresentVpsFlag() ) 2085 { 2086 READ_FLAG( uiCode, "bit_rate_present_flag[i][j]" ); vps->setBitRatePresentFlag( i, j, uiCode ? true : false ); 2087 } 2088 else 2089 { 2090 vps->setBitRatePresentFlag( i, j, false ); 2091 } 2092 if( parseFlag && vps->getPicRatePresentVpsFlag() ) 2093 { 2094 READ_FLAG( uiCode, "pic_rate_present_flag[i][j]" ); vps->setPicRatePresentFlag( i, j, uiCode ? true : false ); 2095 } 2096 else 2097 { 2098 vps->setPicRatePresentFlag( i, j, false ); 2099 } 2100 if( parseFlag && vps->getBitRatePresentFlag(i, j) ) 2101 { 2102 READ_CODE( 16, uiCode, "avg_bit_rate[i][j]" ); vps->setAvgBitRate( i, j, uiCode ); 2103 READ_CODE( 16, uiCode, "max_bit_rate[i][j]" ); vps->setMaxBitRate( i, j, uiCode ); 2104 } 2105 else 2106 { 2107 vps->setAvgBitRate( i, j, 0 ); 2108 vps->setMaxBitRate( i, j, 0 ); 2109 } 2110 if( parseFlag && vps->getPicRatePresentFlag(i, j) ) 2111 { 2112 READ_CODE( 2 , uiCode, "constant_pic_rate_idc[i][j]" ); vps->setConstPicRateIdc( i, j, uiCode ); 2113 READ_CODE( 16, uiCode, "avg_pic_rate[i][j]" ); vps->setAvgPicRate( i, j, uiCode ); 2114 } 2115 else 2116 { 2117 vps->setConstPicRateIdc( i, j, 0 ); 2118 vps->setAvgPicRate ( i, j, 0 ); 2119 } 2120 } 2121 } 2122 } 2123 #endif 2079 for( j = 0; j <= vps->getMaxSLayersInLayerSetMinus1(i); j++ ) 2080 #else 2081 for( j = 0; j < vps->getMaxTLayers(); j++ ) 2082 #endif 2083 { 2084 if( parseFlag && vps->getBitRatePresentVpsFlag() ) 2085 { 2086 READ_FLAG( uiCode, "bit_rate_present_flag[i][j]" ); vps->setBitRatePresentFlag( i, j, uiCode ? true : false ); 2087 } 2088 else 2089 { 2090 vps->setBitRatePresentFlag( i, j, false ); 2091 } 2092 if( parseFlag && vps->getPicRatePresentVpsFlag() ) 2093 { 2094 READ_FLAG( uiCode, "pic_rate_present_flag[i][j]" ); vps->setPicRatePresentFlag( i, j, uiCode ? true : false ); 2095 } 2096 else 2097 { 2098 vps->setPicRatePresentFlag( i, j, false ); 2099 } 2100 if( parseFlag && vps->getBitRatePresentFlag(i, j) ) 2101 { 2102 READ_CODE( 16, uiCode, "avg_bit_rate[i][j]" ); vps->setAvgBitRate( i, j, uiCode ); 2103 READ_CODE( 16, uiCode, "max_bit_rate[i][j]" ); vps->setMaxBitRate( i, j, uiCode ); 2104 } 2105 else 2106 { 2107 vps->setAvgBitRate( i, j, 0 ); 2108 vps->setMaxBitRate( i, j, 0 ); 2109 } 2110 if( parseFlag && vps->getPicRatePresentFlag(i, j) ) 2111 { 2112 READ_CODE( 2 , uiCode, "constant_pic_rate_idc[i][j]" ); vps->setConstPicRateIdc( i, j, uiCode ); 2113 READ_CODE( 16, uiCode, "avg_pic_rate[i][j]" ); vps->setAvgPicRate( i, j, uiCode ); 2114 } 2115 else 2116 { 2117 vps->setConstPicRateIdc( i, j, 0 ); 2118 vps->setAvgPicRate ( i, j, 0 ); 2119 } 2120 } 2121 } 2124 2122 #if VPS_VUI_VIDEO_SIGNAL_MOVE 2125 2123 READ_FLAG( uiCode, "video_signal_info_idx_present_flag" ); vps->setVideoSigPresentVpsFlag( uiCode == 1 ); -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r760 r763 1455 1455 } 1456 1456 #endif 1457 #if VPS_VUI_BITRATE_PICRATE1458 1457 WRITE_FLAG( vps->getBitRatePresentVpsFlag(), "bit_rate_present_vps_flag" ); 1459 1458 WRITE_FLAG( vps->getPicRatePresentVpsFlag(), "pic_rate_present_vps_flag" ); … … 1490 1489 } 1491 1490 } 1492 #endif1493 1491 #if VPS_VUI_VIDEO_SIGNAL_MOVE 1494 1492 WRITE_FLAG( vps->getVideoSigPresentVpsFlag(), "video_signal_info_idx_present_flag" );
Note: See TracChangeset for help on using the changeset viewer.