Ignore:
Timestamp:
1 Sep 2013, 22:47:26 (11 years ago)
Author:
tech
Message:

Merged DEV-2.0-dev0@604.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/TEncSampleAdaptiveOffset.h

    r443 r608  
    44 * granted under this license. 
    55 *
    6  * Copyright (c) 2010-2012, ITU/ISO/IEC
     6 * Copyright (c) 2010-2013, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    3232 */
    3333
    34 /** \file     TEncAdaptiveLoopFilter.h
     34/**
     35 \file     TEncSampleAdaptiveOffset.h
    3536 \brief    estimation part of sample adaptive offset class (header)
    3637 */
     
    5657{
    5758private:
    58   Double            m_dLambdaLuma;
    59   Double            m_dLambdaChroma;
    60 
    6159  TEncEntropy*      m_pcEntropyCoder;
    6260  TEncSbac***       m_pppcRDSbacCoder;              ///< for CABAC
     
    7169  Int64  ***m_iOffset;     //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS];
    7270  Int64  ***m_iOffsetOrg;  //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE];
    73 #if LGE_SAO_MIGRATION_D0091
    7471  Int64  ****m_count_PreDblk;      //[LCU][YCbCr][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS];
    7572  Int64  ****m_offsetOrg_PreDblk;  //[LCU][YCbCr][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS];
    76 #endif
    7773  Int64  **m_iRate;        //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE];
    7874  Int64  **m_iDist;        //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE];
     
    8177  Int64  *m_iDistOrg;      //[MAX_NUM_SAO_PART];
    8278  Int    *m_iTypePartBest; //[MAX_NUM_SAO_PART];
    83   Int     m_iOffsetTh;
     79  Int     m_iOffsetThY;
     80  Int     m_iOffsetThC;
    8481  Bool    m_bUseSBACRD;
    8582#if SAO_ENCODING_CHOICE
     
    108105#endif
    109106
    110 #if LGE_SAO_MIGRATION_D0091
    111107  Void runQuadTreeDecision(SAOQTPart *psQTPart, Int iPartIdx, Double &dCostFinal, Int iMaxLevel, Double dLambda, Int yCbCr);
    112108  Void rdoSaoOnePart(SAOQTPart *psQTPart, Int iPartIdx, Double dLambda, Int yCbCr);
    113 #else
    114   Void runQuadTreeDecision(SAOQTPart *psQTPart, Int iPartIdx, Double &dCostFinal, Int iMaxLevel, Double dLambda);
    115   Void rdoSaoOnePart(SAOQTPart *psQTPart, Int iPartIdx, Double dLambda);
    116 #endif
    117109 
    118110  Void disablePartTree(SAOQTPart *psQTPart, Int iPartIdx);
    119111  Void getSaoStats(SAOQTPart *psQTPart, Int iYCbCr);
    120112  Void calcSaoStatsCu(Int iAddr, Int iPartIdx, Int iYCbCr);
    121   Void calcSaoStatsBlock( Pel* pRecStart, Pel* pOrgStart, Int stride, Int64** ppStats, Int64** ppCount, UInt width, UInt height, Bool* pbBorderAvail);
     113  Void calcSaoStatsBlock( Pel* pRecStart, Pel* pOrgStart, Int stride, Int64** ppStats, Int64** ppCount, UInt width, UInt height, Bool* pbBorderAvail, Int iYCbCr);
    122114  Void calcSaoStatsCuOrg(Int iAddr, Int iPartIdx, Int iYCbCr);
    123 #if LGE_SAO_MIGRATION_D0091
    124115  Void calcSaoStatsCu_BeforeDblk( TComPic* pcPic );
    125 #endif
    126116  Void destroyEncBuffer();
    127117  Void createEncBuffer();
     
    133123  Void rdoSaoUnitAll(SAOParam *saoParam, Double lambda, Double lambdaChroma);
    134124#endif
    135 #if LGE_SAO_MIGRATION_D0091
    136125  Void saoComponentParamDist(Int allowMergeLeft, Int allowMergeUp, SAOParam *saoParam, Int addr, Int addrUp, Int addrLeft, Int yCbCr, Double lambda, SaoLcuParam *compSaoParam, Double *distortion);
    137126  Void sao2ChromaParamDist(Int allowMergeLeft, Int allowMergeUp, SAOParam *saoParam, Int addr, Int addrUp, Int addrLeft, Double lambda, SaoLcuParam *crSaoParam, SaoLcuParam *cbSaoParam, Double *distortion);
    138127  inline Int64 estSaoDist(Int64 count, Int64 offset, Int64 offsetOrg, Int shift);
    139   inline Int64 estIterOffset(Int typeIdx, Int classIdx, double lambda, Int64 offsetInput, Int64 count, Int64 offsetOrg, Int shift, Int bitIncrease, Int *currentDistortionTableBo, Double *currentRdCostTableBo );
     128  inline Int64 estIterOffset(Int typeIdx, Int classIdx, Double lambda, Int64 offsetInput, Int64 count, Int64 offsetOrg, Int shift, Int bitIncrease, Int *currentDistortionTableBo, Double *currentRdCostTableBo, Int offsetTh );
    140129  inline Int64 estSaoTypeDist(Int compIdx, Int typeIdx, Int shift, Double lambda, Int *currentDistortionTableBo, Double *currentRdCostTableBo);
    141 #else
    142   Void rdoSaoUnit(SAOParam *saoParam, Int addr, Int addrUp, Int addrLeft, Int yCbCr, Double lambda);
    143 #endif
    144130  Void setMaxNumOffsetsPerPic(Int iVal) {m_maxNumOffsetsPerPic = iVal; }
    145131  Int  getMaxNumOffsetsPerPic() {return m_maxNumOffsetsPerPic; }
Note: See TracChangeset for help on using the changeset viewer.