Changeset 1325 in 3DVCSoftware for branches/HTM-15.1-MV-draft-4/source/Lib/TLibEncoder/TEncRateCtrl.h
- Timestamp:
- 7 Sep 2015, 18:40:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.1-MV-draft-4/source/Lib/TLibEncoder/TEncRateCtrl.h
r1313 r1325 87 87 Double m_costIntra; 88 88 Int m_targetBitsLeft; 89 #if KWU_RC_MADPRED_E022790 Double m_MAD;91 Int m_CUWidth;92 Int m_CUHeight;93 Double m_IVMAD;94 #endif95 89 }; 96 90 … … 228 222 229 223 public: 230 #if KWU_RC_MADPRED_E0227231 Void create( TEncRCSeq* encRCSeq, TEncRCGOP* encRCGOP, Int frameLevel, list<TEncRCPic*>& listPreviousPictures, Int layerID );232 #else233 224 Void create( TEncRCSeq* encRCSeq, TEncRCGOP* encRCGOP, Int frameLevel, list<TEncRCPic*>& listPreviousPictures ); 234 #endif235 225 Void destroy(); 236 226 237 #if KWU_RC_MADPRED_E0227238 Double estimatePicLambdaIV( list<TEncRCPic*>& listPreviousPictures, Int curPOC );239 #endif240 227 Int estimatePicQP ( Double lambda, list<TEncRCPic*>& listPreviousPictures ); 241 228 Int getRefineBitsForIntra(Int orgBits); … … 247 234 Double getLCUTargetBpp(SliceType eSliceType); 248 235 Double getLCUEstLambdaAndQP(Double bpp, Int clipPicQP, Int *estQP); 249 #if KWU_RC_MADPRED_E0227250 Double getLCUTargetBppforInterView( list<TEncRCPic*>& listPreviousPictures, TComDataCU* pcCU, Double basePos, Double curPos, Double focalLen, Double znear, Double zfar, Int direction, Int* disparity );251 #endif252 236 Double getLCUEstLambda( Double bpp ); 253 237 Int getLCUEstQP( Double lambda, Int clipPicQP ); … … 257 241 258 242 Void addToPictureLsit( list<TEncRCPic*>& listPreviousPictures ); 259 #if KWU_RC_MADPRED_E0227260 Void addToPictureLsitIV( list<TEncRCPic*>& listPreviousPictures );261 Void setIVPic( TEncRCPic* baseRCPic );262 #endif263 243 Double calAverageQP(); 264 244 Double calAverageLambda(); … … 288 268 Void setTotalIntraCost(Double cost) { m_totalCostIntra = cost; } 289 269 Void getLCUInitTargetBits(); 290 #if KWU_RC_MADPRED_E0227291 Double getTotalMAD() { return m_totalMAD; }292 Void setTotalMAD( Double MAD ) { m_totalMAD = MAD; }293 294 Double getIVTotalMAD() { return m_IVtotalMAD; }295 Void setIVTotalMAD( Double MAD ) { m_IVtotalMAD = MAD; }296 #endif297 270 298 271 Int getPicActualBits() { return m_picActualBits; } … … 304 277 Void setPicEstLambda( Double lambda ) { m_picLambda = lambda; } 305 278 306 #if KWU_RC_MADPRED_E0227307 Int getLayerID() { return m_LayerID; }308 Void setLayerID(Int layerid) { m_LayerID = layerid; }309 #endif310 279 private: 311 280 TEncRCSeq* m_encRCSeq; … … 331 300 Int m_picQP; // in integer form 332 301 Double m_picLambda; 333 #if KWU_RC_MADPRED_E0227334 Double m_totalMAD;335 TEncRCPic* m_lastPicture;336 Int m_LayerID;337 TEncRCPic* m_lastIVPicture;338 Double m_IVtotalMAD;339 #endif340 302 }; 341 303 … … 347 309 348 310 public: 349 #if KWU_RC_MADPRED_E0227350 Void init( Int totalFrames, Int targetBitrate, Int frameRate, Int GOPSize, Int picWidth, Int picHeight, Int LCUWidth, Int LCUHeight, Bool keepHierBits, Bool useLCUSeparateModel, GOPEntry GOPList[MAX_GOP], Int layerID );351 #else352 311 Void init( Int totalFrames, Int targetBitrate, Int frameRate, Int GOPSize, Int picWidth, Int picHeight, Int LCUWidth, Int LCUHeight, Int keepHierBits, Bool useLCUSeparateModel, GOPEntry GOPList[MAX_GOP] ); 353 #endif354 312 Void destroy(); 355 313 Void initRCPic( Int frameLevel ); … … 365 323 list<TEncRCPic*>& getPicList() { return m_listRCPictures; } 366 324 367 #if KWU_RC_MADPRED_E0227368 Int getLayerID() { return m_LayerID; }369 Void setLayerID(Int layerid) { m_LayerID = layerid; }370 #endif371 325 private: 372 326 TEncRCSeq* m_encRCSeq; … … 375 329 list<TEncRCPic*> m_listRCPictures; 376 330 Int m_RCQP; 377 #if KWU_RC_MADPRED_E0227 378 Int m_LayerID; 331 }; 332 379 333 #endif 380 }; 381 382 #endif 383 384 334 335
Note: See TracChangeset for help on using the changeset viewer.