Ignore:
Timestamp:
16 Apr 2013, 06:39:31 (12 years ago)
Author:
seregin
Message:

copy from HM-10.0-dev-SHM

File:
1 edited

Legend:

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

    r2 r125  
    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 */
     
    7172  Int64  ***m_iOffset;     //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS];
    7273  Int64  ***m_iOffsetOrg;  //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE];
    73 #if SAO_LCU_BOUNDARY
    7474  Int64  ****m_count_PreDblk;      //[LCU][YCbCr][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS];
    7575  Int64  ****m_offsetOrg_PreDblk;  //[LCU][YCbCr][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS];
    76 #endif
    7776  Int64  **m_iRate;        //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE];
    7877  Int64  **m_iDist;        //[MAX_NUM_SAO_PART][MAX_NUM_SAO_TYPE];
     
    8180  Int64  *m_iDistOrg;      //[MAX_NUM_SAO_PART];
    8281  Int    *m_iTypePartBest; //[MAX_NUM_SAO_PART];
    83   Int     m_iOffsetTh;
     82  Int     m_iOffsetThY;
     83  Int     m_iOffsetThC;
    8484  Bool    m_bUseSBACRD;
    8585#if SAO_ENCODING_CHOICE
     
    108108#endif
    109109
    110 #if PICTURE_SAO_RDO_FIX 
    111110  Void runQuadTreeDecision(SAOQTPart *psQTPart, Int iPartIdx, Double &dCostFinal, Int iMaxLevel, Double dLambda, Int yCbCr);
    112111  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
    117112 
    118113  Void disablePartTree(SAOQTPart *psQTPart, Int iPartIdx);
    119114  Void getSaoStats(SAOQTPart *psQTPart, Int iYCbCr);
    120115  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);
     116  Void calcSaoStatsBlock( Pel* pRecStart, Pel* pOrgStart, Int stride, Int64** ppStats, Int64** ppCount, UInt width, UInt height, Bool* pbBorderAvail, Int iYCbCr);
    122117  Void calcSaoStatsCuOrg(Int iAddr, Int iPartIdx, Int iYCbCr);
    123 #if SAO_LCU_BOUNDARY
    124118  Void calcSaoStatsCu_BeforeDblk( TComPic* pcPic );
    125 #endif
    126119  Void destroyEncBuffer();
    127120  Void createEncBuffer();
     
    133126  Void rdoSaoUnitAll(SAOParam *saoParam, Double lambda, Double lambdaChroma);
    134127#endif
    135 #if SAO_SINGLE_MERGE
    136128  Void saoComponentParamDist(Int allowMergeLeft, Int allowMergeUp, SAOParam *saoParam, Int addr, Int addrUp, Int addrLeft, Int yCbCr, Double lambda, SaoLcuParam *compSaoParam, Double *distortion);
    137 #if SAO_TYPE_SHARING
    138129  Void sao2ChromaParamDist(Int allowMergeLeft, Int allowMergeUp, SAOParam *saoParam, Int addr, Int addrUp, Int addrLeft, Double lambda, SaoLcuParam *crSaoParam, SaoLcuParam *cbSaoParam, Double *distortion);
    139 #endif
    140 #else
    141   Void rdoSaoUnit(Int rx, Int ry, SAOParam *saoParam, Int addr, Int addrUp, Int addrLeft, Int yCbCr, Double lambda);
    142 #endif
    143130  inline Int64 estSaoDist(Int64 count, Int64 offset, Int64 offsetOrg, Int shift);
    144   inline Int64 estIterOffset(Int typeIdx, Int classIdx, double lambda, Int64 offsetInput, Int64 count, Int64 offsetOrg, Int shift, Int bitIncrease, Int *currentDistortionTableBo, Double *currentRdCostTableBo );
     131  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 );
    145132  inline Int64 estSaoTypeDist(Int compIdx, Int typeIdx, Int shift, Double lambda, Int *currentDistortionTableBo, Double *currentRdCostTableBo);
    146133  Void setMaxNumOffsetsPerPic(Int iVal) {m_maxNumOffsetsPerPic = iVal; }
Note: See TracChangeset for help on using the changeset viewer.