Changeset 1547 in SHVCSoftware


Ignore:
Timestamp:
22 Mar 2016, 23:55:18 (9 years ago)
Author:
seregin
Message:

port rev 4722

Location:
branches/SHM-dev/source/Lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1545 r1547  
    171171#define U0040_MODIFIED_WEIGHTEDPREDICTION_WITH_BIPRED_AND_CLIPPING 1
    172172#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.
    173174
    174175// ====================================================================================================================
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r1545 r1547  
    376376    }
    377377
     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
    378385    iQP = max( -rpcSlice->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA), min( MAX_QP, (Int) floor( dQP + 0.5 ) ) );
    379386
Note: See TracChangeset for help on using the changeset viewer.