Changeset 5 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComPic.h


Ignore:
Timestamp:
12 Dec 2011, 18:35:44 (13 years ago)
Author:
hhi
Message:

Clean version with cfg-files

File:
1 edited

Legend:

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

    r2 r5  
     1/* The copyright in this software is being made available under the BSD
     2 * License, included below. This software may be subject to other third party
     3 * and contributor rights, including patent rights, and no such rights are
     4 * granted under this license.
     5 *
     6 * Copyright (c) 2010-2011, ISO/IEC
     7 * All rights reserved.
     8 *
     9 * Redistribution and use in source and binary forms, with or without
     10 * modification, are permitted provided that the following conditions are met:
     11 *
     12 *  * Redistributions of source code must retain the above copyright notice,
     13 *    this list of conditions and the following disclaimer.
     14 *  * Redistributions in binary form must reproduce the above copyright notice,
     15 *    this list of conditions and the following disclaimer in the documentation
     16 *    and/or other materials provided with the distribution.
     17 *  * Neither the name of the ISO/IEC nor the names of its contributors may
     18 *    be used to endorse or promote products derived from this software without
     19 *    specific prior written permission.
     20 *
     21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
     25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
     31 * THE POSSIBILITY OF SUCH DAMAGE.
     32 */
     33
    134
    235
     
    2659private:
    2760  TComPicSym*           m_apcPicSym;              //  Symbol
    28  
     61
    2962  TComPicYuv*           m_apcPicYuv[2];           //  Texture,  0:org / 1:rec
     63#if DEPTH_MAP_GENERATION
    3064  TComPicYuv*           m_pcPredDepthMap;         //  estimated depth map
     65#endif
     66#if HHI_INTER_VIEW_MOTION_PRED
    3167  TComPicYuv*           m_pcOrgDepthMap;          //  original depth map
     68#endif
     69#if HHI_INTER_VIEW_RESIDUAL_PRED
    3270  TComPicYuv*           m_pcResidual;             //  residual buffer (coded or inter-view predicted residual)
    33  
     71#endif
     72
    3473  TComPicYuv*           m_pcPicYuvPred;           //  Prediction
    3574  TComPicYuv*           m_pcPicYuvResi;           //  Residual
     
    3978  Bool                  m_bReconstructed;
    4079  UInt                  m_uiCurrSliceIdx;         // Index of current slice
    41  
     80
    4281  SEImessages* m_SEIs; ///< Any SEI messages that have been received.  If !NULL we own the object.
    4382
    44 //  SB //GT; Why? can be accesed by getSlice()->getXXX?
    4583  SliceType             m_eSliceType;
    4684  double                m_dQP;
     
    5593  Int**                 m_aaiCodedOffset;
    5694
    57   //GT
     95#if HHI_VSO 
    5896  TComMVDRefData        m_cReferenceInfo;
    59   TComPicYuv*           m_pcUsedPelsMap;
     97#endif
     98#if HHI_INTERVIEW_SKIP
     99  TComPicYuv*           m_pcUsedPelsMap;
     100#endif
    60101
    61102
     
    63104  TComPic();
    64105  virtual ~TComPic();
    65  
     106
    66107
    67108  Void          create( Int iWidth, Int iHeight, UInt uiMaxWidth, UInt uiMaxHeight, UInt uiMaxDepth );
    68109  Void          destroy();
    69  
     110
    70111  TComPicSym*   getPicSym()           { return  m_apcPicSym;    }
    71112  TComSlice*    getSlice(Int i)       { return  m_apcPicSym->getSlice(i);  }
     
    78119#endif
    79120  TComDataCU*&  getCU( UInt uiCUAddr )  { return  m_apcPicSym->getCU( uiCUAddr ); }
    80  
    81 // SB
     121
    82122  SliceType     getSliceType()        { return m_eSliceType ;}
    83123  double        getQP()               { return m_dQP ;}
     
    86126  TComPicYuv*   getPicYuvOrg()        { return  m_apcPicYuv[0]; }
    87127  TComPicYuv*   getPicYuvRec()        { return  m_apcPicYuv[1]; }
    88  
     128
     129#if DEPTH_MAP_GENERATION
    89130  TComPicYuv*   getPredDepthMap()     { return  m_pcPredDepthMap; }
     131#endif
     132#if HHI_INTER_VIEW_MOTION_PRED
    90133  TComPicYuv*   getOrgDepthMap()      { return  m_pcOrgDepthMap; }
     134#endif
     135#if HHI_INTER_VIEW_RESIDUAL_PRED
    91136  TComPicYuv*   getResidual()         { return  m_pcResidual; }
     137#endif
     138
     139#if HHI_INTERVIEW_SKIP
    92140  TComPicYuv*   getUsedPelsMap()      { return  m_pcUsedPelsMap; }
     141#endif
    93142
    94143
     
    97146  Void          setPicYuvPred( TComPicYuv* pcPicYuv )       { m_pcPicYuvPred = pcPicYuv; }
    98147  Void          setPicYuvResi( TComPicYuv* pcPicYuv )       { m_pcPicYuvResi = pcPicYuv; }
    99 // SB
    100148  Void          setQP( double dQP )   { m_dQP = dQP; }
    101149  Void          setSliceType( SliceType eSliceType ) { m_eSliceType = eSliceType; }
     
    116164  Int**         getCodedOffset()                      { return m_aaiCodedOffset; }
    117165
    118 //GT
     166#if HHI_VSO
    119167  TComMVDRefData* getMVDReferenceInfo() { return &m_cReferenceInfo; }
    120  
     168#endif
     169
    121170  UInt          getNumCUsInFrame()      { return m_apcPicSym->getNumberOfCUsInFrame(); }
    122171  UInt          getNumPartInWidth()     { return m_apcPicSym->getNumPartInWidth();     }
     
    127176  UInt          getMinCUWidth()         { return m_apcPicSym->getMinCUWidth();         }
    128177  UInt          getMinCUHeight()        { return m_apcPicSym->getMinCUHeight();        }
    129  
     178
    130179  UInt          getParPelX(UChar uhPartIdx) { return getParPelX(uhPartIdx); }
    131180  UInt          getParPelY(UChar uhPartIdx) { return getParPelX(uhPartIdx); }
    132  
     181
    133182  Int           getStride()           { return m_apcPicYuv[1]->getStride(); }
    134183  Int           getCStride()          { return m_apcPicYuv[1]->getCStride(); }
    135  
     184
    136185  Void          setReconMark (Bool b) { m_bReconstructed = b;     }
    137186  Bool          getReconMark ()       { return m_bReconstructed;  }
    138  
     187
    139188#if AMVP_BUFFERCOMPRESS
    140   Void          compressMotion(); 
    141 #endif 
     189  Void          compressMotion();
     190#endif
    142191  UInt          getCurrSliceIdx()            { return m_uiCurrSliceIdx;                }
    143192  Void          setCurrSliceIdx(UInt i)      { m_uiCurrSliceIdx = i;                   }
     
    150199  Void          addDeblockBuffer        ();
    151200#endif
     201#if DEPTH_MAP_GENERATION
    152202  Void          addPrdDepthMapBuffer    ();
     203#endif
     204#if HHI_INTER_VIEW_MOTION_PRED
    153205  Void          addOrgDepthMapBuffer    ();
     206#endif
     207#if HHI_INTER_VIEW_RESIDUAL_PRED
    154208  Void          addResidualBuffer       ();
     209#endif
     210
     211#if HHI_INTERVIEW_SKIP
    155212  Void          addUsedPelsMapBuffer    ();
    156  
     213#endif
     214
    157215  Void          removeOriginalBuffer    ();
    158216#if PARALLEL_MERGED_DEBLK
    159217  Void          removeDeblockBuffer     ();
    160218#endif
     219#if DEPTH_MAP_GENERATION
    161220  Void          removePrdDepthMapBuffer ();
     221#endif
     222#if HHI_INTER_VIEW_MOTION_PRED
    162223  Void          removeOrgDepthMapBuffer ();
     224#endif
     225#if HHI_INTER_VIEW_RESIDUAL_PRED
    163226  Void          removeResidualBuffer    ();
     227#endif
     228#if HHI_INTERVIEW_SKIP
    164229  Void          removeUsedPelsMapBuffer ();
    165  
     230#endif
     231
    166232#if PARALLEL_MERGED_DEBLK
    167233  TComPicYuv*   getPicYuvDeblkBuf()      { return  m_pcPicYuvDeblkBuf; }
Note: See TracChangeset for help on using the changeset viewer.