Changeset 713 in SHVCSoftware for trunk/source/Lib/TLibDecoder/TDecTop.h
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/SHM-6-dev (added) merged: 651-712
- Property svn:mergeinfo changed
-
trunk/source
- Property svn:mergeinfo changed
/branches/SHM-6-dev/source (added) merged: 652-678,680,683-684,686-691,693-700,702-705,707-711
- Property svn:mergeinfo changed
-
trunk/source/Lib/TLibDecoder/TDecTop.h
r644 r713 45 45 #include "TLibCommon/TComTrQuant.h" 46 46 #include "TLibCommon/SEI.h" 47 #if Q0048_CGS_3D_ASYMLUT 48 #include "TLibCommon/TCom3DAsymLUT.h" 49 #endif 47 50 48 51 #include "TDecGop.h" … … 61 64 // ==================================================================================================================== 62 65 66 #if Q0074_SEI_COLOR_MAPPING 67 class TDecColorMapping 68 { 69 Int m_colorMapId; 70 Bool m_colorMapCancelFlag; 71 Bool m_colorMapPersistenceFlag; 72 Bool m_colorMap_video_signal_type_present_flag; 73 Bool m_colorMap_video_full_range_flag; 74 Int m_colorMap_primaries; 75 Int m_colorMap_transfer_characteristics; 76 Int m_colorMap_matrix_coeffs; 77 Int m_colorMapModelId; 78 79 Int m_colour_map_coded_data_bit_depth; 80 Int m_colour_map_target_bit_depth; 81 82 Int m_num_input_pivots[3]; 83 Int* m_coded_input_pivot_value[3]; 84 Int* m_target_input_pivot_value[3]; 85 86 Bool m_matrix_flag; 87 Int m_log2_matrix_denom; 88 Int m_matrix_coef[3][3]; 89 90 Int m_num_output_pivots[3]; 91 Int* m_coded_output_pivot_value[3]; 92 Int* m_target_output_pivot_value[3]; 93 94 Bool m_lut1d_computed[3]; 95 Int* m_lut1d_input[3]; 96 Int* m_lut1d_output[3]; 97 TComPicYuv* m_pcColorMappingPic[2]; 98 99 public: 100 TDecColorMapping(); 101 ~TDecColorMapping(); 102 103 Bool getColorMappingFlag() { return(!m_colorMapCancelFlag);}; 104 105 Void setColorMapping( SEIMessages m_SEIs ); 106 Void setColorMapping( Int bitDepthY, Int bitDepthC ); 107 TComPicYuv* getColorMapping( TComPicYuv* pPicYuvRec, Int iTop=0, Int curlayerId=0 ); 108 };// END CLASS DEFINITION TDecColorMapping 109 #endif 110 63 111 /// decoder class 64 112 class TDecTop … … 79 127 // functional classes 80 128 TComPrediction m_cPrediction; 129 #if Q0048_CGS_3D_ASYMLUT 130 TCom3DAsymLUT m_c3DAsymLUTPPS; 131 TComPicYuv* m_pColorMappedPic; 132 #endif 81 133 TComTrQuant m_cTrQuant; 82 134 TDecGop m_cGopDecoder; … … 104 156 Bool m_prevSliceSkipped; 105 157 Int m_skippedPOC; 158 #if SETTING_NO_OUT_PIC_PRIOR 159 Bool m_bFirstSliceInBitstream; 160 Int m_lastPOCNoOutputPriorPics; 161 Bool m_isNoOutputPriorPics; 162 Bool m_craNoRaslOutputFlag; //value of variable NoRaslOutputFlag of the last CRA pic 163 #endif 106 164 107 165 #if SVC_EXTENSION … … 114 172 #if AVC_BASE 115 173 fstream* m_pBLReconFile; 174 #if !REPN_FORMAT_IN_VPS 116 175 Int m_iBLSourceWidth; 117 Int m_iBLSourceHeight; 176 Int m_iBLSourceHeight; 177 #endif 118 178 #endif 119 179 #if VPS_EXTN_DIRECT_REF_LAYERS … … 136 196 #endif 137 197 138 #if NO_CLRAS_OUTPUT_FLAG 198 #if NO_CLRAS_OUTPUT_FLAG 139 199 Bool m_noClrasOutputFlag; 140 200 Bool m_layerInitializedFlag; 141 201 Bool m_firstPicInLayerDecodedFlag; 142 Bool m_noOutputOfPriorPicsFlags;143 144 Bool m_bRefreshPending;145 202 #endif 146 203 #if RESOLUTION_BASED_DPB 147 Int m_subDpbIdx; // Index to the sub-DPB that the layer belongs to.148 // When new VPS is activated, this should be re-initialized to -1204 Int m_subDpbIdx; // Index to the sub-DPB that the layer belongs to. 205 // When new VPS is activated, this should be re-initialized to -1 149 206 #endif 150 207 public: 208 #if Q0074_SEI_COLOR_MAPPING 209 TDecColorMapping* m_ColorMapping; 210 #endif 211 151 212 TDecTop(); 152 213 virtual ~TDecTop(); … … 166 227 Void deletePicBuffer(); 167 228 229 230 TComSPS* getActiveSPS() { return m_parameterSetManagerDecoder.getActiveSPS(); } 231 232 168 233 Void executeLoopFilters(Int& poc, TComList<TComPic*>*& rpcListPic); 234 #if SETTING_NO_OUT_PIC_PRIOR 235 Void checkNoOutputPriorPics (TComList<TComPic*>*& rpcListPic); 236 Bool getNoOutputPriorPicsFlag () { return m_isNoOutputPriorPics; } 237 Void setNoOutputPriorPicsFlag (Bool val) { m_isNoOutputPriorPics = val; } 238 #endif 239 169 240 #if SVC_EXTENSION 170 241 #if EARLY_REF_PIC_MARKING … … 212 283 Void setBLReconFile( fstream* pFile ) { m_pBLReconFile = pFile; } 213 284 fstream* getBLReconFile() { return m_pBLReconFile; } 285 #if !REPN_FORMAT_IN_VPS 214 286 Void setBLsize( Int iWidth, Int iHeight ) { m_iBLSourceWidth = iWidth; m_iBLSourceHeight = iHeight; } 215 287 Int getBLWidth() { return m_iBLSourceWidth; } 216 288 Int getBLHeight() { return m_iBLSourceHeight; } 289 #endif 217 290 #endif 218 291 #if REPN_FORMAT_IN_VPS … … 238 311 Void setBLSyntaxFile( fstream* pFile ) { m_pBLSyntaxFile = pFile; } 239 312 fstream* getBLSyntaxFile() { return m_pBLSyntaxFile; } 240 #endif241 #if NO_OUTPUT_OF_PRIOR_PICS242 #if NO_CLRAS_OUTPUT_FLAG243 Bool getNoOutputOfPriorPicsFlags() { return m_noOutputOfPriorPicsFlags;}244 Void setNoOutputOfPriorPicsFlags(Bool x) { m_noOutputOfPriorPicsFlags = x; }245 #endif246 313 #endif 247 314 protected: … … 261 328 Void xDecodeVPS(); 262 329 Void xDecodeSPS(); 263 Void xDecodePPS(); 330 Void xDecodePPS( 331 #if Q0048_CGS_3D_ASYMLUT 332 TCom3DAsymLUT * pc3DAsymLUT 333 #endif 334 ); 264 335 Void xDecodeSEI( TComInputBitstream* bs, const NalUnitType nalUnitType ); 265 336 … … 271 342 Int getFirstPicInLayerDecodedFlag() { return m_firstPicInLayerDecodedFlag;} 272 343 Void setFirstPicInLayerDecodedFlag(Bool x) { m_firstPicInLayerDecodedFlag = x; } 273 #if !NO_OUTPUT_OF_PRIOR_PICS 274 Int getNoOutputOfPriorPicsFlags() { return m_noOutputOfPriorPicsFlags;} 275 Void setNoOutputOfPriorPicsFlags(Bool x) { m_noOutputOfPriorPicsFlags = x; } 276 #endif 344 #endif 345 #if Q0048_CGS_3D_ASYMLUT 346 Void initAsymLut(TComSlice *pcSlice); 277 347 #endif 278 348 };// END CLASS DEFINITION TDecTop
Note: See TracChangeset for help on using the changeset viewer.