Changeset 56 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComPicYuv.h


Ignore:
Timestamp:
11 May 2012, 21:20:17 (13 years ago)
Author:
hschwarz
Message:

updated trunk (move to HM6.1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibCommon/TComPicYuv.h

    r5 r56  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license.
     4 * granted under this license. 
    55 *
    6  * Copyright (c) 2010-2011, ISO/IEC
     6 * Copyright (c) 2010-2012, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    1515 *    this list of conditions and the following disclaimer in the documentation
    1616 *    and/or other materials provided with the distribution.
    17  *  * Neither the name of the ISO/IEC nor the names of its contributors may
     17 *  * Neither the name of the ITU/ISO/IEC nor the names of its contributors may
    1818 *    be used to endorse or promote products derived from this software without
    1919 *    specific prior written permission.
     
    3232 */
    3333
    34 
    35 
    3634/** \file     TComPicYuv.h
    3735    \brief    picture YUV buffer class (header)
     
    4341#include <stdio.h>
    4442#include "CommonDef.h"
     43#include "TComRom.h"
     44
     45//! \ingroup TLibCommon
     46//! \{
    4547
    4648// ====================================================================================================================
     
    7981  Int   m_iNumCuInWidth;
    8082 
     83  Int*  m_cuOffsetY;
     84  Int*  m_cuOffsetC;
     85  Int*  m_buOffsetY;
     86  Int*  m_buOffsetC;
     87 
    8188  Int   m_iLumaMarginX;
    8289  Int   m_iLumaMarginY;
     
    110117  Int   getWidth    ()     { return  m_iPicWidth;    }
    111118  Int   getHeight   ()     { return  m_iPicHeight;   }
    112 
     119 
    113120  UInt  getMaxCuWidth ()   { return  (UInt)m_iCuWidth;   }
    114121  UInt  getMaxCuHeight()   { return  (UInt)m_iCuHeight;  }
    115122  UInt  getMaxCuDepth ()   { return  m_uiMaxCuDepth;     }
    116  
     123
    117124  Int   getStride   ()     { return (m_iPicWidth     ) + (m_iLumaMarginX  <<1); }
    118125  Int   getCStride  ()     { return (m_iPicWidth >> 1) + (m_iChromaMarginX<<1); }
     
    138145 
    139146  //  Access starting position of original picture for specific coding unit (CU) or partition unit (PU)
    140   Pel*  getLumaAddr ( Int iCuAddr );
    141   Pel*  getCbAddr   ( Int iCuAddr );
    142   Pel*  getCrAddr   ( Int iCuAddr );
    143   Pel*  getLumaAddr ( Int iCuAddr, Int uiAbsZorderIdx );
    144   Pel*  getCbAddr   ( Int iCuAddr, Int uiAbsZorderIdx );
    145   Pel*  getCrAddr   ( Int iCuAddr, Int uiAbsZorderIdx );
     147  Pel*  getLumaAddr ( Int iCuAddr ) { return m_piPicOrgY + m_cuOffsetY[ iCuAddr ]; }
     148  Pel*  getCbAddr   ( Int iCuAddr ) { return m_piPicOrgU + m_cuOffsetC[ iCuAddr ]; }
     149  Pel*  getCrAddr   ( Int iCuAddr ) { return m_piPicOrgV + m_cuOffsetC[ iCuAddr ]; }
     150  Pel*  getLumaAddr ( Int iCuAddr, Int uiAbsZorderIdx ) { return m_piPicOrgY + m_cuOffsetY[iCuAddr] + m_buOffsetY[g_auiZscanToRaster[uiAbsZorderIdx]]; }
     151  Pel*  getCbAddr   ( Int iCuAddr, Int uiAbsZorderIdx ) { return m_piPicOrgU + m_cuOffsetC[iCuAddr] + m_buOffsetC[g_auiZscanToRaster[uiAbsZorderIdx]]; }
     152  Pel*  getCrAddr   ( Int iCuAddr, Int uiAbsZorderIdx ) { return m_piPicOrgV + m_cuOffsetC[iCuAddr] + m_buOffsetC[g_auiZscanToRaster[uiAbsZorderIdx]]; }
    146153 
     154
    147155  // ------------------------------------------------------------------------------------------------
    148156  //  Miscellaneous
    149157  // ------------------------------------------------------------------------------------------------
    150 
     158 
    151159  // sample to block and block to sample conversion
    152160  Void  getTopLeftSamplePos( Int iCuAddr, Int iAbsZorderIdx, Int& riX, Int& riY );
    153161  Void  getCUAddrAndPartIdx( Int iX, Int iY, Int& riCuAddr, Int& riAbsZorderIdx );
    154  
     162
     163
    155164  //  Copy function to picture
    156165  Void  copyToPic       ( TComPicYuv*  pcPicYuvDst );
     
    179188void calcMD5(TComPicYuv& pic, unsigned char digest[16]);
    180189
     190//! \}
     191
    181192#endif // __TCOMPICYUV__
    182 
Note: See TracChangeset for help on using the changeset viewer.