summaryrefslogtreecommitdiff
path: root/libavcodec/h264_sei.h
diff options
context:
space:
mode:
authorJosh de Kock <joshdk@obe.tv>2018-10-12 13:38:26 +0100
committerKieran Kunhya <kierank@obe.tv>2018-10-23 15:46:30 +0100
commit76a8c3b522bf1000b327e8aea28710716c057cb9 (patch)
treefee60e5572cddd66a0f2dc52bc7bad86cb3d155c /libavcodec/h264_sei.h
parent4241e44a3c0193d182d3d614e7b4977c00c0225c (diff)
downloadffmpeg-76a8c3b522bf1000b327e8aea28710716c057cb9.tar.gz
h264/pic_timing: support multiple timecodes
Diffstat (limited to 'libavcodec/h264_sei.h')
-rw-r--r--libavcodec/h264_sei.h28
1 files changed, 20 insertions, 8 deletions
diff --git a/libavcodec/h264_sei.h b/libavcodec/h264_sei.h
index 3b8806be0a..a75c3aa175 100644
--- a/libavcodec/h264_sei.h
+++ b/libavcodec/h264_sei.h
@@ -67,6 +67,17 @@ typedef enum {
H264_SEI_FPA_TYPE_2D = 6,
} H264_SEI_FpaType;
+typedef struct H264SEITimeCode {
+ /* When not continuously receiving full timecodes, we have to reference
+ the previous timecode received */
+ int full;
+ int frame;
+ int seconds;
+ int minutes;
+ int hours;
+ int dropframe;
+} H264SEITimeCode;
+
typedef struct H264SEIPictureTiming {
int present;
H264_SEI_PicStructType pic_struct;
@@ -88,14 +99,15 @@ typedef struct H264SEIPictureTiming {
*/
int cpb_removal_delay;
- /* When not continuously receiving full timecodes, we have to reference
- the previous timecode received */
- int fulltc_received;
- int tc_frames;
- int tc_seconds;
- int tc_minutes;
- int tc_hours;
- int tc_dropframe;
+ /**
+ * Maximum three timecodes in a pic_timing SEI.
+ */
+ H264SEITimeCode timecode[3];
+
+ /**
+ * Number of timecode in use
+ */
+ int timecode_cnt;
} H264SEIPictureTiming;
typedef struct H264SEIAFD {