VA-API  2.19.0
Public Attributes | List of all members
VAEncSequenceParameterBufferMPEG2 Struct Reference

Sequence parameter for MPEG-2 encoding. More...

#include <va_enc_mpeg2.h>

Public Attributes

uint32_t intra_period
 Period between I frames.
 
uint32_t ip_period
 Period between I/P frames.
 
uint16_t picture_width
 Picture width. More...
 
uint16_t picture_height
 Picture height. More...
 
uint32_t bits_per_second
 Initial bitrate set for this sequence in CBR or VBR modes. More...
 
float frame_rate
 Frame rate. More...
 
uint16_t aspect_ratio_information
 Same as the element in sequence_header()
 
uint32_t vbv_buffer_size
 Define the size of VBV.
 
uint32_t new_gop_header
 Flag to indicate the following GOP header are being updated.
 
uint32_t va_reserved [VA_PADDING_LOW]
 Reserved bytes for future use, must be zero.
 
uint32_t profile_and_level_indication: 8
 Same as the element in Sequence extension()
 
uint32_t progressive_sequence: 1
 Same as the element in Sequence extension()
 
uint32_t chroma_format: 2
 Same as the element in Sequence extension()
 
uint32_t low_delay: 1
 Same as the element in Sequence extension()
 
uint32_t frame_rate_extension_n: 2
 Same as the element in Sequence extension()
 
uint32_t frame_rate_extension_d: 5
 Same as the element in Sequence extension()
 
uint32_t time_code: 25
 Time code.
 
uint32_t closed_gop: 1
 Same as the element in GOP header.
 
uint32_t broken_link: 1
 SAme as the element in GOP header.
 

Detailed Description

Sequence parameter for MPEG-2 encoding.

This structure holds information for sequence_header() and sequence_extension().

If packed sequence headers mode is used, i.e. if the encoding pipeline was configured with the VA_ENC_PACKED_HEADER_SEQUENCE flag, then the driver expects two more buffers to be provided to the same vaRenderPicture() as this buffer:

Member Data Documentation

◆ bits_per_second

uint32_t VAEncSequenceParameterBufferMPEG2::bits_per_second

Initial bitrate set for this sequence in CBR or VBR modes.

This field represents the initial bitrate value for this sequence if CBR or VBR mode is used, i.e. if the encoder pipeline was created with a #VAConfigAttribRateControl attribute set to either VA_RC_CBR or VA_RC_VBR.

bits_per_second may be derived from bit_rate.

◆ frame_rate

float VAEncSequenceParameterBufferMPEG2::frame_rate

Frame rate.

Derived from frame_rate_value, frame_rate_extension_n and frame_rate_extension_d

◆ picture_height

uint16_t VAEncSequenceParameterBufferMPEG2::picture_height

Picture height.

A 14bits unsigned inter, the lower 12bits is vertical_size_value, and the upper 2bits is vertical_size_size_extension

◆ picture_width

uint16_t VAEncSequenceParameterBufferMPEG2::picture_width

Picture width.

A 14bits unsigned inter, the lower 12bits is horizontal_size_value, and the upper 2bits is horizontal_size_extension


The documentation for this struct was generated from the following file: