From d94dda742c8eab3141197270fb78063ed22442aa Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Mon, 7 May 2018 23:33:08 +0100 Subject: cbs_h264: Add support for pan-scan rectangle SEI messages --- libavcodec/cbs_h264.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libavcodec/cbs_h264.h') diff --git a/libavcodec/cbs_h264.h b/libavcodec/cbs_h264.h index d953c1f66b..bc1ce1256f 100644 --- a/libavcodec/cbs_h264.h +++ b/libavcodec/cbs_h264.h @@ -264,6 +264,17 @@ typedef struct H264RawSEIPicTiming { H264RawSEIPicTimestamp timestamp[3]; } H264RawSEIPicTiming; +typedef struct H264RawSEIPanScanRect { + uint32_t pan_scan_rect_id; + uint8_t pan_scan_rect_cancel_flag; + uint8_t pan_scan_cnt_minus1; + int32_t pan_scan_rect_left_offset[3]; + int32_t pan_scan_rect_right_offset[3]; + int32_t pan_scan_rect_top_offset[3]; + int32_t pan_scan_rect_bottom_offset[3]; + uint16_t pan_scan_rect_repetition_period; +} H264RawSEIPanScanRect; + typedef struct H264RawSEIUserDataRegistered { uint8_t itu_t_t35_country_code; uint8_t itu_t_t35_country_code_extension_byte; @@ -301,6 +312,7 @@ typedef struct H264RawSEIPayload { union { H264RawSEIBufferingPeriod buffering_period; H264RawSEIPicTiming pic_timing; + H264RawSEIPanScanRect pan_scan_rect; // H264RawSEIFiller filler -> no fields. H264RawSEIUserDataRegistered user_data_registered; H264RawSEIUserDataUnregistered user_data_unregistered; -- cgit v1.2.3