FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 "libavutil/md5.h"
27 
28 #include "get_bits.h"
29 
30 /**
31  * SEI message types
32  */
33 typedef enum {
61 
62 typedef struct HEVCSEIPictureHash {
63  struct AVMD5 *md5_ctx;
64  uint8_t md5[3][16];
67 
68 typedef struct HEVCSEIFramePacking {
69  int present;
74 
75 typedef struct HEVCSEIDisplayOrientation {
76  int present;
78  int hflip, vflip;
80 
81 typedef struct HEVCSEIPictureTiming {
84 
85 typedef struct HEVCSEIA53Caption {
89 
90 typedef struct HEVCSEIMasteringDisplay {
91  int present;
92  uint16_t display_primaries[3][2];
93  uint16_t white_point[2];
94  uint32_t max_luminance;
95  uint32_t min_luminance;
97 
98 typedef struct HEVCSEIContentLight {
99  int present;
103 
105  int present;
108 
109 typedef struct HEVCSEIContext {
120 
121 struct HEVCParamSets;
122 
123 int ff_hevc_decode_nal_sei(GetBitContext *gb, void *logctx, HEVCSEIContext *s,
124  const struct HEVCParamSets *ps, int type);
125 
126 /**
127  * Reset SEI values that are stored on the Context.
128  * e.g. Caption data that was extracted during NAL
129  * parsing.
130  *
131  * @param s HEVCContext.
132  */
134 
135 #endif /* AVCODEC_HEVC_SEI_H */
const char * s
Definition: avisynth_c.h:768
HEVCSEIPictureTiming picture_timing
Definition: hevc_sei.h:113
HEVCSEIDisplayOrientation display_orientation
Definition: hevc_sei.h:112
uint8_t is_md5
Definition: hevc_sei.h:65
int a53_caption_size
Definition: hevc_sei.h:86
uint8_t
bitstream reader API header.
int quincunx_subsampling
Definition: hevc_sei.h:72
Definition: md5.c:40
int content_interpretation_type
Definition: hevc_sei.h:71
uint8_t md5[3][16]
Definition: hevc_sei.h:64
HEVCSEIMasteringDisplay mastering_display
Definition: hevc_sei.h:115
HEVCSEIPictureHash picture_hash
Definition: hevc_sei.h:110
HEVCSEIContentLight content_light
Definition: hevc_sei.h:116
int ff_hevc_decode_nal_sei(GetBitContext *gb, void *logctx, HEVCSEIContext *s, const struct HEVCParamSets *ps, int type)
int active_seq_parameter_set_id
Definition: hevc_sei.h:117
struct AVMD5 * md5_ctx
Definition: hevc_sei.h:63
GLint GLenum type
Definition: opengl_enc.c:105
void ff_hevc_reset_sei(HEVCSEIContext *s)
Reset SEI values that are stored on the Context.
Definition: hevc_sei.c:360
uint16_t max_pic_average_light_level
Definition: hevc_sei.h:101
HEVCSEIAlternativeTransfer alternative_transfer
Definition: hevc_sei.h:118
HEVCSEIA53Caption a53_caption
Definition: hevc_sei.h:114
uint8_t * a53_caption
Definition: hevc_sei.h:87
HEVC_SEI_Type
SEI message types.
Definition: hevc_sei.h:33
uint16_t max_content_light_level
Definition: hevc_sei.h:100
uint32_t max_luminance
Definition: hevc_sei.h:94
HEVCSEIFramePacking frame_packing
Definition: hevc_sei.h:111
uint32_t min_luminance
Definition: hevc_sei.h:95
Public header for MD5 hash function implementation.
uint16_t white_point[2]
Definition: hevc_sei.h:93
uint16_t display_primaries[3][2]
Definition: hevc_sei.h:92