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

Sequence parameter for H.264 encoding in baseline, main & high profiles. More...

#include <va_enc_h264.h>

Public Attributes

uint8_t seq_parameter_set_id
 Same as the H.264 bitstream syntax element.
 
uint8_t level_idc
 Same as the H.264 bitstream syntax element.
 
uint32_t intra_period
 Period between I frames.
 
uint32_t intra_idr_period
 Period between IDR frames.
 
uint32_t ip_period
 Period between I/P frames.
 
uint32_t bits_per_second
 Initial bitrate set for this sequence in CBR or VBR modes. More...
 
uint32_t max_num_ref_frames
 Same as the H.264 bitstream syntax element.
 
uint16_t picture_width_in_mbs
 Picture width in macroblocks.
 
uint16_t picture_height_in_mbs
 Picture height in macroblocks.
 
uint8_t bit_depth_luma_minus8
 Same as the H.264 bitstream syntax element.
 
uint8_t bit_depth_chroma_minus8
 Same as the H.264 bitstream syntax element.
 
uint32_t chroma_format_idc: 2
 Same as the H.264 bitstream syntax element.
 
uint32_t frame_mbs_only_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t mb_adaptive_frame_field_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t seq_scaling_matrix_present_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t direct_8x8_inference_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t log2_max_frame_num_minus4: 4
 Same as the H.264 bitstream syntax element.
 
uint32_t pic_order_cnt_type: 2
 Same as the H.264 bitstream syntax element.
 
uint32_t log2_max_pic_order_cnt_lsb_minus4: 4
 Same as the H.264 bitstream syntax element.
 
uint32_t delta_pic_order_always_zero_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t aspect_ratio_info_present_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t timing_info_present_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t bitstream_restriction_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t log2_max_mv_length_horizontal: 5
 Range: 0 to 16, inclusive.
 
uint32_t log2_max_mv_length_vertical: 5
 Range: 0 to 16, inclusive.
 
uint32_t fixed_frame_rate_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t low_delay_hrd_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t motion_vectors_over_pic_boundaries_flag: 1
 Same as the H.264 bitstream syntax element.
 
uint32_t reserved: 16
 Reserved for future use, must be zero.
 
uint8_t num_ref_frames_in_pic_order_cnt_cycle
 Same as the H.264 bitstream syntax element. More...
 
int32_t offset_for_non_ref_pic
 Same as the H.264 bitstream syntax element.
 
int32_t offset_for_top_to_bottom_field
 Same as the H.264 bitstream syntax element.
 
int32_t offset_for_ref_frame [256]
 Same as the H.264 bitstream syntax element.
 
Cropping (optional)
uint8_t frame_cropping_flag
 Same as the H.264 bitstream syntax element.
 
uint32_t frame_crop_left_offset
 Same as the H.264 bitstream syntax element.
 
uint32_t frame_crop_right_offset
 Same as the H.264 bitstream syntax element.
 
uint32_t frame_crop_top_offset
 Same as the H.264 bitstream syntax element.
 
uint32_t frame_crop_bottom_offset
 Same as the H.264 bitstream syntax element.
 
VUI parameters (optional)
uint8_t vui_parameters_present_flag
 Same as the H.264 bitstream syntax element.
 
union {
vui_fields
 
uint8_t aspect_ratio_idc
 Same as the H.264 bitstream syntax element.
 
uint32_t sar_width
 Same as the H.264 bitstream syntax element.
 
uint32_t sar_height
 Same as the H.264 bitstream syntax element.
 
uint32_t num_units_in_tick
 Same as the H.264 bitstream syntax element.
 
uint32_t time_scale
 Same as the H.264 bitstream syntax element.
 
uint32_t va_reserved [VA_PADDING_LOW]
 Reserved bytes for future use, must be zero.
 

Detailed Description

Sequence parameter for H.264 encoding in baseline, main & high profiles.

This structure holds information for seq_parameter_set_data() as defined by the H.264 specification.

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:

If seq_scaling_matrix_present_flag is set to 1, then a VAIQMatrixBufferH264 buffer shall also be provided within the same vaRenderPicture() call as this sequence parameter buffer.

Member Data Documentation

◆ bits_per_second

uint32_t VAEncSequenceParameterBufferH264::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.

The bitrate can be modified later on through VAEncMiscParameterRateControl buffers.

◆ num_ref_frames_in_pic_order_cnt_cycle

uint8_t VAEncSequenceParameterBufferH264::num_ref_frames_in_pic_order_cnt_cycle

Same as the H.264 bitstream syntax element.

if pic_order_cnt_type == 1


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