Changeset 1313 in 3DVCSoftware for trunk/source/App/TAppEncoder/TAppEncTop.h
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/TAppEncoder/TAppEncTop.h
r1196 r1313 2 2 * License, included below. This software may be subject to other third party 3 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-2015, ITU/ISO/IEC6 * Copyright (c) 2010-2015, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 46 46 #include "TLibCommon/AccessUnit.h" 47 47 #include "TAppEncCfg.h" 48 #if H_3D48 #if NH_3D 49 49 #include "../../Lib/TLibRenderer/TRenTop.h" 50 50 #endif … … 65 65 private: 66 66 // class interface 67 #if H_MV67 #if NH_MV 68 68 std::vector<TEncTop*> m_acTEncTopList ; ///< encoder class per layer 69 69 std::vector<TVideoIOYuv*> m_acTVideoIOYuvInputFileList; ///< input YUV file 70 70 std::vector<TVideoIOYuv*> m_acTVideoIOYuvReconFileList; ///< output reconstruction file 71 71 72 std::vector<TComList<TComPicYuv*>*> m_ picYuvRec; ///< list of reconstruction YUV files72 std::vector<TComList<TComPicYuv*>*> m_cListPicYuvRec; ///< list of reconstruction YUV files 73 73 74 74 std::vector<Int> m_frameRcvd; ///< number of received frames 75 75 76 76 TComPicLists m_ivPicLists; ///< picture buffers of encoder instances 77 #if H_MV77 #if NH_MV 78 78 TComVPS* m_vps; ///< vps 79 79 #else … … 84 84 TVideoIOYuv m_cTVideoIOYuvInputFile; ///< input YUV file 85 85 TVideoIOYuv m_cTVideoIOYuvReconFile; ///< output reconstruction file 86 86 87 87 TComList<TComPicYuv*> m_cListPicYuvRec; ///< list of reconstruction YUV files 88 88 89 89 Int m_iFrameRcvd; ///< number of received frames 90 90 #endif 91 91 92 #if H_3D 93 TComDLT m_dlt; ///< dlt 92 #if NH_3D 94 93 TComSps3dExtension m_sps3dExtension; ///< Currently all layers share the same sps 3D Extension 95 94 #endif … … 97 96 UInt m_essentialBytes; 98 97 UInt m_totalBytes; 99 #if H_3D_VSO98 #if NH_3D_VSO 100 99 TRenTop m_cRendererTop; 101 100 TRenModel m_cRendererModel; … … 107 106 Void xInitLib (Bool isFieldCoding); ///< initialize encoder class 108 107 Void xDestroyLib (); ///< destroy encoder class 109 108 110 109 /// obtain required buffers 111 #if H_MV110 #if NH_MV 112 111 Void xGetBuffer(TComPicYuv*& rpcPicYuvRec, UInt layer); 113 112 #else … … 117 116 /// delete allocated buffers 118 117 Void xDeleteBuffer (); 119 118 120 119 // file I/O 121 #if H_MV120 #if NH_MV 122 121 Void xWriteOutput(std::ostream& bitstreamFile, Int iNumEncoded, std::list<AccessUnit>& accessUnits, UInt layerId); ///< write bitstream to file 123 122 #else 124 123 Void xWriteOutput(std::ostream& bitstreamFile, Int iNumEncoded, const std::list<AccessUnit>& accessUnits); ///< write bitstream to file 125 124 #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(); 128 128 129 #if H_MV 129 #if NH_MV 130 Void xSetTimingInfo ( TComVPS& vps ); 131 Void xSetHrdParameters ( TComVPS& vps ); 130 132 Void xSetLayerIds ( TComVPS& vps ); 131 133 Void xSetDimensionIdAndLength ( TComVPS& vps ); … … 134 136 Void xSetProfileTierLevel ( TComVPS& vps ); 135 137 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 ); 141 143 Void xSetRepFormat ( TComVPS& vps ); 142 144 Void xSetDpbSize ( TComVPS& vps ); 143 145 Void xSetVPSVUI ( TComVPS& vps ); 144 #if H_3D146 #if NH_3D 145 147 Void xSetCamPara ( TComVPS& vps ); 146 148 #endif … … 149 151 Bool xLayerIdInTargetEncLayerIdList( Int nuhLayerId ); 150 152 #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); 153 156 #endif 154 #if H_3D_DIM_DLT 155 Void xAnalyzeInputBaseDepth(UInt layer, UInt uiNumFrames, TComVPS* vps, TComDLT* dlt); 156 #endif 157 157 158 public: 158 159 TAppEncTop(); 159 160 virtual ~TAppEncTop(); 160 161 161 162 Void encode (); ///< main encoding function 162 #if H_MV163 #if NH_MV 163 164 TEncTop* getTEncTop( UInt layer ) { return m_acTEncTopList[layer]; } ///< return pointer to encoder class for specific layer 164 165 #else
Note: See TracChangeset for help on using the changeset viewer.