mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
vc1: cope with latest codecparser changes.
Fix build with newer VC-1 codecparser where dqsbedge was renamed to dqbedge, and now represents either DQSBEDGE or DQDBEDGE depending on the actual value of DQPROFILE.
This commit is contained in:
parent
56c31ca1c9
commit
ee181d1b85
1 changed files with 7 additions and 6 deletions
|
@ -734,6 +734,7 @@ fill_picture(GstVaapiDecoderVC1 *decoder, GstVaapiPicture *picture)
|
|||
VAPictureParameterBufferVC1 * const pic_param = picture->param;
|
||||
GstVC1SeqHdr * const seq_hdr = &priv->seq_hdr;
|
||||
GstVC1FrameHdr * const frame_hdr = &priv->frame_hdr;
|
||||
GstVC1VopDquant * const vopdquant = &frame_hdr->vopdquant;
|
||||
GstVaapiPicture *prev_picture, *next_picture;
|
||||
|
||||
/* Fill in VAPictureParameterBufferVC1 (common fields) */
|
||||
|
@ -760,12 +761,12 @@ fill_picture(GstVaapiDecoderVC1 *decoder, GstVaapiPicture *picture)
|
|||
pic_param->pic_quantizer_fields.bits.half_qp = frame_hdr->halfqp;
|
||||
pic_param->pic_quantizer_fields.bits.pic_quantizer_scale = frame_hdr->pquant;
|
||||
pic_param->pic_quantizer_fields.bits.pic_quantizer_type = frame_hdr->pquantizer;
|
||||
pic_param->pic_quantizer_fields.bits.dq_frame = frame_hdr->vopdquant.dquantfrm;
|
||||
pic_param->pic_quantizer_fields.bits.dq_profile = frame_hdr->vopdquant.dqprofile;
|
||||
pic_param->pic_quantizer_fields.bits.dq_sb_edge = frame_hdr->vopdquant.dqsbedge;
|
||||
pic_param->pic_quantizer_fields.bits.dq_db_edge = frame_hdr->vopdquant.dqsbedge;
|
||||
pic_param->pic_quantizer_fields.bits.dq_binary_level = frame_hdr->vopdquant.dqbilevel;
|
||||
pic_param->pic_quantizer_fields.bits.alt_pic_quantizer = frame_hdr->vopdquant.altpquant;
|
||||
pic_param->pic_quantizer_fields.bits.dq_frame = vopdquant->dquantfrm;
|
||||
pic_param->pic_quantizer_fields.bits.dq_profile = vopdquant->dqprofile;
|
||||
pic_param->pic_quantizer_fields.bits.dq_sb_edge = vopdquant->dqprofile == GST_VC1_DQPROFILE_SINGLE_EDGE ? vopdquant->dqbedge : 0;
|
||||
pic_param->pic_quantizer_fields.bits.dq_db_edge = vopdquant->dqprofile == GST_VC1_DQPROFILE_DOUBLE_EDGES ? vopdquant->dqbedge : 0;
|
||||
pic_param->pic_quantizer_fields.bits.dq_binary_level = vopdquant->dqbilevel;
|
||||
pic_param->pic_quantizer_fields.bits.alt_pic_quantizer = vopdquant->altpquant;
|
||||
pic_param->transform_fields.value = 0;
|
||||
pic_param->transform_fields.bits.transform_ac_codingset_idx1 = frame_hdr->transacfrm;
|
||||
pic_param->transform_fields.bits.intra_transform_dc_table = frame_hdr->transdctab;
|
||||
|
|
Loading…
Reference in a new issue