summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_sei.h
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-06-15 20:55:17 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-06-28 21:00:52 +0800
commit78f787c2e7fdf6416866ba8ca7a5eaff7f0f8c23 (patch)
treed8c1c559e8c3418972cde3d8316e82c91ce72ffd /libavcodec/hevc_sei.h
parentacca2aecb05cf254262969ced5e5dfd1c9be7a73 (diff)
avcodec/hevc_sei: support HEVC timecode decode
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavcodec/hevc_sei.h')
-rw-r--r--libavcodec/hevc_sei.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/libavcodec/hevc_sei.h b/libavcodec/hevc_sei.h
index 3618d162df..5ee7a4796d 100644
--- a/libavcodec/hevc_sei.h
+++ b/libavcodec/hevc_sei.h
@@ -115,6 +115,26 @@ typedef struct HEVCSEIAlternativeTransfer {
int preferred_transfer_characteristics;
} HEVCSEIAlternativeTransfer;
+typedef struct HEVCSEITimeCode {
+ int present;
+ uint8_t num_clock_ts;
+ uint8_t clock_timestamp_flag[3];
+ uint8_t units_field_based_flag[3];
+ uint8_t counting_type[3];
+ uint8_t full_timestamp_flag[3];
+ uint8_t discontinuity_flag[3];
+ uint8_t cnt_dropped_flag[3];
+ uint16_t n_frames[3];
+ uint8_t seconds_value[3];
+ uint8_t minutes_value[3];
+ uint8_t hours_value[3];
+ uint8_t seconds_flag[3];
+ uint8_t minutes_flag[3];
+ uint8_t hours_flag[3];
+ uint8_t time_offset_length[3];
+ int32_t time_offset_value[3];
+} HEVCSEITimeCode;
+
typedef struct HEVCSEI {
HEVCSEIPictureHash picture_hash;
HEVCSEIFramePacking frame_packing;
@@ -126,6 +146,7 @@ typedef struct HEVCSEI {
HEVCSEIContentLight content_light;
int active_seq_parameter_set_id;
HEVCSEIAlternativeTransfer alternative_transfer;
+ HEVCSEITimeCode timecode;
} HEVCSEI;
struct HEVCParamSets;