Changeset 1390 in 3DVCSoftware for branches/HTM-16.0-MV-draft-5/source/Lib/TLibEncoder/TEncRateCtrl.h
- Timestamp:
- 13 Nov 2015, 17:00:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.0-MV-draft-5/source/Lib/TLibEncoder/TEncRateCtrl.h
r1386 r1390 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(); … … 291 271 Void setTotalIntraCost(Double cost) { m_totalCostIntra = cost; } 292 272 Void getLCUInitTargetBits(); 293 #if KWU_RC_MADPRED_E0227294 Double getTotalMAD() { return m_totalMAD; }295 Void setTotalMAD( Double MAD ) { m_totalMAD = MAD; }296 297 Double getIVTotalMAD() { return m_IVtotalMAD; }298 Void setIVTotalMAD( Double MAD ) { m_IVtotalMAD = MAD; }299 #endif300 273 301 274 Int getPicActualBits() { return m_picActualBits; } … … 307 280 Void setPicEstLambda( Double lambda ) { m_picLambda = lambda; } 308 281 309 #if KWU_RC_MADPRED_E0227310 Int getLayerID() { return m_LayerID; }311 Void setLayerID(Int layerid) { m_LayerID = layerid; }312 #endif313 282 private: 314 283 TEncRCSeq* m_encRCSeq; … … 334 303 Int m_picQP; // in integer form 335 304 Double m_picLambda; 336 #if KWU_RC_MADPRED_E0227337 Double m_totalMAD;338 TEncRCPic* m_lastPicture;339 Int m_LayerID;340 TEncRCPic* m_lastIVPicture;341 Double m_IVtotalMAD;342 #endif343 305 }; 344 306 … … 350 312 351 313 public: 352 #if KWU_RC_MADPRED_E0227353 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 );354 #else355 314 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] ); 356 #endif357 315 Void destroy(); 358 316 Void initRCPic( Int frameLevel ); … … 368 326 list<TEncRCPic*>& getPicList() { return m_listRCPictures; } 369 327 370 #if KWU_RC_MADPRED_E0227371 Int getLayerID() { return m_LayerID; }372 Void setLayerID(Int layerid) { m_LayerID = layerid; }373 #endif374 328 #if U0132_TARGET_BITS_SATURATION 375 329 Bool getCpbSaturationEnabled() { return m_CpbSaturationEnabled; } … … 394 348 #endif 395 349 396 #if KWU_RC_MADPRED_E0227 397 Int m_LayerID; 350 }; 351 398 352 #endif 399 }; 400 401 #endif 402 403 353 354
Note: See TracChangeset for help on using the changeset viewer.