Changeset 573 in SHVCSoftware
- Timestamp:
- 28 Jan 2014, 18:21:52 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/App/TAppEncoder/TAppEncTop.cpp
r568 r573 177 177 delete [] mapIdxToLayer; 178 178 #endif 179 180 #if O0194_WEIGHTED_PREDICTION_CGS 181 Bool bitDepthScalabilityFlag = false; 182 for(UInt layer=0; layer<m_numLayers; layer++) 183 { 184 if( m_acLayerCfg[0].m_internalBitDepthY != m_acLayerCfg[layer].m_internalBitDepthY ) 185 { 186 bitDepthScalabilityFlag = true; 187 break; 188 } 189 } 190 #endif 191 179 192 for(UInt layer=0; layer<m_numLayers; layer++) 180 193 { … … 190 203 g_bitDepthYLayer[layer] = g_bitDepthY; 191 204 g_bitDepthCLayer[layer] = g_bitDepthC; 205 206 #if O0194_WEIGHTED_PREDICTION_CGS 207 m_acTEncTop[layer].setBitDepthScalabilityFlag( bitDepthScalabilityFlag ); 208 #endif 192 209 #endif 193 210 //m_acTEncTop[layer].setVPS(&vps); -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r568 r573 1558 1558 #if O0194_WEIGHTED_PREDICTION_CGS 1559 1559 // Calculate for the base layer to be used in EL as Inter layer reference 1560 m_pcSliceEncoder->estimateILWpParam( pcSlice ); 1560 if( m_pcEncTop->getBitDepthScalabilityFlag() ) 1561 { 1562 m_pcSliceEncoder->estimateILWpParam( pcSlice ); 1563 } 1561 1564 #endif 1562 1565 #if AVC_SYNTAX -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r564 r573 811 811 } 812 812 #if O0194_WEIGHTED_PREDICTION_CGS 813 else 813 else if( m_ppcTEncTop[pcSlice->getLayerId()]->getBitDepthScalabilityFlag() ) 814 814 { 815 815 // Calculate for the base layer to be used in EL as Inter layer reference -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncTop.h
r559 r573 151 151 Bool m_noOutputOfPriorPicsFlags; 152 152 #endif 153 #if O0194_WEIGHTED_PREDICTION_CGS 154 Bool m_bitDepthScalabilityFlag; 155 #endif 153 156 #endif //SVC_EXTENSION 154 157 protected: … … 234 237 Bool getMFMEnabledFlag() {return m_bMFMEnabledFlag;} 235 238 #endif 239 #if O0194_WEIGHTED_PREDICTION_CGS 240 Void setBitDepthScalabilityFlag(Bool flag) { m_bitDepthScalabilityFlag = flag; } 241 Bool getBitDepthScalabilityFlag() { return m_bitDepthScalabilityFlag; } 242 #endif 236 243 #if AVC_SYNTAX 237 244 Void setBLSyntaxFile( fstream* pFile ) { m_pBLSyntaxFile = pFile; }
Note: See TracChangeset for help on using the changeset viewer.