32 #ifndef _VA_ENC_MPEG2_H_
33 #define _VA_ENC_MPEG2_H_
90 typedef struct _VAEncSequenceParameterBufferMPEG2 {
152 } sequence_extension;
189 typedef struct _VAEncPictureParameterBufferMPEG2 {
219 uint8_t f_code[2][2];
246 } picture_coding_extension;
276 typedef struct _VAEncSliceParameterBufferMPEG2 {
290 typedef struct _VAEncMiscParameterExtensionDataSeqDisplayMPEG2 {
292 uint8_t extension_start_code_identifier;
294 uint8_t video_format;
295 uint8_t colour_description;
296 uint8_t colour_primaries;
297 uint8_t transfer_characteristics;
298 uint8_t matrix_coefficients;
299 uint16_t display_horizontal_size;
300 uint16_t display_vertical_size;
301 } VAEncMiscParameterExtensionDataSeqDisplayMPEG2;
#define VA_PADDING_LOW
Definition: va.h:360
VAGenericID VABufferID
Definition: va.h:2019
@ VAEncPackedHeaderPicture
Packed picture header.
Definition: va.h:2400
@ VAEncPackedHeaderSequence
Packed sequence header.
Definition: va.h:2398
@ VAEncPackedHeaderSlice
Packed slice header.
Definition: va.h:2402
VAIQMatrixBufferMPEG2 VAQMatrixBufferMPEG2
MPEG-2 Quantization Matrix Buffer.
Definition: va_enc_mpeg2.h:49
VAEncPackedHeaderTypeMPEG2
Packed header types specific to MPEG-2 encoding.
Definition: va_enc_mpeg2.h:56
@ VAEncPackedHeaderMPEG2_PPS
Packed Picture Parameter Set (PPS).
Definition: va_enc_mpeg2.h:66
@ VAEncPackedHeaderMPEG2_SPS
Packed Sequence Parameter Set (SPS).
Definition: va_enc_mpeg2.h:61
@ VAEncPackedHeaderMPEG2_Slice
Packed slice header.
Definition: va_enc_mpeg2.h:71
Picture parameter for MPEG-2 encoding.
Definition: va_enc_mpeg2.h:189
VABufferID coded_buf
Output encoded bitstream.
Definition: va_enc_mpeg2.h:203
uint32_t intra_vlc_format
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:235
uint32_t q_scale_type
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:233
uint32_t alternate_scan
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:237
VASurfaceID forward_reference_picture
Forward reference picture.
Definition: va_enc_mpeg2.h:191
VASurfaceID backward_reference_picture
Backward reference picture.
Definition: va_enc_mpeg2.h:193
uint32_t frame_pred_frame_dct
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:229
uint32_t concealment_motion_vectors
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:231
uint32_t temporal_reference
Same as the element in picture_header()
Definition: va_enc_mpeg2.h:215
uint32_t sub_carrier_phase
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:263
VASurfaceID reconstructed_picture
Reconstructed(decoded) picture.
Definition: va_enc_mpeg2.h:195
uint32_t vbv_delay
Same as the element in picture_header()
Definition: va_enc_mpeg2.h:217
uint32_t picture_structure
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:225
uint8_t last_picture
Flag to indicate the picture is the last one or not.
Definition: va_enc_mpeg2.h:211
uint32_t composite_display_flag
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:243
uint32_t burst_amplitude
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:261
VAEncPictureType picture_type
Picture type.
Definition: va_enc_mpeg2.h:213
uint32_t field_sequence
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:257
uint32_t top_field_first
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:227
uint32_t repeat_first_field
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:239
uint32_t sub_carrier
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:259
uint32_t progressive_frame
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:241
uint32_t intra_dc_precision
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:223
uint32_t v_axis
Same as the element in Picture coding extension.
Definition: va_enc_mpeg2.h:255
Sequence parameter for MPEG-2 encoding.
Definition: va_enc_mpeg2.h:90
uint32_t intra_period
Period between I frames.
Definition: va_enc_mpeg2.h:92
float frame_rate
Frame rate.
Definition: va_enc_mpeg2.h:130
uint32_t frame_rate_extension_d
Same as the element in Sequence extension()
Definition: va_enc_mpeg2.h:149
uint32_t vbv_buffer_size
Define the size of VBV.
Definition: va_enc_mpeg2.h:134
uint32_t time_code
Time code.
Definition: va_enc_mpeg2.h:160
uint32_t progressive_sequence
Same as the element in Sequence extension()
Definition: va_enc_mpeg2.h:141
uint32_t broken_link
SAme as the element in GOP header.
Definition: va_enc_mpeg2.h:164
uint32_t frame_rate_extension_n
Same as the element in Sequence extension()
Definition: va_enc_mpeg2.h:147
uint32_t chroma_format
Same as the element in Sequence extension()
Definition: va_enc_mpeg2.h:143
uint32_t profile_and_level_indication
Same as the element in Sequence extension()
Definition: va_enc_mpeg2.h:139
uint32_t bits_per_second
Initial bitrate set for this sequence in CBR or VBR modes.
Definition: va_enc_mpeg2.h:122
uint32_t closed_gop
Same as the element in GOP header.
Definition: va_enc_mpeg2.h:162
uint16_t aspect_ratio_information
Same as the element in sequence_header()
Definition: va_enc_mpeg2.h:132
uint16_t picture_width
Picture width.
Definition: va_enc_mpeg2.h:102
uint32_t ip_period
Period between I/P frames.
Definition: va_enc_mpeg2.h:94
uint16_t picture_height
Picture height.
Definition: va_enc_mpeg2.h:110
uint32_t new_gop_header
Flag to indicate the following GOP header are being updated.
Definition: va_enc_mpeg2.h:155
uint32_t low_delay
Same as the element in Sequence extension()
Definition: va_enc_mpeg2.h:145
Slice parameter for MPEG-2 encoding.
Definition: va_enc_mpeg2.h:276
int32_t quantiser_scale_code
Same as the element in slice()
Definition: va_enc_mpeg2.h:282
uint32_t num_macroblocks
Number of macroblocks in this slice.
Definition: va_enc_mpeg2.h:280
uint32_t macroblock_address
Starting MB address for this slice.
Definition: va_enc_mpeg2.h:278
int32_t is_intra_slice
Flag to indicate intra slice.
Definition: va_enc_mpeg2.h:284