2 * HEVC Supplementary Enhancement Information messages
4 * This file is part of Libav.
6 * Libav is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * Libav is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with Libav; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef AVCODEC_HEVC_SEI_H
22 #define AVCODEC_HEVC_SEI_H
26 #include "libavutil/md5.h"
34 HEVC_SEI_TYPE_BUFFERING_PERIOD = 0,
35 HEVC_SEI_TYPE_PICTURE_TIMING = 1,
36 HEVC_SEI_TYPE_PAN_SCAN_RECT = 2,
37 HEVC_SEI_TYPE_FILLER_PAYLOAD = 3,
38 HEVC_SEI_TYPE_USER_DATA_REGISTERED_ITU_T_T35 = 4,
39 HEVC_SEI_TYPE_USER_DATA_UNREGISTERED = 5,
40 HEVC_SEI_TYPE_RECOVERY_POINT = 6,
41 HEVC_SEI_TYPE_SCENE_INFO = 9,
42 HEVC_SEI_TYPE_FULL_FRAME_SNAPSHOT = 15,
43 HEVC_SEI_TYPE_PROGRESSIVE_REFINEMENT_SEGMENT_START = 16,
44 HEVC_SEI_TYPE_PROGRESSIVE_REFINEMENT_SEGMENT_END = 17,
45 HEVC_SEI_TYPE_FILM_GRAIN_CHARACTERISTICS = 19,
46 HEVC_SEI_TYPE_POST_FILTER_HINT = 22,
47 HEVC_SEI_TYPE_TONE_MAPPING_INFO = 23,
48 HEVC_SEI_TYPE_FRAME_PACKING = 45,
49 HEVC_SEI_TYPE_DISPLAY_ORIENTATION = 47,
50 HEVC_SEI_TYPE_SOP_DESCRIPTION = 128,
51 HEVC_SEI_TYPE_ACTIVE_PARAMETER_SETS = 129,
52 HEVC_SEI_TYPE_DECODING_UNIT_INFO = 130,
53 HEVC_SEI_TYPE_TEMPORAL_LEVEL0_INDEX = 131,
54 HEVC_SEI_TYPE_DECODED_PICTURE_HASH = 132,
55 HEVC_SEI_TYPE_SCALABLE_NESTING = 133,
56 HEVC_SEI_TYPE_REGION_REFRESH_INFO = 134,
57 HEVC_SEI_TYPE_MASTERING_DISPLAY_INFO = 137,
58 HEVC_SEI_TYPE_CONTENT_LIGHT_LEVEL_INFO = 144,
61 typedef struct HEVCSEIPictureHash {
62 struct AVMD5 *md5_ctx;
67 typedef struct HEVCSEIFramePacking {
70 int content_interpretation_type;
71 int quincunx_subsampling;
72 } HEVCSEIFramePacking;
74 typedef struct HEVCSEIDisplayOrientation {
76 int anticlockwise_rotation;
78 } HEVCSEIDisplayOrientation;
80 typedef struct HEVCSEI {
81 HEVCSEIPictureHash picture_hash;
82 HEVCSEIFramePacking frame_packing;
83 HEVCSEIDisplayOrientation display_orientation;
86 int ff_hevc_decode_nal_sei(GetBitContext *gb, void *logctx, HEVCSEI *s,
89 #endif /* AVCODEC_HEVC_SEI_H */