46 VAPictureParameterBufferMPEG4 *pic_param;
47 VAIQMatrixBufferMPEG4 *iq_matrix;
50 av_dlog(avctx,
"vaapi_mpeg4_start_frame()\n");
58 pic_param->vop_width = s->
width;
59 pic_param->vop_height = s->
height;
60 pic_param->forward_reference_picture = VA_INVALID_ID;
61 pic_param->backward_reference_picture = VA_INVALID_ID;
62 pic_param->vol_fields.value = 0;
64 pic_param->vol_fields.bits.chroma_format =
CHROMA_420;
66 pic_param->vol_fields.bits.obmc_disable = 1;
69 pic_param->vol_fields.bits.quant_type = s->
mpeg_quant;
72 pic_param->vol_fields.bits.reversible_vlc = s->
rvlc;
73 pic_param->vol_fields.bits.resync_marker_disable = !s->
resync_marker;
76 pic_param->sprite_trajectory_du[i] = s->
sprite_traj[i][0];
77 pic_param->sprite_trajectory_dv[i] = s->
sprite_traj[i][1];
80 pic_param->vop_fields.value = 0;
83 pic_param->vop_fields.bits.vop_rounding_type = s->
no_rounding;
86 pic_param->vop_fields.bits.alternate_vertical_scan_flag = s->
alternate_scan;
87 pic_param->vop_fcode_forward = s->
f_code;
88 pic_param->vop_fcode_backward = s->
b_code;
89 pic_param->vop_time_increment_resolution = avctx->
time_base.
den;
91 pic_param->num_gobs_in_vop = (s->
mb_width * s->
mb_height) / pic_param->num_macroblocks_in_gob;
102 if (pic_param->vol_fields.bits.quant_type) {
106 iq_matrix->load_intra_quant_mat = 1;
107 iq_matrix->load_non_intra_quant_mat = 1;
109 for (i = 0; i < 64; i++) {
126 VASliceParameterBufferMPEG4 *slice_param;
128 av_dlog(avctx,
"vaapi_mpeg4_decode_slice(): buffer %p, size %d\n", buffer, size);
144 slice_param->quant_scale = s->
qscale;
152 #if CONFIG_MPEG4_VAAPI_HWACCEL
154 .
name =
"mpeg4_vaapi",
164 #if CONFIG_H263_VAAPI_HWACCEL
166 .
name =
"h263_vaapi",