Changeset 493 in SHVCSoftware for branches/SHM-4.0-dev
- Timestamp:
- 16 Nov 2013, 05:02:37 (11 years ago)
- Location:
- branches/SHM-4.0-dev/source/Lib/TLibEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r489 r493 1573 1573 { 1574 1574 pcPic->getPicYuvOrg()->copyToPic( pcPic->getPicYuvRec() ); 1575 #if O0194_WEIGHTED_PREDICTION_CGS 1576 // Calculate for the base layer to be used in EL as Inter layer reference 1577 m_pcSliceEncoder->estimateILWpParam( pcSlice ); 1578 #endif 1575 1579 #if AVC_SYNTAX 1576 1580 pcPic->readBLSyntax( m_ppcTEncTop[0]->getBLSyntaxFile(), SYNTAX_BYTES ); -
branches/SHM-4.0-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r475 r493 950 950 { 951 951 // Calculate for the base layer to be used in EL as Inter layer reference 952 xCalcACDCParamSlice(pcSlice); 953 wpACDCParam * temp_weightACDCParam; 954 955 pcSlice->getWpAcDcParam(temp_weightACDCParam); 956 g_refWeightACDCParam = (void *) temp_weightACDCParam; 952 estimateILWpParam( pcSlice ); 957 953 } 958 954 #endif … … 2093 2089 } 2094 2090 #endif 2091 #if O0194_WEIGHTED_PREDICTION_CGS 2092 Void TEncSlice::estimateILWpParam( TComSlice* pcSlice ) 2093 { 2094 xCalcACDCParamSlice(pcSlice); 2095 wpACDCParam * temp_weightACDCParam; 2096 2097 pcSlice->getWpAcDcParam(temp_weightACDCParam); 2098 g_refWeightACDCParam = (void *) temp_weightACDCParam; 2099 } 2100 #endif 2095 2101 //! \} -
branches/SHM-4.0-dev/source/Lib/TLibEncoder/TEncSlice.h
r475 r493 123 123 Void initEncSlice ( TComPic* pcPic, Int pocLast, Int pocCurr, Int iNumPicRcvd, 124 124 Int iGOPid, TComSlice*& rpcSlice, TComSPS* pSPS, TComPPS *pPPS, TComVPS *vps, Bool isField ); 125 #if O0194_WEIGHTED_PREDICTION_CGS 126 Void estimateILWpParam ( TComSlice* pcSlice ); 127 #endif 125 128 #else 126 129 Void initEncSlice ( TComPic* pcPic, Int pocLast, Int pocCurr, Int iNumPicRcvd, -
branches/SHM-4.0-dev/source/Lib/TLibEncoder/WeightPredAnalysis.cpp
r488 r493 234 234 UInt currLayerId = slice->getLayerId(); 235 235 UInt refLayerId = slice->getRefPic(eRefPicList, refIdxTemp)->getLayerId(); 236 Bool validILRPic = slice->getRefPic(eRefPicList, refIdxTemp)->isILR( currLayerId ) && !( refLayerId == 0 && slice->getVPS()->getAvcBaseLayerFlag() );236 Bool validILRPic = slice->getRefPic(eRefPicList, refIdxTemp)->isILR( currLayerId ) && refLayerId == 0; 237 237 238 238 if( validILRPic )
Note: See TracChangeset for help on using the changeset viewer.