HEVC Test Model (HM)  HM-16.3
SEIwrite.cpp
Go to the documentation of this file.
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-2015, 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 
36 #include "TLibCommon/SEI.h"
37 #include "TLibCommon/TComSlice.h"
38 #include "TLibCommon/TComPicYuv.h"
39 #include "SEIwrite.h"
40 
43 
44 #if ENC_DEC_TRACE
46 {
47  fprintf( g_hTrace, "=========== SEI message ===========\n");
48 }
49 
51 {
52  fprintf( g_hTrace, "=========== %s SEI message ===========\n", SEI::getSEIMessageString(payloadType));
53 }
54 #endif
55 
57 {
58  switch (sei.payloadType())
59  {
61  xWriteSEIuserDataUnregistered(*static_cast<const SEIuserDataUnregistered*>(&sei));
62  break;
64  xWriteSEIActiveParameterSets(*static_cast<const SEIActiveParameterSets*>(& sei));
65  break;
67  xWriteSEIDecodingUnitInfo(*static_cast<const SEIDecodingUnitInfo*>(& sei), sps);
68  break;
70  xWriteSEIDecodedPictureHash(*static_cast<const SEIDecodedPictureHash*>(&sei));
71  break;
73  xWriteSEIBufferingPeriod(*static_cast<const SEIBufferingPeriod*>(&sei), sps);
74  break;
76  xWriteSEIPictureTiming(*static_cast<const SEIPictureTiming*>(&sei), sps);
77  break;
79  xWriteSEIRecoveryPoint(*static_cast<const SEIRecoveryPoint*>(&sei));
80  break;
81  case SEI::FRAME_PACKING:
82  xWriteSEIFramePacking(*static_cast<const SEIFramePacking*>(&sei));
83  break;
85  xWriteSEISegmentedRectFramePacking(*static_cast<const SEISegmentedRectFramePacking*>(&sei));
86  break;
88  xWriteSEIDisplayOrientation(*static_cast<const SEIDisplayOrientation*>(&sei));
89  break;
91  xWriteSEITemporalLevel0Index(*static_cast<const SEITemporalLevel0Index*>(&sei));
92  break;
94  xWriteSEIGradualDecodingRefreshInfo(*static_cast<const SEIGradualDecodingRefreshInfo*>(&sei));
95  break;
96  case SEI::NO_DISPLAY:
97  xWriteSEINoDisplay(*static_cast<const SEINoDisplay*>(&sei));
98  break;
100  xWriteSEIToneMappingInfo(*static_cast<const SEIToneMappingInfo*>(&sei));
101  break;
103  xWriteSEISOPDescription(*static_cast<const SEISOPDescription*>(&sei));
104  break;
106  xWriteSEIScalableNesting(bs, *static_cast<const SEIScalableNesting*>(&sei), sps);
107  break;
109  xWriteSEIChromaSamplingFilterHint(*static_cast<const SEIChromaSamplingFilterHint*>(&sei)/*, sps*/);
110  break;
112  xWriteSEITempMotionConstrainedTileSets(bs, *static_cast<const SEITempMotionConstrainedTileSets*>(&sei));
113  break;
114  case SEI::TIME_CODE:
115  xWriteSEITimeCode(*static_cast<const SEITimeCode*>(&sei));
116  break;
118  xWriteSEIKneeFunctionInfo(*static_cast<const SEIKneeFunctionInfo*>(&sei));
119  break;
121  xWriteSEIMasteringDisplayColourVolume(*static_cast<const SEIMasteringDisplayColourVolume*>(&sei));
122  break;
123  default:
124  assert(!"Unhandled SEI message");
125  break;
126  }
127  xWriteByteAlign();
128 }
129 
135 {
136  /* calculate how large the payload data is */
137  /* TODO: this would be far nicer if it used vectored buffers */
138  TComBitCounter bs_count;
139  bs_count.resetBits();
140  setBitstream(&bs_count);
141 
142 
143 #if ENC_DEC_TRACE
144  Bool traceEnable = g_HLSTraceEnable;
145  g_HLSTraceEnable = false;
146 #endif
147  xWriteSEIpayloadData(bs_count, sei, sps);
148 #if ENC_DEC_TRACE
149  g_HLSTraceEnable = traceEnable;
150 #endif
151 
152  UInt payload_data_num_bits = bs_count.getNumberOfWrittenBits();
153  assert(0 == payload_data_num_bits % 8);
154 
155  setBitstream(&bs);
156 
157 #if ENC_DEC_TRACE
158  if (g_HLSTraceEnable)
159  {
160  xTraceSEIHeader();
161  }
162 #endif
163 
164  UInt payloadType = sei.payloadType();
165  for (; payloadType >= 0xff; payloadType -= 0xff)
166  {
167  WRITE_CODE(0xff, 8, "payload_type");
168  }
169  WRITE_CODE(payloadType, 8, "payload_type");
170 
171  UInt payloadSize = payload_data_num_bits/8;
172  for (; payloadSize >= 0xff; payloadSize -= 0xff)
173  {
174  WRITE_CODE(0xff, 8, "payload_size");
175  }
176  WRITE_CODE(payloadSize, 8, "payload_size");
177 
178  /* payloadData */
179 #if ENC_DEC_TRACE
180  if (g_HLSTraceEnable)
181  {
183  }
184 #endif
185 
186  xWriteSEIpayloadData(bs, sei, sps);
187 }
188 
194 {
195  for (UInt i = 0; i < ISO_IEC_11578_LEN; i++)
196  {
197  WRITE_CODE(sei.uuid_iso_iec_11578[i], 8 , "sei.uuid_iso_iec_11578[i]");
198  }
199 
200  for (UInt i = 0; i < sei.userDataLength; i++)
201  {
202  WRITE_CODE(sei.userData[i], 8 , "user_data");
203  }
204 }
205 
211 {
212  const Char *traceString="\0";
213  switch (sei.method)
214  {
215  case SEIDecodedPictureHash::MD5: traceString="picture_md5"; break;
216  case SEIDecodedPictureHash::CRC: traceString="picture_crc"; break;
217  case SEIDecodedPictureHash::CHECKSUM: traceString="picture_checksum"; break;
218  default: assert(false); break;
219  }
220 
221  if (traceString != 0) //use of this variable is needed to avoid a compiler error with G++ 4.6.1
222  {
223  WRITE_CODE(sei.method, 8, "hash_type");
224  for(UInt i=0; i<UInt(sei.m_digest.hash.size()); i++)
225  {
226  WRITE_CODE(sei.m_digest.hash[i], 8, traceString);
227  }
228  }
229 }
230 
232 {
233  WRITE_CODE(sei.activeVPSId, 4, "active_video_parameter_set_id");
234  WRITE_FLAG(sei.m_selfContainedCvsFlag, "self_contained_cvs_flag");
235  WRITE_FLAG(sei.m_noParameterSetUpdateFlag, "no_parameter_set_update_flag");
236  WRITE_UVLC(sei.numSpsIdsMinus1, "num_sps_ids_minus1");
237 
238  assert (sei.activeSeqParameterSetId.size() == (sei.numSpsIdsMinus1 + 1));
239 
240  for (Int i = 0; i < sei.activeSeqParameterSetId.size(); i++)
241  {
242  WRITE_UVLC(sei.activeSeqParameterSetId[i], "active_seq_parameter_set_id");
243  }
244 }
245 
247 {
248  const TComVUI *vui = sps->getVuiParameters();
249  WRITE_UVLC(sei.m_decodingUnitIdx, "decoding_unit_idx");
251  {
252  WRITE_CODE( sei.m_duSptCpbRemovalDelay, (vui->getHrdParameters()->getDuCpbRemovalDelayLengthMinus1() + 1), "du_spt_cpb_removal_delay");
253  }
254  WRITE_FLAG( sei.m_dpbOutputDuDelayPresentFlag, "dpb_output_du_delay_present_flag");
256  {
257  WRITE_CODE(sei.m_picSptDpbOutputDuDelay, vui->getHrdParameters()->getDpbOutputDelayDuLengthMinus1() + 1, "pic_spt_dpb_output_du_delay");
258  }
259 }
260 
262 {
263  Int i, nalOrVcl;
264  const TComVUI *vui = sps->getVuiParameters();
265  const TComHRD *hrd = vui->getHrdParameters();
266 
267  WRITE_UVLC( sei.m_bpSeqParameterSetId, "bp_seq_parameter_set_id" );
268  if( !hrd->getSubPicCpbParamsPresentFlag() )
269  {
270  WRITE_FLAG( sei.m_rapCpbParamsPresentFlag, "irap_cpb_params_present_flag" );
271  }
272  if( sei.m_rapCpbParamsPresentFlag )
273  {
274  WRITE_CODE( sei.m_cpbDelayOffset, hrd->getCpbRemovalDelayLengthMinus1() + 1, "cpb_delay_offset" );
275  WRITE_CODE( sei.m_dpbDelayOffset, hrd->getDpbOutputDelayLengthMinus1() + 1, "dpb_delay_offset" );
276  }
277  WRITE_FLAG( sei.m_concatenationFlag, "concatenation_flag");
278  WRITE_CODE( sei.m_auCpbRemovalDelayDelta - 1, ( hrd->getCpbRemovalDelayLengthMinus1() + 1 ), "au_cpb_removal_delay_delta_minus1" );
279  for( nalOrVcl = 0; nalOrVcl < 2; nalOrVcl ++ )
280  {
281  if( ( ( nalOrVcl == 0 ) && ( hrd->getNalHrdParametersPresentFlag() ) ) ||
282  ( ( nalOrVcl == 1 ) && ( hrd->getVclHrdParametersPresentFlag() ) ) )
283  {
284  for( i = 0; i < ( hrd->getCpbCntMinus1( 0 ) + 1 ); i ++ )
285  {
286  WRITE_CODE( sei.m_initialCpbRemovalDelay[i][nalOrVcl],( hrd->getInitialCpbRemovalDelayLengthMinus1() + 1 ) , "initial_cpb_removal_delay" );
287  WRITE_CODE( sei.m_initialCpbRemovalDelayOffset[i][nalOrVcl],( hrd->getInitialCpbRemovalDelayLengthMinus1() + 1 ), "initial_cpb_removal_delay_offset" );
289  {
290  WRITE_CODE( sei.m_initialAltCpbRemovalDelay[i][nalOrVcl], ( hrd->getInitialCpbRemovalDelayLengthMinus1() + 1 ) , "initial_alt_cpb_removal_delay" );
291  WRITE_CODE( sei.m_initialAltCpbRemovalDelayOffset[i][nalOrVcl], ( hrd->getInitialCpbRemovalDelayLengthMinus1() + 1 ),"initial_alt_cpb_removal_delay_offset" );
292  }
293  }
294  }
295  }
296 }
298 {
299  Int i;
300  const TComVUI *vui = sps->getVuiParameters();
301  const TComHRD *hrd = vui->getHrdParameters();
302 
303  if( vui->getFrameFieldInfoPresentFlag() )
304  {
305  WRITE_CODE( sei.m_picStruct, 4, "pic_struct" );
306  WRITE_CODE( sei.m_sourceScanType, 2, "source_scan_type" );
307  WRITE_FLAG( sei.m_duplicateFlag ? 1 : 0, "duplicate_flag" );
308  }
309 
310  if( hrd->getCpbDpbDelaysPresentFlag() )
311  {
312  WRITE_CODE( sei.m_auCpbRemovalDelay - 1, ( hrd->getCpbRemovalDelayLengthMinus1() + 1 ), "au_cpb_removal_delay_minus1" );
313  WRITE_CODE( sei.m_picDpbOutputDelay, ( hrd->getDpbOutputDelayLengthMinus1() + 1 ), "pic_dpb_output_delay" );
315  {
316  WRITE_CODE(sei.m_picDpbOutputDuDelay, hrd->getDpbOutputDelayDuLengthMinus1()+1, "pic_dpb_output_du_delay" );
317  }
319  {
320  WRITE_UVLC( sei.m_numDecodingUnitsMinus1, "num_decoding_units_minus1" );
321  WRITE_FLAG( sei.m_duCommonCpbRemovalDelayFlag, "du_common_cpb_removal_delay_flag" );
323  {
324  WRITE_CODE( sei.m_duCommonCpbRemovalDelayMinus1, ( hrd->getDuCpbRemovalDelayLengthMinus1() + 1 ), "du_common_cpb_removal_delay_minus1" );
325  }
326  for( i = 0; i <= sei.m_numDecodingUnitsMinus1; i ++ )
327  {
328  WRITE_UVLC( sei.m_numNalusInDuMinus1[ i ], "num_nalus_in_du_minus1");
329  if( ( !sei.m_duCommonCpbRemovalDelayFlag ) && ( i < sei.m_numDecodingUnitsMinus1 ) )
330  {
331  WRITE_CODE( sei.m_duCpbRemovalDelayMinus1[ i ], ( hrd->getDuCpbRemovalDelayLengthMinus1() + 1 ), "du_cpb_removal_delay_minus1" );
332  }
333  }
334  }
335  }
336 }
338 {
339  WRITE_SVLC( sei.m_recoveryPocCnt, "recovery_poc_cnt" );
340  WRITE_FLAG( sei.m_exactMatchingFlag, "exact_matching_flag" );
341  WRITE_FLAG( sei.m_brokenLinkFlag, "broken_link_flag" );
342 }
344 {
345  WRITE_UVLC( sei.m_arrangementId, "frame_packing_arrangement_id" );
346  WRITE_FLAG( sei.m_arrangementCancelFlag, "frame_packing_arrangement_cancel_flag" );
347 
348  if( sei.m_arrangementCancelFlag == 0 )
349  {
350  WRITE_CODE( sei.m_arrangementType, 7, "frame_packing_arrangement_type" );
351 
352  WRITE_FLAG( sei.m_quincunxSamplingFlag, "quincunx_sampling_flag" );
353  WRITE_CODE( sei.m_contentInterpretationType, 6, "content_interpretation_type" );
354  WRITE_FLAG( sei.m_spatialFlippingFlag, "spatial_flipping_flag" );
355  WRITE_FLAG( sei.m_frame0FlippedFlag, "frame0_flipped_flag" );
356  WRITE_FLAG( sei.m_fieldViewsFlag, "field_views_flag" );
357  WRITE_FLAG( sei.m_currentFrameIsFrame0Flag, "current_frame_is_frame0_flag" );
358 
359  WRITE_FLAG( sei.m_frame0SelfContainedFlag, "frame0_self_contained_flag" );
360  WRITE_FLAG( sei.m_frame1SelfContainedFlag, "frame1_self_contained_flag" );
361 
362  if(sei.m_quincunxSamplingFlag == 0 && sei.m_arrangementType != 5)
363  {
364  WRITE_CODE( sei.m_frame0GridPositionX, 4, "frame0_grid_position_x" );
365  WRITE_CODE( sei.m_frame0GridPositionY, 4, "frame0_grid_position_y" );
366  WRITE_CODE( sei.m_frame1GridPositionX, 4, "frame1_grid_position_x" );
367  WRITE_CODE( sei.m_frame1GridPositionY, 4, "frame1_grid_position_y" );
368  }
369 
370  WRITE_CODE( sei.m_arrangementReservedByte, 8, "frame_packing_arrangement_reserved_byte" );
371  WRITE_FLAG( sei.m_arrangementPersistenceFlag, "frame_packing_arrangement_persistence_flag" );
372  }
373 
374  WRITE_FLAG( sei.m_upsampledAspectRatio, "upsampled_aspect_ratio" );
375 }
376 
378 {
379  WRITE_FLAG( sei.m_arrangementCancelFlag, "segmented_rect_frame_packing_arrangement_cancel_flag" );
380  if( sei.m_arrangementCancelFlag == 0 )
381  {
382  WRITE_CODE( sei.m_contentInterpretationType, 2, "segmented_rect_content_interpretation_type" );
383  WRITE_FLAG( sei.m_arrangementPersistenceFlag, "segmented_rect_frame_packing_arrangement_persistence" );
384  }
385 }
386 
388 {
389  Int i;
390  WRITE_UVLC( sei.m_toneMapId, "tone_map_id" );
391  WRITE_FLAG( sei.m_toneMapCancelFlag, "tone_map_cancel_flag" );
392  if( !sei.m_toneMapCancelFlag )
393  {
394  WRITE_FLAG( sei.m_toneMapPersistenceFlag, "tone_map_persistence_flag" );
395  WRITE_CODE( sei.m_codedDataBitDepth, 8, "coded_data_bit_depth" );
396  WRITE_CODE( sei.m_targetBitDepth, 8, "target_bit_depth" );
397  WRITE_UVLC( sei.m_modelId, "model_id" );
398  switch(sei.m_modelId)
399  {
400  case 0:
401  {
402  WRITE_CODE( sei.m_minValue, 32, "min_value" );
403  WRITE_CODE( sei.m_maxValue, 32, "max_value" );
404  break;
405  }
406  case 1:
407  {
408  WRITE_CODE( sei.m_sigmoidMidpoint, 32, "sigmoid_midpoint" );
409  WRITE_CODE( sei.m_sigmoidWidth, 32, "sigmoid_width" );
410  break;
411  }
412  case 2:
413  {
414  UInt num = 1u << sei.m_targetBitDepth;
415  for(i = 0; i < num; i++)
416  {
417  WRITE_CODE( sei.m_startOfCodedInterval[i], (( sei.m_codedDataBitDepth + 7 ) >> 3 ) << 3, "start_of_coded_interval" );
418  }
419  break;
420  }
421  case 3:
422  {
423  WRITE_CODE( sei.m_numPivots, 16, "num_pivots" );
424  for(i = 0; i < sei.m_numPivots; i++ )
425  {
426  WRITE_CODE( sei.m_codedPivotValue[i], (( sei.m_codedDataBitDepth + 7 ) >> 3 ) << 3, "coded_pivot_value" );
427  WRITE_CODE( sei.m_targetPivotValue[i], (( sei.m_targetBitDepth + 7 ) >> 3 ) << 3, "target_pivot_value");
428  }
429  break;
430  }
431  case 4:
432  {
433  WRITE_CODE( sei.m_cameraIsoSpeedIdc, 8, "camera_iso_speed_idc" );
434  if( sei.m_cameraIsoSpeedIdc == 255) //Extended_ISO
435  {
436  WRITE_CODE( sei.m_cameraIsoSpeedValue, 32, "camera_iso_speed_value" );
437  }
438  WRITE_CODE( sei.m_exposureIndexIdc, 8, "exposure_index_idc" );
439  if( sei.m_exposureIndexIdc == 255) //Extended_ISO
440  {
441  WRITE_CODE( sei.m_exposureIndexValue, 32, "exposure_index_value" );
442  }
443  WRITE_FLAG( sei.m_exposureCompensationValueSignFlag, "exposure_compensation_value_sign_flag" );
444  WRITE_CODE( sei.m_exposureCompensationValueNumerator, 16, "exposure_compensation_value_numerator" );
445  WRITE_CODE( sei.m_exposureCompensationValueDenomIdc, 16, "exposure_compensation_value_denom_idc" );
446  WRITE_CODE( sei.m_refScreenLuminanceWhite, 32, "ref_screen_luminance_white" );
447  WRITE_CODE( sei.m_extendedRangeWhiteLevel, 32, "extended_range_white_level" );
448  WRITE_CODE( sei.m_nominalBlackLevelLumaCodeValue, 16, "nominal_black_level_luma_code_value" );
449  WRITE_CODE( sei.m_nominalWhiteLevelLumaCodeValue, 16, "nominal_white_level_luma_code_value" );
450  WRITE_CODE( sei.m_extendedWhiteLevelLumaCodeValue, 16, "extended_white_level_luma_code_value" );
451  break;
452  }
453  default:
454  {
455  assert(!"Undefined SEIToneMapModelId");
456  break;
457  }
458  }//switch m_modelId
459  }//if(!sei.m_toneMapCancelFlag)
460 }
461 
463 {
464  WRITE_FLAG( sei.cancelFlag, "display_orientation_cancel_flag" );
465  if( !sei.cancelFlag )
466  {
467  WRITE_FLAG( sei.horFlip, "hor_flip" );
468  WRITE_FLAG( sei.verFlip, "ver_flip" );
469  WRITE_CODE( sei.anticlockwiseRotation, 16, "anticlockwise_rotation" );
470  WRITE_FLAG( sei.persistenceFlag, "display_orientation_persistence_flag" );
471  }
472 }
473 
475 {
476  WRITE_CODE( sei.tl0Idx, 8 , "tl0_idx" );
477  WRITE_CODE( sei.rapIdx, 8 , "rap_idx" );
478 }
479 
481 {
482  WRITE_FLAG( sei.m_gdrForegroundFlag, "gdr_foreground_flag");
483 }
484 
486 {
487 }
488 
490 {
491  WRITE_UVLC( sei.m_sopSeqParameterSetId, "sop_seq_parameter_set_id" );
492  WRITE_UVLC( sei.m_numPicsInSopMinus1, "num_pics_in_sop_minus1" );
493  for (UInt i = 0; i <= sei.m_numPicsInSopMinus1; i++)
494  {
495  WRITE_CODE( sei.m_sopDescVclNaluType[i], 6, "sop_desc_vcl_nalu_type" );
496  WRITE_CODE( sei.m_sopDescTemporalId[i], 3, "sop_desc_temporal_id" );
498  {
499  WRITE_UVLC( sei.m_sopDescStRpsIdx[i], "sop_desc_st_rps_idx" );
500  }
501  if (i > 0)
502  {
503  WRITE_SVLC( sei.m_sopDescPocDelta[i], "sop_desc_poc_delta" );
504  }
505  }
506 }
507 
509 {
510  WRITE_FLAG( sei.m_bitStreamSubsetFlag, "bitstream_subset_flag" );
511  WRITE_FLAG( sei.m_nestingOpFlag, "nesting_op_flag " );
512  if (sei.m_nestingOpFlag)
513  {
514  WRITE_FLAG( sei.m_defaultOpFlag, "default_op_flag" );
515  WRITE_UVLC( sei.m_nestingNumOpsMinus1, "nesting_num_ops_minus1" );
516  for (UInt i = (sei.m_defaultOpFlag ? 1 : 0); i <= sei.m_nestingNumOpsMinus1; i++)
517  {
518  WRITE_CODE( sei.m_nestingMaxTemporalIdPlus1[i], 3, "nesting_max_temporal_id_plus1" );
519  WRITE_UVLC( sei.m_nestingOpIdx[i], "nesting_op_idx" );
520  }
521  }
522  else
523  {
524  WRITE_FLAG( sei.m_allLayersFlag, "all_layers_flag" );
525  if (!sei.m_allLayersFlag)
526  {
527  WRITE_CODE( sei.m_nestingNoOpMaxTemporalIdPlus1, 3, "nesting_no_op_max_temporal_id_plus1" );
528  WRITE_UVLC( sei.m_nestingNumLayersMinus1, "nesting_num_layers" );
529  for (UInt i = 0; i <= sei.m_nestingNumLayersMinus1; i++)
530  {
531  WRITE_CODE( sei.m_nestingLayerId[i], 6, "nesting_layer_id" );
532  }
533  }
534  }
535 
536  // byte alignment
537  while ( m_pcBitIf->getNumberOfWrittenBits() % 8 != 0 )
538  {
539  WRITE_FLAG( 0, "nesting_zero_bit" );
540  }
541 
542  // write nested SEI messages
543  for (SEIMessages::const_iterator it = sei.m_nestedSEIs.begin(); it != sei.m_nestedSEIs.end(); it++)
544  {
545  writeSEImessage(bs, *(*it), sps);
546  }
547 }
548 
550 {
551  //UInt code;
552  WRITE_FLAG((sei.m_mc_all_tiles_exact_sample_value_match_flag ? 1 : 0), "mc_all_tiles_exact_sample_value_match_flag");
553  WRITE_FLAG((sei.m_each_tile_one_tile_set_flag ? 1 : 0), "each_tile_one_tile_set_flag" );
554 
556  {
557  WRITE_FLAG((sei.m_limited_tile_set_display_flag ? 1 : 0), "limited_tile_set_display_flag");
558  WRITE_UVLC((sei.getNumberOfTileSets() - 1), "num_sets_in_message_minus1" );
559 
560  if(sei.getNumberOfTileSets() > 0)
561  {
562  for(Int i = 0; i < sei.getNumberOfTileSets(); i++)
563  {
564  WRITE_UVLC(sei.tileSetData(i).m_mcts_id, "mcts_id");
565 
567  {
568  WRITE_FLAG((sei.tileSetData(i).m_display_tile_set_flag ? 1 : 0), "display_tile_set_flag");
569  }
570 
571  WRITE_UVLC((sei.tileSetData(i).getNumberOfTileRects() - 1), "num_tile_rects_in_set_minus1");
572 
573  for(Int j = 0; j < sei.tileSetData(i).getNumberOfTileRects(); j++)
574  {
575  WRITE_UVLC(sei.tileSetData(i).topLeftTileIndex (j), "top_left_tile_index");
576  WRITE_UVLC(sei.tileSetData(i).bottomRightTileIndex(j), "bottom_right_tile_index");
577  }
578 
580  {
581  WRITE_FLAG((sei.tileSetData(i).m_exact_sample_value_match_flag ? 1 : 0), "exact_sample_value_match_flag");
582  }
583 
584  WRITE_FLAG((sei.tileSetData(i).m_mcts_tier_level_idc_present_flag ? 1 : 0), "mcts_tier_level_idc_present_flag");
585 
587  {
588  WRITE_FLAG((sei.tileSetData(i).m_mcts_tier_flag ? 1 : 0), "mcts_tier_flag");
589  WRITE_CODE( sei.tileSetData(i).m_mcts_level_idc, 8, "mcts_level_idc");
590  }
591  }
592  }
593  }
594  else
595  {
596  WRITE_FLAG((sei.m_max_mcs_tier_level_idc_present_flag ? 1 : 0), "max_mcs_tier_level_idc_present_flag");
597 
599  {
600  WRITE_FLAG((sei.m_max_mcts_tier_flag ? 1 : 0), "max_mcts_tier_flag");
601  WRITE_CODE( sei.m_max_mcts_level_idc, 8, "max_mcts_level_idc");
602  }
603  }
604 }
605 
607 {
608  WRITE_CODE(sei.numClockTs, 2, "num_clock_ts");
609  for(Int i = 0; i < sei.numClockTs; i++)
610  {
611  const TComSEITimeSet &currentTimeSet = sei.timeSetArray[i];
612  WRITE_FLAG(currentTimeSet.clockTimeStampFlag, "clock_time_stamp_flag");
613  if(currentTimeSet.clockTimeStampFlag)
614  {
615  WRITE_FLAG(currentTimeSet.numUnitFieldBasedFlag, "units_field_based_flag");
616  WRITE_CODE(currentTimeSet.countingType, 5, "counting_type");
617  WRITE_FLAG(currentTimeSet.fullTimeStampFlag, "full_timestamp_flag");
618  WRITE_FLAG(currentTimeSet.discontinuityFlag, "discontinuity_flag");
619  WRITE_FLAG(currentTimeSet.cntDroppedFlag, "cnt_dropped_flag");
620  WRITE_CODE(currentTimeSet.numberOfFrames, 9, "n_frames");
621  if(currentTimeSet.fullTimeStampFlag)
622  {
623  WRITE_CODE(currentTimeSet.secondsValue, 6, "seconds_value");
624  WRITE_CODE(currentTimeSet.minutesValue, 6, "minutes_value");
625  WRITE_CODE(currentTimeSet.hoursValue, 5, "hours_value");
626  }
627  else
628  {
629  WRITE_FLAG(currentTimeSet.secondsFlag, "seconds_flag");
630  if(currentTimeSet.secondsFlag)
631  {
632  WRITE_CODE(currentTimeSet.secondsValue, 6, "seconds_value");
633  WRITE_FLAG(currentTimeSet.minutesFlag, "minutes_flag");
634  if(currentTimeSet.minutesFlag)
635  {
636  WRITE_CODE(currentTimeSet.minutesValue, 6, "minutes_value");
637  WRITE_FLAG(currentTimeSet.hoursFlag, "hours_flag");
638  if(currentTimeSet.hoursFlag)
639  {
640  WRITE_CODE(currentTimeSet.hoursValue, 5, "hours_value");
641  }
642  }
643  }
644  }
645  WRITE_CODE(currentTimeSet.timeOffsetLength, 5, "time_offset_length");
646  if(currentTimeSet.timeOffsetLength > 0)
647  {
648  if(currentTimeSet.timeOffsetValue >= 0)
649  {
650  WRITE_CODE((UInt)currentTimeSet.timeOffsetValue, currentTimeSet.timeOffsetLength, "time_offset_value");
651  }
652  else
653  {
654  // Two's complement conversion
655  UInt offsetValue = ~(currentTimeSet.timeOffsetValue) + 1;
656  offsetValue |= (1 << (currentTimeSet.timeOffsetLength-1));
657  WRITE_CODE(offsetValue, currentTimeSet.timeOffsetLength, "time_offset_value");
658  }
659  }
660  }
661  }
662 }
663 
665 {
666  WRITE_CODE(sei.m_verChromaFilterIdc, 8, "ver_chroma_filter_idc");
667  WRITE_CODE(sei.m_horChromaFilterIdc, 8, "hor_chroma_filter_idc");
668  WRITE_FLAG(sei.m_verFilteringProcessFlag, "ver_filtering_process_flag");
669  if(sei.m_verChromaFilterIdc == 1 || sei.m_horChromaFilterIdc == 1)
670  {
672  }
673 }
674 
675 // write hardcoded chroma filter coefficients in the SEI messages
677 {
678  Int const iNumVerticalFilters = 3;
679  Int verticalTapLength_minus1[iNumVerticalFilters] = {5,3,3};
680  Int* userVerticalCoefficients[iNumVerticalFilters];
681  for(Int i = 0; i < iNumVerticalFilters; i ++)
682  {
683  userVerticalCoefficients[i] = (Int*)malloc( (verticalTapLength_minus1[i]+1) * sizeof(Int));
684  }
685  userVerticalCoefficients[0][0] = -3;
686  userVerticalCoefficients[0][1] = 13;
687  userVerticalCoefficients[0][2] = 31;
688  userVerticalCoefficients[0][3] = 23;
689  userVerticalCoefficients[0][4] = 3;
690  userVerticalCoefficients[0][5] = -3;
691 
692  userVerticalCoefficients[1][0] = -1;
693  userVerticalCoefficients[1][1] = 25;
694  userVerticalCoefficients[1][2] = 247;
695  userVerticalCoefficients[1][3] = -15;
696 
697  userVerticalCoefficients[2][0] = -20;
698  userVerticalCoefficients[2][1] = 186;
699  userVerticalCoefficients[2][2] = 100;
700  userVerticalCoefficients[2][3] = -10;
701 
702  Int const iNumHorizontalFilters = 1;
703  Int horizontalTapLength_minus1[iNumHorizontalFilters] = {3};
704  Int* userHorizontalCoefficients[iNumHorizontalFilters];
705  for(Int i = 0; i < iNumHorizontalFilters; i ++)
706  {
707  userHorizontalCoefficients[i] = (Int*)malloc( (horizontalTapLength_minus1[i]+1) * sizeof(Int));
708  }
709  userHorizontalCoefficients[0][0] = 1;
710  userHorizontalCoefficients[0][1] = 6;
711  userHorizontalCoefficients[0][2] = 1;
712 
713  WRITE_UVLC(3, "target_format_idc");
714  if(sei.m_verChromaFilterIdc == 1)
715  {
716  WRITE_UVLC(iNumVerticalFilters, "num_vertical_filters");
717  if(iNumVerticalFilters > 0)
718  {
719  for(Int i = 0; i < iNumVerticalFilters; i ++)
720  {
721  WRITE_UVLC(verticalTapLength_minus1[i], "ver_tap_length_minus_1");
722  for(Int j = 0; j < verticalTapLength_minus1[i]; j ++)
723  {
724  WRITE_SVLC(userVerticalCoefficients[i][j], "ver_filter_coeff");
725  }
726  }
727  }
728  }
729  if(sei.m_horChromaFilterIdc == 1)
730  {
731  WRITE_UVLC(iNumHorizontalFilters, "num_horizontal_filters");
732  if(iNumHorizontalFilters > 0)
733  {
734  for(Int i = 0; i < iNumHorizontalFilters; i ++)
735  {
736  WRITE_UVLC(horizontalTapLength_minus1[i], "hor_tap_length_minus_1");
737  for(Int j = 0; j < horizontalTapLength_minus1[i]; j ++)
738  {
739  WRITE_SVLC(userHorizontalCoefficients[i][j], "hor_filter_coeff");
740  }
741  }
742  }
743  }
744 }
745 
747 {
748  WRITE_UVLC( sei.m_kneeId, "knee_function_id" );
749  WRITE_FLAG( sei.m_kneeCancelFlag, "knee_function_cancel_flag" );
750  if ( !sei.m_kneeCancelFlag )
751  {
752  WRITE_FLAG( sei.m_kneePersistenceFlag, "knee_function_persistence_flag" );
753  WRITE_CODE( (UInt)sei.m_kneeInputDrange , 32, "input_d_range" );
754  WRITE_CODE( (UInt)sei.m_kneeInputDispLuminance, 32, "input_disp_luminance" );
755  WRITE_CODE( (UInt)sei.m_kneeOutputDrange, 32, "output_d_range" );
756  WRITE_CODE( (UInt)sei.m_kneeOutputDispLuminance, 32, "output_disp_luminance" );
757  WRITE_UVLC( sei.m_kneeNumKneePointsMinus1, "num_knee_points_minus1" );
758  for(Int i = 0; i <= sei.m_kneeNumKneePointsMinus1; i++ )
759  {
760  WRITE_CODE( (UInt)sei.m_kneeInputKneePoint[i], 10,"input_knee_point" );
761  WRITE_CODE( (UInt)sei.m_kneeOutputKneePoint[i], 10, "output_knee_point" );
762  }
763  }
764 }
765 
766 
768 {
769  WRITE_CODE( sei.values.primaries[0][0], 16, "display_primaries_x[0]" );
770  WRITE_CODE( sei.values.primaries[0][1], 16, "display_primaries_y[0]" );
771 
772  WRITE_CODE( sei.values.primaries[1][0], 16, "display_primaries_x[1]" );
773  WRITE_CODE( sei.values.primaries[1][1], 16, "display_primaries_y[1]" );
774 
775  WRITE_CODE( sei.values.primaries[2][0], 16, "display_primaries_x[2]" );
776  WRITE_CODE( sei.values.primaries[2][1], 16, "display_primaries_y[2]" );
777 
778  WRITE_CODE( sei.values.whitePoint[0], 16, "white_point_x" );
779  WRITE_CODE( sei.values.whitePoint[1], 16, "white_point_y" );
780 
781  WRITE_CODE( sei.values.maxLuminance, 32, "max_display_mastering_luminance" );
782  WRITE_CODE( sei.values.minLuminance, 32, "min_display_mastering_luminance" );
783 }
784 
785 
787 {
788  if( m_pcBitIf->getNumberOfWrittenBits() % 8 != 0)
789  {
790  WRITE_FLAG( 1, "payload_bit_equal_to_one" );
791  while( m_pcBitIf->getNumberOfWrittenBits() % 8 != 0 )
792  {
793  WRITE_FLAG( 0, "payload_bit_equal_to_zero" );
794  }
795  }
796 }
797 
SEIMessages m_nestedSEIs
Definition: SEI.h:517
Bool getNalHrdParametersPresentFlag() const
Definition: TComSlice.h:321
Bool m_currentFrameIsFrame0Flag
Definition: SEI.h:272
Int m_duSptCpbRemovalDelay
Definition: SEI.h:238
UInt getDuCpbRemovalDelayLengthMinus1() const
Definition: TComSlice.h:333
PayloadType
Definition: SEI.h:55
Bool getVclHrdParametersPresentFlag() const
Definition: TComSlice.h:324
Bool m_selfContainedCvsFlag
Definition: SEI.h:151
Bool m_exposureCompensationValueSignFlag
Definition: SEI.h:401
TComSEIMasteringDisplay values
Definition: SEI.h:476
Bool m_max_mcs_tier_level_idc_present_flag
Definition: SEI.h:575
Int m_frame1GridPositionX
Definition: SEI.h:277
UInt m_nestingOpIdx[1024]
Definition: SEI.h:509
Int m_contentInterpretationType
Definition: SEI.h:268
Void xWriteSEIDecodingUnitInfo(const SEIDecodingUnitInfo &sei, const TComSPS *sps)
Definition: SEIwrite.cpp:246
Int m_exposureIndexIdc
Definition: SEI.h:399
Bool m_frame1SelfContainedFlag
Definition: SEI.h:274
Int m_exposureCompensationValueNumerator
Definition: SEI.h:402
void Void
Definition: TypeDef.h:285
std::vector< Int > m_targetPivotValue
Definition: SEI.h:396
static const Char * getSEIMessageString(SEI::PayloadType payloadType)
Definition: SEI.cpp:90
Bool m_fieldViewsFlag
Definition: SEI.h:271
UInt m_dpbDelayOffset
Definition: SEI.h:178
#define WRITE_CODE(value, length, name)
Bool m_exactMatchingFlag
Definition: SEI.h:252
Int timeOffsetValue
Definition: TypeDef.h:819
Bool m_arrangementPersistenceFlag
Definition: SEI.h:280
Int numberOfFrames
Definition: TypeDef.h:811
pure virtual class for basic bit handling
Definition: TComBitStream.h:58
Void xWriteSEIPictureTiming(const SEIPictureTiming &sei, const TComSPS *sps)
Definition: SEIwrite.cpp:297
Bool m_kneePersistenceFlag
Definition: SEI.h:420
Int & topLeftTileIndex(const Int tileRectIndex)
Definition: SEI.h:561
UInt m_picDpbOutputDelay
Definition: SEI.h:216
Void writeUserDefinedCoefficients(const SEIChromaSamplingFilterHint &sei)
Definition: SEIwrite.cpp:676
slice header and SPS class (header)
std::vector< Int > m_kneeOutputKneePoint
Definition: SEI.h:427
Void setBitstream(TComBitIf *p)
Int m_decodingUnitIdx
Definition: SEI.h:237
Bool m_frame0FlippedFlag
Definition: SEI.h:270
std::vector< Int > m_kneeInputKneePoint
Definition: SEI.h:426
char Char
Definition: TypeDef.h:291
Void xWriteSEITemporalLevel0Index(const SEITemporalLevel0Index &sei)
Definition: SEIwrite.cpp:474
Void xWriteSEIFramePacking(const SEIFramePacking &sei)
Definition: SEIwrite.cpp:343
unsigned int UInt
Definition: TypeDef.h:297
Bool clockTimeStampFlag
Definition: TypeDef.h:805
Bool m_rapCpbParamsPresentFlag
Definition: SEI.h:176
Int m_frame0GridPositionX
Definition: SEI.h:275
UInt m_cpbDelayOffset
Definition: SEI.h:177
Bool m_frame0SelfContainedFlag
Definition: SEI.h:273
Int m_numPivots
Definition: SEI.h:394
Int m_minValue
Definition: SEI.h:389
UChar m_nestingLayerId[64]
Definition: SEI.h:514
UChar * userData
Definition: SEI.h:115
UInt numClockTs
Definition: SEI.h:527
TileSetData & tileSetData(const Int index)
Definition: SEI.h:584
Bool m_verFilteringProcessFlag
Definition: SEI.h:458
Int m_nominalBlackLevelLumaCodeValue
Definition: SEI.h:406
std::vector< Int > activeSeqParameterSetId
Definition: SEI.h:154
Void writeSEImessage(TComBitIf &bs, const SEI &sei, const TComSPS *sps)
Definition: SEIwrite.cpp:134
class for counting bits
TComVUI * getVuiParameters()
Definition: TComSlice.h:939
Int m_sopDescPocDelta[1024]
Definition: SEI.h:373
Bool g_HLSTraceEnable
Definition: TComRom.cpp:564
#define WRITE_FLAG(value,name)
UInt m_picStruct
Definition: SEI.h:211
Int countingType
Definition: TypeDef.h:807
Int m_picSptDpbOutputDuDelay
Definition: SEI.h:240
Void xWriteSEIDecodedPictureHash(const SEIDecodedPictureHash &sei)
Definition: SEIwrite.cpp:210
Int m_kneeOutputDrange
Definition: SEI.h:423
UInt m_initialCpbRemovalDelay[32][2]
Definition: SEI.h:179
Bool hoursFlag
Definition: TypeDef.h:817
Int m_frame1GridPositionY
Definition: SEI.h:278
Int m_kneeInputDispLuminance
Definition: SEI.h:422
Bool secondsFlag
Definition: TypeDef.h:815
UInt m_sopDescTemporalId[1024]
Definition: SEI.h:371
UInt m_sourceScanType
Definition: SEI.h:212
FILE * g_hTrace
Definition: TComRom.cpp:561
std::vector< Int > m_startOfCodedInterval
Definition: SEI.h:393
UInt m_numPicsInSopMinus1
Definition: SEI.h:368
Int hoursValue
Definition: TypeDef.h:814
Void xWriteSEIRecoveryPoint(const SEIRecoveryPoint &sei)
Definition: SEIwrite.cpp:337
Int m_maxValue
Definition: SEI.h:390
static const UInt ISO_IEC_11578_LEN
Definition: SEI.h:97
bool Bool
Definition: TypeDef.h:286
Void xWriteSEIuserDataUnregistered(const SEIuserDataUnregistered &sei)
Definition: SEIwrite.cpp:193
Int minutesValue
Definition: TypeDef.h:813
Bool getSubPicCpbParamsPresentFlag() const
Definition: TComSlice.h:327
Bool m_allLayersFlag
Definition: SEI.h:511
Int m_sigmoidWidth
Definition: SEI.h:392
Void xWriteSEIGradualDecodingRefreshInfo(const SEIGradualDecodingRefreshInfo &sei)
Definition: SEIwrite.cpp:480
TComDigest m_digest
Definition: SEI.h:134
Bool getSubPicCpbParamsInPicTimingSEIFlag() const
Definition: TComSlice.h:336
Int m_nominalWhiteLevelLumaCodeValue
Definition: SEI.h:407
Int m_cameraIsoSpeedIdc
Definition: SEI.h:397
Bool numUnitFieldBasedFlag
Definition: TypeDef.h:806
Definition: SEI.h:52
Void xWriteSEIScalableNesting(TComBitIf &bs, const SEIScalableNesting &sei, const TComSPS *sps)
Definition: SEIwrite.cpp:508
Int & bottomRightTileIndex(const Int tileRectIndex)
Definition: SEI.h:562
UChar uuid_iso_iec_11578[ISO_IEC_11578_LEN]
Definition: SEI.h:113
virtual PayloadType payloadType() const =0
Int m_toneMapId
Definition: SEI.h:383
UInt * m_duCpbRemovalDelayMinus1
Definition: SEI.h:222
UInt m_numDecodingUnitsMinus1
Definition: SEI.h:218
UInt m_bpSeqParameterSetId
Definition: SEI.h:175
Bool m_quincunxSamplingFlag
Definition: SEI.h:267
Void xWriteSEIBufferingPeriod(const SEIBufferingPeriod &sei, const TComSPS *sps)
Definition: SEIwrite.cpp:261
UInt m_nestingNumOpsMinus1
Definition: SEI.h:507
Bool getFrameFieldInfoPresentFlag() const
Definition: TComSlice.h:677
Void xWriteSEITempMotionConstrainedTileSets(TComBitIf &bs, const SEITempMotionConstrainedTileSets &sei)
Definition: SEIwrite.cpp:549
UInt m_auCpbRemovalDelayDelta
Definition: SEI.h:184
UInt getInitialCpbRemovalDelayLengthMinus1() const
Definition: TComSlice.h:350
UInt getDpbOutputDelayLengthMinus1() const
Definition: TComSlice.h:356
class for handling bitstream (header)
Bool m_arrangementCancelFlag
Definition: SEI.h:265
Int m_codedDataBitDepth
Definition: SEI.h:386
UInt m_nestingNoOpMaxTemporalIdPlus1
Definition: SEI.h:512
Bool discontinuityFlag
Definition: TypeDef.h:809
std::vector< UChar > hash
Definition: TypeDef.h:763
Int m_extendedWhiteLevelLumaCodeValue
Definition: SEI.h:408
UInt m_duCommonCpbRemovalDelayMinus1
Definition: SEI.h:220
Void xWriteSEIChromaSamplingFilterHint(const SEIChromaSamplingFilterHint &sei)
Definition: SEIwrite.cpp:664
picture YUV buffer class (header)
Int getNumberOfTileSets() const
Definition: SEI.h:582
UInt anticlockwiseRotation
Definition: SEI.h:313
Bool m_spatialFlippingFlag
Definition: SEI.h:269
Bool minutesFlag
Definition: TypeDef.h:816
Void xWriteSEISOPDescription(const SEISOPDescription &sei)
Definition: SEIwrite.cpp:489
UInt m_sopDescVclNaluType[1024]
Definition: SEI.h:370
UInt getCpbRemovalDelayLengthMinus1() const
Definition: TComSlice.h:353
UInt m_nestingMaxTemporalIdPlus1[MAX_TLAYER]
Definition: SEI.h:508
Void xWriteSEIMasteringDisplayColourVolume(const SEIMasteringDisplayColourVolume &sei)
Definition: SEIwrite.cpp:767
Int m_recoveryPocCnt
Definition: SEI.h:251
UInt m_initialAltCpbRemovalDelayOffset[32][2]
Definition: SEI.h:182
UInt m_initialCpbRemovalDelayOffset[32][2]
Definition: SEI.h:180
UInt getDpbOutputDelayDuLengthMinus1() const
Definition: TComSlice.h:339
Int secondsValue
Definition: TypeDef.h:812
Int m_exposureIndexValue
Definition: SEI.h:400
Bool m_nestingOpFlag
Definition: SEI.h:505
UShort whitePoint[2]
Definition: TypeDef.h:828
Bool getCpbDpbDelaysPresentFlag() const
Definition: TComSlice.h:387
Void xTraceSEIHeader()
Definition: SEIwrite.cpp:45
Int m_arrangementType
Definition: SEI.h:266
Bool m_duCommonCpbRemovalDelayFlag
Definition: SEI.h:219
Int m_exposureCompensationValueDenomIdc
Definition: SEI.h:403
Int m_arrangementId
Definition: SEI.h:264
UInt * m_numNalusInDuMinus1
Definition: SEI.h:221
std::vector< Int > m_codedPivotValue
Definition: SEI.h:395
Int m_kneeOutputDispLuminance
Definition: SEI.h:424
Void xWriteSEIKneeFunctionInfo(const SEIKneeFunctionInfo &sei)
Definition: SEIwrite.cpp:746
Int m_sigmoidMidpoint
Definition: SEI.h:391
UInt getNumberOfWrittenBits() const
UInt m_auCpbRemovalDelay
Definition: SEI.h:215
enum SEIDecodedPictureHash::Method method
Int m_extendedRangeWhiteLevel
Definition: SEI.h:405
UInt m_nestingNumLayersMinus1
Definition: SEI.h:513
#define WRITE_SVLC(value,name)
int Int
Definition: TypeDef.h:296
Bool persistenceFlag
Definition: SEI.h:314
Bool m_mc_all_tiles_exact_sample_value_match_flag
Definition: SEI.h:572
Int m_refScreenLuminanceWhite
Definition: SEI.h:404
Bool m_concatenationFlag
Definition: SEI.h:183
Bool m_brokenLinkFlag
Definition: SEI.h:253
Bool m_toneMapPersistenceFlag
Definition: SEI.h:385
Int m_kneeInputDrange
Definition: SEI.h:421
UInt getCpbCntMinus1(Int layer) const
Definition: TComSlice.h:371
Int m_kneeNumKneePointsMinus1
Definition: SEI.h:425
Void xWriteSEIActiveParameterSets(const SEIActiveParameterSets &sei)
Definition: SEIwrite.cpp:231
#define WRITE_UVLC(value,name)
Int m_frame0GridPositionY
Definition: SEI.h:276
UInt m_picDpbOutputDuDelay
Definition: SEI.h:217
Bool fullTimeStampFlag
Definition: TypeDef.h:808
Void xWriteSEIToneMappingInfo(const SEIToneMappingInfo &sei)
Definition: SEIwrite.cpp:387
Void xWriteSEIDisplayOrientation(const SEIDisplayOrientation &sei)
Definition: SEIwrite.cpp:462
Int timeOffsetLength
Definition: TypeDef.h:818
Void xWriteSEISegmentedRectFramePacking(const SEISegmentedRectFramePacking &sei)
Definition: SEIwrite.cpp:377
Bool m_toneMapCancelFlag
Definition: SEI.h:384
Void xWriteSEITimeCode(const SEITimeCode &sei)
Definition: SEIwrite.cpp:606
Void xWriteSEINoDisplay(const SEINoDisplay &sei)
Definition: SEIwrite.cpp:485
Int m_cameraIsoSpeedValue
Definition: SEI.h:398
UInt m_initialAltCpbRemovalDelay[32][2]
Definition: SEI.h:181
Bool m_dpbOutputDuDelayPresentFlag
Definition: SEI.h:239
Bool m_noParameterSetUpdateFlag
Definition: SEI.h:152
Class for counting bits (header)
Bool m_upsampledAspectRatio
Definition: SEI.h:281
Bool m_kneeCancelFlag
Definition: SEI.h:419
Void xWriteByteAlign()
Definition: SEIwrite.cpp:786
Int m_arrangementReservedByte
Definition: SEI.h:279
Bool cntDroppedFlag
Definition: TypeDef.h:810
Void xWriteSEIpayloadData(TComBitIf &bs, const SEI &sei, const TComSPS *sps)
Definition: SEIwrite.cpp:56
Bool m_defaultOpFlag
Definition: SEI.h:506
Int m_targetBitDepth
Definition: SEI.h:387
Bool m_bitStreamSubsetFlag
Definition: SEI.h:504
UInt m_sopSeqParameterSetId
Definition: SEI.h:367
TComHRD * getHrdParameters()
Definition: TComSlice.h:714
UShort primaries[3][2]
Definition: TypeDef.h:827
TComSEITimeSet timeSetArray[3]
Definition: SEI.h:528
Bool m_duplicateFlag
Definition: SEI.h:213
virtual UInt getNumberOfWrittenBits() const =0
Void xTraceSEIMessageType(SEI::PayloadType payloadType)
Definition: SEIwrite.cpp:50
SPS class.
Definition: TComSlice.h:722
Bool m_arrangementPersistenceFlag
Definition: SEI.h:294
UInt m_sopDescStRpsIdx[1024]
Definition: SEI.h:372