23 #include "config_components.h" 
   35     switch (
s->intra_dc_threshold) {
 
   53     VAPictureParameterBufferMPEG4 pic_param;
 
   58     pic_param = (VAPictureParameterBufferMPEG4) {
 
   59         .vop_width                        = 
s->width,
 
   60         .vop_height                       = 
s->height,
 
   61         .forward_reference_picture        = VA_INVALID_ID,
 
   62         .backward_reference_picture       = VA_INVALID_ID,
 
   66             .interlaced                   = !
s->progressive_sequence,
 
   68             .sprite_enable                = 
ctx->vol_sprite_usage,
 
   69             .sprite_warping_accuracy      = 
ctx->sprite_warping_accuracy,
 
   70             .quant_type                   = 
s->mpeg_quant,
 
   71             .quarter_sample               = 
s->quarter_sample,
 
   72             .data_partitioned             = 
s->data_partitioning,
 
   73             .reversible_vlc               = 
ctx->rvlc,
 
   74             .resync_marker_disable        = !
ctx->resync_marker,
 
   76         .no_of_sprite_warping_points      = 
ctx->num_sprite_warping_points,
 
   77         .quant_precision                  = 
s->quant_precision,
 
   80             .backward_reference_vop_coding_type =
 
   82             .vop_rounding_type            = 
s->no_rounding,
 
   84             .top_field_first              = 
s->top_field_first,
 
   85             .alternate_vertical_scan_flag = 
s->alternate_scan,
 
   87         .vop_fcode_forward                = 
s->f_code,
 
   88         .vop_fcode_backward               = 
s->b_code,
 
   97     for (
i = 0; 
i < 
ctx->num_sprite_warping_points && 
i < 3; 
i++) {
 
   98         pic_param.sprite_trajectory_du[
i]              = 
ctx->sprite_traj[
i][0];
 
   99         pic_param.sprite_trajectory_dv[
i]              = 
ctx->sprite_traj[
i][1];
 
  108                                             VAPictureParameterBufferType,
 
  109                                             &pic_param, 
sizeof(pic_param));
 
  114     if (pic_param.vol_fields.bits.quant_type) {
 
  115         VAIQMatrixBufferMPEG4 iq_matrix;
 
  117         iq_matrix.load_intra_quant_mat     = 1;
 
  118         iq_matrix.load_non_intra_quant_mat = 1;
 
  120         for (
i = 0; 
i < 64; 
i++) {
 
  122             iq_matrix.intra_quant_mat[
i]     = 
s->intra_matrix[n];
 
  123             iq_matrix.non_intra_quant_mat[
i] = 
s->inter_matrix[n];
 
  127                                                 VAIQMatrixBufferType,
 
  128                                                 &iq_matrix, 
sizeof(iq_matrix));
 
  159     VASliceParameterBufferMPEG4 slice_param;
 
  162     slice_param = (VASliceParameterBufferMPEG4) {
 
  163         .slice_data_size   = 
size,
 
  164         .slice_data_offset = 0,
 
  165         .slice_data_flag   = VA_SLICE_DATA_FLAG_ALL,
 
  167         .macroblock_number = 0,
 
  168         .quant_scale       = 
s->qscale,
 
  172                                             &slice_param, 
sizeof(slice_param),
 
  182 #if CONFIG_MPEG4_VAAPI_HWACCEL 
  184     .
name                 = 
"mpeg4_vaapi",
 
  200 #if CONFIG_H263_VAAPI_HWACCEL 
  202     .
name                 = 
"h263_vaapi",