vah265dec: Don't need to pass picture structure to VA

This code came from gstvaapidecoder_h265 implementation
but picture structure is always GST_VAAPI_PICTURE_STRUCTURE_FRAME.
Moreover, in theory, VA doesn't need to know picture structure for
decoding HEVC stream.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2008>
This commit is contained in:
Seungha Yang 2021-02-10 00:59:05 +09:00 committed by GStreamer Merge Bot
parent ce8d7b83d5
commit b00b1654f3

View file

@ -193,20 +193,6 @@ _fill_vaapi_pic (GstH265Decoder * decoder, VAPictureHEVC * va_picture,
va_picture->flags |= VA_PICTURE_HEVC_LONG_TERM_REFERENCE;
va_picture->flags |= _find_frame_rps_type (decoder, picture);
switch (picture->field) {
case GST_H265_PICTURE_FIELD_FRAME:
break;
case GST_H265_PICTURE_FILED_TOP_FIELD:
va_picture->flags |= VA_PICTURE_HEVC_FIELD_PIC;
break;
case GST_H265_PICTURE_FIELD_BOTTOM_FIELD:
va_picture->flags |= VA_PICTURE_HEVC_FIELD_PIC;
va_picture->flags |= VA_PICTURE_HEVC_BOTTOM_FIELD;
break;
default:
break;
}
}
static guint8