summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_mpeg2.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-09-09 23:30:32 +0100
committerMark Thompson <sw@jkqxz.net>2017-09-12 22:11:56 +0100
commita41b69b5eb950c10d8ede472bcc4e88ce4246db9 (patch)
tree1bb6d24bdbffade76642900de62a3883b829a3d2 /libavcodec/cbs_mpeg2.h
parent067a9ddeb8feff1f724856f0054930c55219f76b (diff)
downloadffmpeg-a41b69b5eb950c10d8ede472bcc4e88ce4246db9.tar.gz
cbs_mpeg2: Add support for picture display extension
Diffstat (limited to 'libavcodec/cbs_mpeg2.h')
-rw-r--r--libavcodec/cbs_mpeg2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/cbs_mpeg2.h b/libavcodec/cbs_mpeg2.h
index 32c4d4e2b1..0b6cb998dc 100644
--- a/libavcodec/cbs_mpeg2.h
+++ b/libavcodec/cbs_mpeg2.h
@@ -160,6 +160,11 @@ typedef struct MPEG2RawQuantMatrixExtension {
uint8_t chroma_non_intra_quantiser_matrix[64];
} MPEG2RawQuantMatrixExtension;
+typedef struct MPEG2RawPictureDisplayExtension {
+ uint16_t frame_centre_horizontal_offset[3];
+ uint16_t frame_centre_vertical_offset[3];
+} MPEG2RawPictureDisplayExtension;
+
typedef struct MPEG2RawExtensionData {
uint8_t extension_start_code;
uint8_t extension_start_code_identifier;
@@ -169,6 +174,7 @@ typedef struct MPEG2RawExtensionData {
MPEG2RawSequenceDisplayExtension sequence_display;
MPEG2RawQuantMatrixExtension quant_matrix;
MPEG2RawPictureCodingExtension picture_coding;
+ MPEG2RawPictureDisplayExtension picture_display;
} data;
} MPEG2RawExtensionData;
@@ -206,6 +212,8 @@ typedef struct CodedBitstreamMPEG2Context {
uint16_t vertical_size;
uint8_t scalable;
uint8_t scalable_mode;
+ uint8_t progressive_sequence;
+ uint8_t number_of_frame_centre_offsets;
// Write buffer.
uint8_t *write_buffer;