Changeset 1313 in 3DVCSoftware for trunk/source/App/TAppEncoder/TAppEncTop.h


Ignore:
Timestamp:
13 Aug 2015, 17:38:13 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev1@1312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/App/TAppEncoder/TAppEncTop.h

    r1196 r1313  
    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-2015, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    4646#include "TLibCommon/AccessUnit.h"
    4747#include "TAppEncCfg.h"
    48 #if H_3D
     48#if NH_3D
    4949#include "../../Lib/TLibRenderer/TRenTop.h"
    5050#endif
     
    6565private:
    6666  // class interface
    67 #if H_MV
     67#if NH_MV
    6868  std::vector<TEncTop*>      m_acTEncTopList ;              ///< encoder class per layer
    6969  std::vector<TVideoIOYuv*>  m_acTVideoIOYuvInputFileList;  ///< input YUV file
    7070  std::vector<TVideoIOYuv*>  m_acTVideoIOYuvReconFileList;  ///< output reconstruction file
    7171 
    72   std::vector<TComList<TComPicYuv*>*>  m_picYuvRec;         ///< list of reconstruction YUV files
     72  std::vector<TComList<TComPicYuv*>*>  m_cListPicYuvRec;         ///< list of reconstruction YUV files
    7373
    7474  std::vector<Int>           m_frameRcvd;                   ///< number of received frames
    7575
    7676  TComPicLists               m_ivPicLists;                  ///< picture buffers of encoder instances
    77 #if H_MV
     77#if NH_MV
    7878  TComVPS*                   m_vps;                         ///< vps
    7979#else
     
    8484  TVideoIOYuv                m_cTVideoIOYuvInputFile;       ///< input YUV file
    8585  TVideoIOYuv                m_cTVideoIOYuvReconFile;       ///< output reconstruction file
    86  
     86
    8787  TComList<TComPicYuv*>      m_cListPicYuvRec;              ///< list of reconstruction YUV files
    88  
     88
    8989  Int                        m_iFrameRcvd;                  ///< number of received frames
    9090#endif
    9191
    92 #if H_3D
    93   TComDLT                    m_dlt;                         ///< dlt
     92#if NH_3D
    9493  TComSps3dExtension         m_sps3dExtension;              ///< Currently all layers share the same sps 3D Extension 
    9594#endif
     
    9796  UInt m_essentialBytes;
    9897  UInt m_totalBytes;
    99 #if H_3D_VSO
     98#if NH_3D_VSO
    10099  TRenTop                     m_cRendererTop;
    101100  TRenModel                   m_cRendererModel;   
     
    107106  Void  xInitLib          (Bool isFieldCoding);             ///< initialize encoder class
    108107  Void  xDestroyLib       ();                               ///< destroy encoder class
    109  
     108
    110109  /// obtain required buffers
    111 #if H_MV
     110#if NH_MV
    112111  Void  xGetBuffer(TComPicYuv*& rpcPicYuvRec, UInt layer);
    113112#else
     
    117116  /// delete allocated buffers
    118117  Void  xDeleteBuffer     ();
    119  
     118
    120119  // file I/O
    121 #if H_MV
     120#if NH_MV
    122121  Void xWriteOutput(std::ostream& bitstreamFile, Int iNumEncoded, std::list<AccessUnit>& accessUnits, UInt layerId); ///< write bitstream to file
    123122#else
    124123  Void xWriteOutput(std::ostream& bitstreamFile, Int iNumEncoded, const std::list<AccessUnit>& accessUnits); ///< write bitstream to file
    125124#endif
    126   void rateStatsAccum(const AccessUnit& au, const std::vector<UInt>& stats);
    127   void printRateSummary();
     125  Void rateStatsAccum(const AccessUnit& au, const std::vector<UInt>& stats);
     126  Void printRateSummary();
     127  Void printChromaFormat();
    128128
    129 #if H_MV
     129#if NH_MV
     130  Void xSetTimingInfo             ( TComVPS& vps );
     131  Void xSetHrdParameters          ( TComVPS& vps );
    130132  Void xSetLayerIds               ( TComVPS& vps ); 
    131133  Void xSetDimensionIdAndLength   ( TComVPS& vps );
     
    134136  Void xSetProfileTierLevel       ( TComVPS& vps );
    135137
    136   Void xSetProfileTierLevel( TComVPS& vps, Int profileTierLevelIdx, Int subLayer,                             
    137                              Profile::Name profile, Level::Name level, Level::Tier tier,
    138                              Bool progressiveSourceFlag, Bool interlacedSourceFlag,
    139                              Bool nonPackedConstraintFlag, Bool frameOnlyConstraintFlag,
    140                              Bool inbldFlag );
     138  Void xSetProfileTierLevel       ( TComVPS& vps, Int profileTierLevelIdx, Int subLayer,                             
     139                                    Profile::Name profile, Level::Name level, Level::Tier tier,
     140                                    Bool progressiveSourceFlag, Bool interlacedSourceFlag,
     141                                    Bool nonPackedConstraintFlag, Bool frameOnlyConstraintFlag,
     142                                    Bool inbldFlag );
    141143  Void xSetRepFormat              ( TComVPS& vps );
    142144  Void xSetDpbSize                ( TComVPS& vps );
    143145  Void xSetVPSVUI                 ( TComVPS& vps );
    144 #if H_3D
     146#if NH_3D
    145147  Void xSetCamPara                ( TComVPS& vps );
    146148#endif
     
    149151  Bool xLayerIdInTargetEncLayerIdList( Int nuhLayerId );
    150152#endif
    151 #if H_3D
    152   Void xDeriveDltArray( TComVPS& vps, TComDLT& dlt );
     153#if NH_3D_DLT
     154  Void xDeriveDltArray( TComVPS& vps, TComDLT* dlt );
     155  Void xAnalyzeInputBaseDepth(UInt layer, UInt uiNumFrames, TComVPS* vps, TComDLT* dlt);
    153156#endif
    154 #if H_3D_DIM_DLT
    155   Void  xAnalyzeInputBaseDepth(UInt layer, UInt uiNumFrames, TComVPS* vps, TComDLT* dlt);
    156 #endif
     157
    157158public:
    158159  TAppEncTop();
    159160  virtual ~TAppEncTop();
    160  
     161
    161162  Void        encode      ();                               ///< main encoding function
    162 #if H_MV
     163#if NH_MV
    163164  TEncTop*    getTEncTop( UInt layer ) { return  m_acTEncTopList[layer]; }  ///< return pointer to encoder class for specific layer
    164165#else
Note: See TracChangeset for help on using the changeset viewer.