source: SHVCSoftware/trunk/source/Lib/TLibCommon/SEI.h @ 1164

Last change on this file since 1164 was 906, checked in by seregin, 10 years ago

merge SHM-dev

  • Property svn:eol-style set to native
File size: 18.5 KB
Line 
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-2014, ITU/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 ITU/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
34#pragma once
35#include <list>
36#include <vector>
37#include <cstring>
38
39#if Q0078_ADD_LAYER_SETS
40#include "TLibCommon/NAL.h"
41#endif
42
43//! \ingroup TLibCommon
44//! \{
45class TComSPS;
46#if O0164_MULTI_LAYER_HRD
47class TComHRD;
48#endif
49
50/**
51 * Abstract class representing an SEI message with lightweight RTTI.
52 */
53class SEI
54{
55public:
56  enum PayloadType
57  {
58    BUFFERING_PERIOD                     = 0,
59    PICTURE_TIMING                       = 1,
60    PAN_SCAN_RECT                        = 2,
61    FILLER_PAYLOAD                       = 3,
62    USER_DATA_REGISTERED_ITU_T_T35       = 4,
63    USER_DATA_UNREGISTERED               = 5,
64    RECOVERY_POINT                       = 6,
65    SCENE_INFO                           = 9,
66    FULL_FRAME_SNAPSHOT                  = 15,
67    PROGRESSIVE_REFINEMENT_SEGMENT_START = 16,
68    PROGRESSIVE_REFINEMENT_SEGMENT_END   = 17,
69    FILM_GRAIN_CHARACTERISTICS           = 19,
70    POST_FILTER_HINT                     = 22,
71    TONE_MAPPING_INFO                    = 23,
72#if P0050_KNEE_FUNCTION_SEI
73    KNEE_FUNCTION_INFO                   = 24,
74#endif
75    FRAME_PACKING                        = 45,
76    DISPLAY_ORIENTATION                  = 47,
77    SOP_DESCRIPTION                      = 128,
78    ACTIVE_PARAMETER_SETS                = 129,
79    DECODING_UNIT_INFO                   = 130,
80    TEMPORAL_LEVEL0_INDEX                = 131,
81    DECODED_PICTURE_HASH                 = 132,
82    SCALABLE_NESTING                     = 133,
83    REGION_REFRESH_INFO                  = 134,
84#if LAYERS_NOT_PRESENT_SEI
85    LAYERS_NOT_PRESENT                   = 137,
86#endif
87#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
88    INTER_LAYER_CONSTRAINED_TILE_SETS    = 138,
89#endif
90#if SUB_BITSTREAM_PROPERTY_SEI
91    SUB_BITSTREAM_PROPERTY               = 139,    // Final PayloadType to be defined after finalization
92#endif
93#if O0164_MULTI_LAYER_HRD
94    BSP_NESTING                          = 140,
95    BSP_INITIAL_ARRIVAL_TIME             = 141,
96#if !REMOVE_BSP_HRD_SEI
97    BSP_HRD                              = 142,
98#endif
99#endif
100#if Q0074_COLOUR_REMAPPING_SEI
101    COLOUR_REMAPPING_INFO                = 143,
102#endif
103#if Q0078_ADD_LAYER_SETS
104    OUTPUT_LAYER_SET_NESTING             = 144,
105    VPS_REWRITING                        = 145,
106#endif
107#if Q0189_TMVP_CONSTRAINTS
108    TMVP_CONSTRAINTS                     = 146,
109#endif
110#if Q0247_FRAME_FIELD_INFO
111    FRAME_FIELD_INFO                     = 147,
112#endif
113  };
114 
115  SEI() {}
116  virtual ~SEI() {}
117 
118  virtual PayloadType payloadType() const = 0;
119};
120
121class SEIuserDataUnregistered : public SEI
122{
123public:
124  PayloadType payloadType() const { return USER_DATA_UNREGISTERED; }
125
126  SEIuserDataUnregistered()
127    : userData(0)
128    {}
129
130  virtual ~SEIuserDataUnregistered()
131  {
132    delete userData;
133  }
134
135  UChar uuid_iso_iec_11578[16];
136  UInt userDataLength;
137  UChar *userData;
138};
139
140class SEIDecodedPictureHash : public SEI
141{
142public:
143  PayloadType payloadType() const { return DECODED_PICTURE_HASH; }
144
145  SEIDecodedPictureHash() {}
146  virtual ~SEIDecodedPictureHash() {}
147 
148  enum Method
149  {
150    MD5,
151    CRC,
152    CHECKSUM,
153    RESERVED,
154  } method;
155
156  UChar digest[3][16];
157};
158
159class SEIActiveParameterSets : public SEI
160{
161public:
162  PayloadType payloadType() const { return ACTIVE_PARAMETER_SETS; }
163
164  SEIActiveParameterSets() 
165    : activeVPSId            (0)
166    , m_selfContainedCvsFlag (false)
167    , m_noParameterSetUpdateFlag (false)
168    , numSpsIdsMinus1        (0)
169  {}
170  virtual ~SEIActiveParameterSets() {}
171
172  Int activeVPSId; 
173  Bool m_selfContainedCvsFlag;
174  Bool m_noParameterSetUpdateFlag;
175  Int numSpsIdsMinus1;
176  std::vector<Int> activeSeqParameterSetId; 
177#if R0247_SEI_ACTIVE
178  std::vector<Int> layerSpsIdx; 
179#endif
180};
181
182class SEIBufferingPeriod : public SEI
183{
184public:
185  PayloadType payloadType() const { return BUFFERING_PERIOD; }
186
187  SEIBufferingPeriod()
188  : m_bpSeqParameterSetId (0)
189  , m_rapCpbParamsPresentFlag (false)
190  , m_cpbDelayOffset      (0)
191  , m_dpbDelayOffset      (0)
192#if P0138_USE_ALT_CPB_PARAMS_FLAG
193  , m_useAltCpbParamsFlagPresent(false)
194  , m_useAltCpbParamsFlag (false)
195#endif
196  {
197    ::memset(m_initialCpbRemovalDelay, 0, sizeof(m_initialCpbRemovalDelay));
198    ::memset(m_initialCpbRemovalDelayOffset, 0, sizeof(m_initialCpbRemovalDelayOffset));
199    ::memset(m_initialAltCpbRemovalDelay, 0, sizeof(m_initialAltCpbRemovalDelay));
200    ::memset(m_initialAltCpbRemovalDelayOffset, 0, sizeof(m_initialAltCpbRemovalDelayOffset));
201  }
202  virtual ~SEIBufferingPeriod() {}
203
204  UInt m_bpSeqParameterSetId;
205  Bool m_rapCpbParamsPresentFlag;
206  UInt m_cpbDelayOffset;
207  UInt m_dpbDelayOffset;
208  UInt m_initialCpbRemovalDelay         [MAX_CPB_CNT][2];
209  UInt m_initialCpbRemovalDelayOffset   [MAX_CPB_CNT][2];
210  UInt m_initialAltCpbRemovalDelay      [MAX_CPB_CNT][2];
211  UInt m_initialAltCpbRemovalDelayOffset[MAX_CPB_CNT][2];
212  Bool m_concatenationFlag;
213  UInt m_auCpbRemovalDelayDelta;
214#if P0138_USE_ALT_CPB_PARAMS_FLAG
215  Bool m_useAltCpbParamsFlagPresent;
216  Bool m_useAltCpbParamsFlag;
217#endif
218};
219class SEIPictureTiming : public SEI
220{
221public:
222  PayloadType payloadType() const { return PICTURE_TIMING; }
223
224  SEIPictureTiming()
225  : m_picStruct               (0)
226  , m_sourceScanType          (0)
227  , m_duplicateFlag           (false)
228  , m_picDpbOutputDuDelay     (0)
229  , m_numNalusInDuMinus1      (NULL)
230  , m_duCpbRemovalDelayMinus1 (NULL)
231  {}
232  virtual ~SEIPictureTiming()
233  {
234    if( m_numNalusInDuMinus1 != NULL )
235    {
236      delete m_numNalusInDuMinus1;
237    }
238    if( m_duCpbRemovalDelayMinus1  != NULL )
239    {
240      delete m_duCpbRemovalDelayMinus1;
241    }
242  }
243
244  UInt  m_picStruct;
245  UInt  m_sourceScanType;
246  Bool  m_duplicateFlag;
247
248  UInt  m_auCpbRemovalDelay;
249  UInt  m_picDpbOutputDelay;
250  UInt  m_picDpbOutputDuDelay;
251  UInt  m_numDecodingUnitsMinus1;
252  Bool  m_duCommonCpbRemovalDelayFlag;
253  UInt  m_duCommonCpbRemovalDelayMinus1;
254  UInt* m_numNalusInDuMinus1;
255  UInt* m_duCpbRemovalDelayMinus1;
256};
257
258class SEIDecodingUnitInfo : public SEI
259{
260public:
261  PayloadType payloadType() const { return DECODING_UNIT_INFO; }
262
263  SEIDecodingUnitInfo()
264    : m_decodingUnitIdx(0)
265    , m_duSptCpbRemovalDelay(0)
266    , m_dpbOutputDuDelayPresentFlag(false)
267    , m_picSptDpbOutputDuDelay(0)
268  {}
269  virtual ~SEIDecodingUnitInfo() {}
270  Int m_decodingUnitIdx;
271  Int m_duSptCpbRemovalDelay;
272  Bool m_dpbOutputDuDelayPresentFlag;
273  Int m_picSptDpbOutputDuDelay;
274};
275
276class SEIRecoveryPoint : public SEI
277{
278public:
279  PayloadType payloadType() const { return RECOVERY_POINT; }
280
281  SEIRecoveryPoint() {}
282  virtual ~SEIRecoveryPoint() {}
283
284  Int  m_recoveryPocCnt;
285  Bool m_exactMatchingFlag;
286  Bool m_brokenLinkFlag;
287};
288class SEIFramePacking : public SEI
289{
290public:
291  PayloadType payloadType() const { return FRAME_PACKING; }
292
293  SEIFramePacking() {}
294  virtual ~SEIFramePacking() {}
295
296  Int  m_arrangementId;
297  Bool m_arrangementCancelFlag;
298  Int  m_arrangementType;
299  Bool m_quincunxSamplingFlag;
300  Int  m_contentInterpretationType;
301  Bool m_spatialFlippingFlag;
302  Bool m_frame0FlippedFlag;
303  Bool m_fieldViewsFlag;
304  Bool m_currentFrameIsFrame0Flag;
305  Bool m_frame0SelfContainedFlag;
306  Bool m_frame1SelfContainedFlag;
307  Int  m_frame0GridPositionX;
308  Int  m_frame0GridPositionY;
309  Int  m_frame1GridPositionX;
310  Int  m_frame1GridPositionY;
311  Int  m_arrangementReservedByte;
312  Bool m_arrangementPersistenceFlag;
313  Bool m_upsampledAspectRatio;
314};
315
316class SEIDisplayOrientation : public SEI
317{
318public:
319  PayloadType payloadType() const { return DISPLAY_ORIENTATION; }
320
321  SEIDisplayOrientation()
322    : cancelFlag(true)
323    , persistenceFlag(0)
324    , extensionFlag(false)
325    {}
326  virtual ~SEIDisplayOrientation() {}
327
328  Bool cancelFlag;
329  Bool horFlip;
330  Bool verFlip;
331
332  UInt anticlockwiseRotation;
333  Bool persistenceFlag;
334  Bool extensionFlag;
335};
336
337class SEITemporalLevel0Index : public SEI
338{
339public:
340  PayloadType payloadType() const { return TEMPORAL_LEVEL0_INDEX; }
341
342  SEITemporalLevel0Index()
343    : tl0Idx(0)
344    , rapIdx(0)
345    {}
346  virtual ~SEITemporalLevel0Index() {}
347
348  UInt tl0Idx;
349  UInt rapIdx;
350};
351
352class SEIGradualDecodingRefreshInfo : public SEI
353{
354public:
355  PayloadType payloadType() const { return REGION_REFRESH_INFO; }
356
357  SEIGradualDecodingRefreshInfo()
358    : m_gdrForegroundFlag(0)
359  {}
360  virtual ~SEIGradualDecodingRefreshInfo() {}
361
362  Bool m_gdrForegroundFlag;
363};
364
365#if LAYERS_NOT_PRESENT_SEI
366class SEILayersNotPresent : public SEI
367{
368public:
369  PayloadType payloadType() const { return LAYERS_NOT_PRESENT; }
370
371  SEILayersNotPresent() {}
372  virtual ~SEILayersNotPresent() {}
373
374  UInt m_activeVpsId;
375  UInt m_vpsMaxLayers;
376  Bool m_layerNotPresentFlag[MAX_LAYERS];
377};
378#endif
379
380class SEISOPDescription : public SEI
381{
382public:
383  PayloadType payloadType() const { return SOP_DESCRIPTION; }
384
385  SEISOPDescription() {}
386  virtual ~SEISOPDescription() {}
387
388  UInt m_sopSeqParameterSetId;
389  UInt m_numPicsInSopMinus1;
390
391  UInt m_sopDescVclNaluType[MAX_NUM_PICS_IN_SOP];
392  UInt m_sopDescTemporalId[MAX_NUM_PICS_IN_SOP];
393  UInt m_sopDescStRpsIdx[MAX_NUM_PICS_IN_SOP];
394  Int m_sopDescPocDelta[MAX_NUM_PICS_IN_SOP];
395};
396
397class SEIToneMappingInfo : public SEI
398{
399public:
400  PayloadType payloadType() const { return TONE_MAPPING_INFO; }
401  SEIToneMappingInfo() {}
402  virtual ~SEIToneMappingInfo() {}
403
404  Int    m_toneMapId;
405  Bool   m_toneMapCancelFlag;
406  Bool   m_toneMapPersistenceFlag;
407  Int    m_codedDataBitDepth;
408  Int    m_targetBitDepth;
409  Int    m_modelId;
410  Int    m_minValue;
411  Int    m_maxValue;
412  Int    m_sigmoidMidpoint;
413  Int    m_sigmoidWidth;
414  std::vector<Int> m_startOfCodedInterval;
415  Int    m_numPivots;
416  std::vector<Int> m_codedPivotValue;
417  std::vector<Int> m_targetPivotValue;
418  Int    m_cameraIsoSpeedIdc;
419  Int    m_cameraIsoSpeedValue;
420  Int    m_exposureIndexIdc;
421  Int    m_exposureIndexValue;
422  Int    m_exposureCompensationValueSignFlag;
423  Int    m_exposureCompensationValueNumerator;
424  Int    m_exposureCompensationValueDenomIdc;
425  Int    m_refScreenLuminanceWhite;
426  Int    m_extendedRangeWhiteLevel;
427  Int    m_nominalBlackLevelLumaCodeValue;
428  Int    m_nominalWhiteLevelLumaCodeValue;
429  Int    m_extendedWhiteLevelLumaCodeValue;
430};
431#if P0050_KNEE_FUNCTION_SEI
432class SEIKneeFunctionInfo : public SEI
433{
434public:
435  PayloadType payloadType() const { return KNEE_FUNCTION_INFO; }
436  SEIKneeFunctionInfo() {}
437  virtual ~SEIKneeFunctionInfo() {}
438
439  Int   m_kneeId;
440  Bool  m_kneeCancelFlag;
441  Bool  m_kneePersistenceFlag;
442  Bool  m_kneeMappingFlag;
443  Int   m_kneeInputDrange;
444  Int   m_kneeInputDispLuminance;
445  Int   m_kneeOutputDrange;
446  Int   m_kneeOutputDispLuminance;
447  Int   m_kneeNumKneePointsMinus1;
448  std::vector<Int> m_kneeInputKneePoint;
449  std::vector<Int> m_kneeOutputKneePoint;
450};
451#endif
452#if Q0074_COLOUR_REMAPPING_SEI
453class SEIColourRemappingInfo : public SEI
454{
455public:
456  PayloadType payloadType() const { return COLOUR_REMAPPING_INFO; }
457  SEIColourRemappingInfo() {}
458  ~SEIColourRemappingInfo() {}
459 
460  Int   m_colourRemapId;
461  Bool  m_colourRemapCancelFlag;
462  Bool  m_colourRemapPersistenceFlag;
463  Bool  m_colourRemapVideoSignalInfoPresentFlag;
464  Bool  m_colourRemapFullRangeFlag;
465  Int   m_colourRemapPrimaries;
466  Int   m_colourRemapTransferFunction;
467  Int   m_colourRemapMatrixCoefficients;
468  Int   m_colourRemapInputBitDepth;
469  Int   m_colourRemapBitDepth;
470  Int   m_preLutNumValMinus1[3];
471  std::vector<Int> m_preLutCodedValue[3];
472  std::vector<Int> m_preLutTargetValue[3];
473  Bool  m_colourRemapMatrixPresentFlag;
474  Int   m_log2MatrixDenom;
475  Int   m_colourRemapCoeffs[3][3];
476  Int   m_postLutNumValMinus1[3];
477  std::vector<Int> m_postLutCodedValue[3];
478  std::vector<Int> m_postLutTargetValue[3];
479};
480#endif
481
482#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
483class SEIInterLayerConstrainedTileSets : public SEI
484{
485public:
486  PayloadType payloadType() const { return INTER_LAYER_CONSTRAINED_TILE_SETS; }
487
488  SEIInterLayerConstrainedTileSets() {}
489  virtual ~SEIInterLayerConstrainedTileSets() {}
490
491  Bool m_ilAllTilesExactSampleValueMatchFlag;
492  Bool m_ilOneTilePerTileSetFlag;
493  UInt m_ilNumSetsInMessageMinus1;
494  Bool m_skippedTileSetPresentFlag;
495  UInt m_ilctsId[256];
496  UInt m_ilNumTileRectsInSetMinus1[256];
497  UInt m_ilTopLeftTileIndex[256][440];
498  UInt m_ilBottomRightTileIndex[256][440];
499  UInt m_ilcIdc[256];
500  Bool m_ilExactSampleValueMatchFlag[256];
501  UInt m_allTilesIlcIdc;
502};
503#endif
504
505#if SUB_BITSTREAM_PROPERTY_SEI
506class SEISubBitstreamProperty : public SEI
507{
508public:
509  PayloadType payloadType() const { return SUB_BITSTREAM_PROPERTY; }
510
511  SEISubBitstreamProperty();
512  virtual ~SEISubBitstreamProperty() {}
513
514  Int  m_activeVpsId;
515  Int  m_numAdditionalSubStreams;
516  Int  m_subBitstreamMode       [MAX_SUB_STREAMS];
517  Int  m_outputLayerSetIdxToVps [MAX_SUB_STREAMS];
518  Int  m_highestSublayerId      [MAX_SUB_STREAMS];
519  Int  m_avgBitRate             [MAX_SUB_STREAMS];
520  Int  m_maxBitRate             [MAX_SUB_STREAMS];
521};
522#endif
523
524#if Q0189_TMVP_CONSTRAINTS
525class SEITMVPConstrains : public SEI
526{
527public:
528  PayloadType payloadType() const { return TMVP_CONSTRAINTS; }
529
530  SEITMVPConstrains()
531    : prev_pics_not_used_flag(0),no_intra_layer_col_pic_flag(0)
532    {}
533
534  virtual ~SEITMVPConstrains()
535  {
536  }
537
538  UInt prev_pics_not_used_flag;
539  UInt no_intra_layer_col_pic_flag;
540};
541#endif
542
543#if Q0247_FRAME_FIELD_INFO
544class SEIFrameFieldInfo: public SEI
545{
546public:
547  PayloadType payloadType() const { return FRAME_FIELD_INFO; }
548
549  SEIFrameFieldInfo()
550    : m_ffinfo_picStruct(0),m_ffinfo_sourceScanType(0), m_ffinfo_duplicateFlag(false)
551    {}
552
553  virtual ~SEIFrameFieldInfo()
554  {
555  }
556
557  UInt  m_ffinfo_picStruct;
558  UInt  m_ffinfo_sourceScanType;
559  Bool  m_ffinfo_duplicateFlag;
560};
561
562#endif
563
564typedef std::list<SEI*> SEIMessages;
565
566/// output a selection of SEI messages by payload type. Ownership stays in original message list.
567SEIMessages getSeisByType(SEIMessages &seiList, SEI::PayloadType seiType);
568
569/// remove a selection of SEI messages by payload type from the original list and return them in a new list.
570SEIMessages extractSeisByType(SEIMessages &seiList, SEI::PayloadType seiType);
571
572/// delete list of SEI messages (freeing the referenced objects)
573Void deleteSEIs (SEIMessages &seiList);
574
575#if O0164_MULTI_LAYER_HRD
576
577class SEIBspNesting : public SEI
578{
579public:
580  PayloadType payloadType() const { return BSP_NESTING; }
581
582  SEIBspNesting() {}
583  virtual ~SEIBspNesting()
584  {
585    if (!m_callerOwnsSEIs)
586    {
587      deleteSEIs(m_nestedSEIs);
588    }
589  }
590
591  Int  m_bspIdx;
592  Bool  m_callerOwnsSEIs;
593  SEIMessages m_nestedSEIs;
594#if VPS_VUI_BSP_HRD_PARAMS
595  Int  m_seiPartitioningSchemeIdx;
596  Int  m_seiOlsIdx;
597#endif
598};
599
600class SEIBspInitialArrivalTime : public SEI
601{
602public:
603  PayloadType payloadType() const { return BSP_INITIAL_ARRIVAL_TIME; }
604
605  SEIBspInitialArrivalTime () {}
606  virtual ~SEIBspInitialArrivalTime () {}
607
608  UInt m_nalInitialArrivalDelay[256];
609  UInt m_vclInitialArrivalDelay[256];
610};
611
612#if !REMOVE_BSP_HRD_SEI
613class SEIBspHrd : public SEI
614{
615public:
616  PayloadType payloadType() const { return BSP_HRD; }
617
618  SEIBspHrd () {}
619  virtual ~SEIBspHrd () {}
620
621  UInt m_seiNumBspHrdParametersMinus1;
622  Bool m_seiBspCprmsPresentFlag[MAX_VPS_LAYER_SETS_PLUS1];
623  UInt m_seiNumBitstreamPartitionsMinus1[MAX_VPS_LAYER_SETS_PLUS1];
624  Bool m_seiLayerInBspFlag[MAX_VPS_LAYER_SETS_PLUS1][8][MAX_LAYERS];
625  UInt m_seiNumBspSchedCombinationsMinus1[MAX_VPS_LAYER_SETS_PLUS1];
626  UInt m_seiBspCombHrdIdx[MAX_VPS_LAYER_SETS_PLUS1][16][16];
627  UInt m_seiBspCombScheddx[MAX_VPS_LAYER_SETS_PLUS1][16][16];
628  UInt m_vpsMaxLayers;
629  Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
630
631  TComHRD *hrd;
632};
633#endif
634
635#endif
636
637class SEIScalableNesting : public SEI
638{
639public:
640  PayloadType payloadType() const { return SCALABLE_NESTING; }
641
642  SEIScalableNesting() {}
643  virtual ~SEIScalableNesting()
644  {
645    if (!m_callerOwnsSEIs)
646    {
647      deleteSEIs(m_nestedSEIs);
648    }
649  }
650
651  Bool  m_bitStreamSubsetFlag;
652  Bool  m_nestingOpFlag;
653  Bool  m_defaultOpFlag;                             //value valid if m_nestingOpFlag != 0
654  UInt  m_nestingNumOpsMinus1;                       // -"-
655  UInt  m_nestingMaxTemporalIdPlus1[MAX_TLAYER];     // -"-
656  UInt  m_nestingOpIdx[MAX_NESTING_NUM_OPS];         // -"-
657
658  Bool  m_allLayersFlag;                             //value valid if m_nestingOpFlag == 0
659  UInt  m_nestingNoOpMaxTemporalIdPlus1;             //value valid if m_nestingOpFlag == 0 and m_allLayersFlag == 0
660  UInt  m_nestingNumLayersMinus1;                    //value valid if m_nestingOpFlag == 0 and m_allLayersFlag == 0
661  UChar m_nestingLayerId[MAX_NESTING_NUM_LAYER];     //value valid if m_nestingOpFlag == 0 and m_allLayersFlag == 0. This can e.g. be a static array of 64 unsigned char values
662
663  Bool  m_callerOwnsSEIs;
664  SEIMessages m_nestedSEIs;
665};
666
667#if Q0078_ADD_LAYER_SETS
668class SEIOutputLayerSetNesting : public SEI
669{
670public:
671  PayloadType payloadType() const { return OUTPUT_LAYER_SET_NESTING; }
672
673  SEIOutputLayerSetNesting() {}
674  virtual ~SEIOutputLayerSetNesting()
675  {
676    if (!m_callerOwnsSEIs)
677    {
678      deleteSEIs(m_nestedSEIs);
679    }
680  }
681
682  Bool m_olsFlag;
683  UInt m_numOlsIndicesMinus1;
684  UInt m_olsIdx[1024];
685  Bool  m_callerOwnsSEIs;
686  SEIMessages m_nestedSEIs;
687};
688
689class SEIVPSRewriting : public SEI
690{
691public:
692  PayloadType payloadType() const { return VPS_REWRITING; }
693
694  SEIVPSRewriting() {}
695  virtual ~SEIVPSRewriting() {}
696
697  NALUnit* nalu;
698};
699#endif
700
701//! \}
Note: See TracBrowser for help on using the repository browser.