VA-API
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
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

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

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

unsigned int 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.

unsigned char 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: