gstreamer/sys/va
Víctor Manuel Jáquez Leal 4625ac92b6 va: mpeg2dec: refactor the picture reference filling
Add the helper function _get_surface_id() which extracts the
VASurfaceID from the passed picture. This function gets the surface of
the next and previous reference picture.

Instead of if-statements, this refactor uses a switch-statement with a
fall-through, for P-type pictures, making the code a bit more readable.

Also it adds quirks for gallium driver, which cannot handle invalid
surfaces as forwarding nor backwarding references, so the function fails.
Also iHD cannot handle them, but to avoid failing, the current picture
is used as self-reference.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1939>
2021-01-06 17:27:10 +01:00
..
gstvaallocator.c va: allocator: add a memory pool object helper 2020-11-24 13:00:00 +01:00
gstvaallocator.h va: pool, allocator: honor GST_BUFFER_POOL_ACQUIRE_FLAG_DONTWAIT 2020-11-24 12:44:24 +01:00
gstvabasedec.c va: basedec: Improve the decide_allocation(). 2020-11-17 01:21:54 +08:00
gstvabasedec.h va: Add mpeg2 VA decoder. 2020-12-28 13:14:06 +08:00
gstvacaps.c va: caps: added gst_caps_is_raw() 2020-10-09 16:34:57 +02:00
gstvacaps.h va: caps: added gst_caps_is_raw() 2020-10-09 16:34:57 +02:00
gstvadecoder.c va: Add mpeg2 VA decoder. 2020-12-28 13:14:06 +08:00
gstvadecoder.h va: decode: fix display type 2020-12-06 18:03:47 +01:00
gstvadevice.c va: device: use gst_clear_object() 2020-09-23 18:19:22 +02:00
gstvadevice.h va: VA-API H.264 decoder and infrastructure 2020-06-28 11:47:35 +02:00
gstvadisplay.c va: display: parse and set driver implementation 2021-01-05 17:54:34 +00:00
gstvadisplay.h va: display: parse and set driver implementation 2021-01-05 17:54:34 +00:00
gstvadisplay_drm.c va: VA-API H.264 decoder and infrastructure 2020-06-28 11:47:35 +02:00
gstvadisplay_drm.h va: VA-API H.264 decoder and infrastructure 2020-06-28 11:47:35 +02:00
gstvadisplay_wrapped.c va: display: wrapped: Fix property name 2020-08-03 19:33:01 +02:00
gstvadisplay_wrapped.h va: VA-API H.264 decoder and infrastructure 2020-06-28 11:47:35 +02:00
gstvafilter.c va: filter: fix counter variable reuse 2020-10-04 16:05:03 +02:00
gstvafilter.h va: add vapostproc element 2020-09-23 18:19:22 +02:00
gstvah264dec.c va: Remove gst_va_decoder_destroy_buffers() 2020-11-30 16:53:25 +01:00
gstvah264dec.h va: h264dec: check va allocator at decide allocation 2020-08-24 19:35:57 +00:00
gstvah265dec.c va: Remove gst_va_decoder_destroy_buffers() 2020-11-30 16:53:25 +01:00
gstvah265dec.h va: Add HEVC decoding support 2020-11-04 17:53:23 +00:00
gstvampeg2dec.c va: mpeg2dec: refactor the picture reference filling 2021-01-06 17:27:10 +01:00
gstvampeg2dec.h va: Add mpeg2 VA decoder. 2020-12-28 13:14:06 +08:00
gstvapool.c va: pool, allocator: honor GST_BUFFER_POOL_ACQUIRE_FLAG_DONTWAIT 2020-11-24 12:44:24 +01:00
gstvapool.h va: allocator: add _set_format() and _get_format() 2020-10-09 16:34:57 +02:00
gstvaprofile.c va: Add VP9 decoder 2020-10-19 13:15:06 +02:00
gstvaprofile.h va: VA-API H.264 decoder and infrastructure 2020-06-28 11:47:35 +02:00
gstvautils.c va: utils: use GstObject for GstVaDisplay in context 2020-09-21 17:07:51 +00:00
gstvautils.h va: codestyle: Clear all tabs in header files 2020-09-25 17:07:10 +08:00
gstvavideoformat.c va: allocator: try to create surface without fourcc but chroma only 2020-09-23 18:19:22 +02:00
gstvavideoformat.h va: allocator: get a surface format from a image format 2020-08-03 15:54:45 +00:00
gstvavp8dec.c va: Remove gst_va_decoder_destroy_buffers() 2020-11-30 16:53:25 +01:00
gstvavp8dec.h va: Implement the VA vp8 decoder. 2020-09-25 17:07:30 +08:00
gstvavp9dec.c va: Remove gst_va_decoder_destroy_buffers() 2020-11-30 16:53:25 +01:00
gstvavp9dec.h va: Add VP9 decoder 2020-10-19 13:15:06 +02:00
gstvavpp.c va: allocator: add _set_format() and _get_format() 2020-10-09 16:34:57 +02:00
gstvavpp.h va: add vapostproc element 2020-09-23 18:19:22 +02:00
meson.build va: Add mpeg2 VA decoder. 2020-12-28 13:14:06 +08:00
plugin.c va: Add mpeg2 VA decoder. 2020-12-28 13:14:06 +08:00