Changeset 763 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibDecoder
- Timestamp:
- 30 Apr 2014, 01:19:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 );
Note: See TracChangeset for help on using the changeset viewer.