Changeset 1547 in SHVCSoftware
- Timestamp:
- 22 Mar 2016, 23:55:18 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1545 r1547 171 171 #define U0040_MODIFIED_WEIGHTEDPREDICTION_WITH_BIPRED_AND_CLIPPING 1 172 172 #define U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 1 ///< Alternative transfer characteristics SEI message (JCTVC-U0033, with syntax naming from V1005) 173 #define W0062_RECALCULATE_QP_TO_ALIGN_WITH_LAMBDA 0 ///< This recalculates QP to align with the derived lambda (same relation as for all intra coding is used). Currently disabled by default. 173 174 174 175 // ==================================================================================================================== -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1545 r1547 376 376 } 377 377 378 #if W0062_RECALCULATE_QP_TO_ALIGN_WITH_LAMBDA 379 Double lambdaRef = 0.57*pow(2.0, qp_temp/3.0); 380 // QP correction due to modified lambda 381 Double qpOffset = floor((3.0*log(dLambda/lambdaRef)/log(2.0)) +0.5); 382 dQP += qpOffset; 383 #endif 384 378 385 iQP = max( -rpcSlice->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA), min( MAX_QP, (Int) floor( dQP + 0.5 ) ) ); 379 386
Note: See TracChangeset for help on using the changeset viewer.