FFmpeg  4.4.6
hevc_sei.h
Go to the documentation of this file.
1 /*
2  * HEVC Supplementary Enhancement Information messages
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg 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.
10  *
11  * FFmpeg 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.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVCODEC_HEVC_SEI_H
22 #define AVCODEC_HEVC_SEI_H
23 
24 #include <stdint.h>
25 
26 #include "get_bits.h"
27 #include "sei.h"
28 
29 
30 typedef enum {
34 
35 typedef struct HEVCSEIPictureHash {
36  uint8_t md5[3][16];
39 
40 typedef struct HEVCSEIFramePacking {
41  int present;
47 
48 typedef struct HEVCSEIDisplayOrientation {
49  int present;
51  int hflip, vflip;
53 
54 typedef struct HEVCSEIPictureTiming {
57 
58 typedef struct HEVCSEIA53Caption {
61 
62 typedef struct HEVCSEIUnregistered {
66 
67 typedef struct HEVCSEIMasteringDisplay {
68  int present;
69  uint16_t display_primaries[3][2];
70  uint16_t white_point[2];
71  uint32_t max_luminance;
72  uint32_t min_luminance;
74 
75 typedef struct HEVCSEIDynamicHDRPlus {
78 
79 typedef struct HEVCSEIContentLight {
80  int present;
84 
86  int present;
89 
90 typedef struct HEVCSEITimeCode {
91  int present;
99  uint16_t n_frames[3];
109 
110 typedef struct HEVCSEI {
123 } HEVCSEI;
124 
125 struct HEVCParamSets;
126 
128  const struct HEVCParamSets *ps, int type);
129 
130 /**
131  * Reset SEI values that are stored on the Context.
132  * e.g. Caption data that was extracted during NAL
133  * parsing.
134  *
135  * @param s HEVCContext.
136  */
138 
139 #endif /* AVCODEC_HEVC_SEI_H */
uint8_t
int32_t
#define s(width, name)
Definition: cbs_vp9.c:257
bitstream reader API header.
HEVC_SEI_PicStructType
Definition: hevc_sei.h:30
@ HEVC_SEI_PIC_STRUCT_FRAME_DOUBLING
Definition: hevc_sei.h:31
@ HEVC_SEI_PIC_STRUCT_FRAME_TRIPLING
Definition: hevc_sei.h:32
void ff_hevc_reset_sei(HEVCSEI *s)
Reset SEI values that are stored on the Context.
Definition: hevc_sei.c:493
int ff_hevc_decode_nal_sei(GetBitContext *gb, void *logctx, HEVCSEI *s, const struct HEVCParamSets *ps, int type)
cl_device_type type
A reference to a data buffer.
Definition: buffer.h:84
AVBufferRef * buf_ref
Definition: hevc_sei.h:59
int preferred_transfer_characteristics
Definition: hevc_sei.h:87
uint16_t max_pic_average_light_level
Definition: hevc_sei.h:82
uint16_t max_content_light_level
Definition: hevc_sei.h:81
AVBufferRef * info
Definition: hevc_sei.h:76
int quincunx_subsampling
Definition: hevc_sei.h:44
int current_frame_is_frame0_flag
Definition: hevc_sei.h:45
int content_interpretation_type
Definition: hevc_sei.h:43
uint32_t max_luminance
Definition: hevc_sei.h:71
uint16_t white_point[2]
Definition: hevc_sei.h:70
uint16_t display_primaries[3][2]
Definition: hevc_sei.h:69
uint32_t min_luminance
Definition: hevc_sei.h:72
uint8_t md5[3][16]
Definition: hevc_sei.h:36
uint8_t is_md5
Definition: hevc_sei.h:37
uint8_t full_timestamp_flag[3]
Definition: hevc_sei.h:96
uint8_t clock_timestamp_flag[3]
Definition: hevc_sei.h:93
uint8_t hours_flag[3]
Definition: hevc_sei.h:105
uint8_t seconds_flag[3]
Definition: hevc_sei.h:103
uint8_t num_clock_ts
Definition: hevc_sei.h:92
uint8_t time_offset_length[3]
Definition: hevc_sei.h:106
uint8_t counting_type[3]
Definition: hevc_sei.h:95
uint8_t hours_value[3]
Definition: hevc_sei.h:102
uint8_t seconds_value[3]
Definition: hevc_sei.h:100
uint8_t minutes_value[3]
Definition: hevc_sei.h:101
int32_t time_offset_value[3]
Definition: hevc_sei.h:107
uint8_t minutes_flag[3]
Definition: hevc_sei.h:104
uint16_t n_frames[3]
Definition: hevc_sei.h:99
uint8_t discontinuity_flag[3]
Definition: hevc_sei.h:97
uint8_t units_field_based_flag[3]
Definition: hevc_sei.h:94
uint8_t cnt_dropped_flag[3]
Definition: hevc_sei.h:98
AVBufferRef ** buf_ref
Definition: hevc_sei.h:63
HEVCSEIA53Caption a53_caption
Definition: hevc_sei.h:115
HEVCSEIContentLight content_light
Definition: hevc_sei.h:119
HEVCSEIPictureTiming picture_timing
Definition: hevc_sei.h:114
HEVCSEIMasteringDisplay mastering_display
Definition: hevc_sei.h:117
HEVCSEIAlternativeTransfer alternative_transfer
Definition: hevc_sei.h:121
HEVCSEIUnregistered unregistered
Definition: hevc_sei.h:116
HEVCSEIDynamicHDRPlus dynamic_hdr_plus
Definition: hevc_sei.h:118
HEVCSEIPictureHash picture_hash
Definition: hevc_sei.h:111
HEVCSEIDisplayOrientation display_orientation
Definition: hevc_sei.h:113
int active_seq_parameter_set_id
Definition: hevc_sei.h:120
HEVCSEIFramePacking frame_packing
Definition: hevc_sei.h:112
HEVCSEITimeCode timecode
Definition: hevc_sei.h:122