gstreamer/gst-libs/gst/vaapi
He Junyan ac3e8c7c40 libs: decoder: context: remove surfaces binding from context.
The vaCreateContext do not need to specify the surfaces for the
context creation now. So we do not need to bind any surface to the
context anymore. Surfaces should be the resource belong to display
and just be used in encoder/decoder context.

The previous manner has big limitation for decoder. The context's
surface number is decided by dpb size. All the surfaces in dpb will
be attached to a gstbuffer and be pushed to down stream, and the
decoder need to wait down stream free the surface and go on if not
enough surface available. For more and more use cases, this causes
deadlock. For example,

gst-launch-1.0 filesrc location=a.h264 ! h264parse ! vaapih264dec
! x264enc ! filesink location=./output.h264

will cause deadlock and make the whole pipeline hang.
the x264enc encoder need to cache more than dpb size surfaces.

The best solution is seperating the surfaces number and the dpb size.
dpb and dpb size shoule be virtual concepts maintained by the decoder.
And let the surfaces_pool in context maintain the re-use of all surfaces.

For encoder, the situation is better, all the surfaces are just used
as reference frame and no need to be pushed to down stream. We can
just reserve and set the capacity of the surfaces_pool to meet the
request.

Fix: #147
Fix: #88

Co-Author: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/353>
2020-07-09 16:06:23 +00:00
..
egl_compat.h Add initial support for EGL. 2015-02-24 15:20:03 +01:00
egl_vtable.h Add initial support for EGL. 2015-02-24 15:20:03 +01:00
gstvaapiblend.c libs: blend: filter: handle finalize() if display isn't assigned 2020-02-21 15:11:31 +00:00
gstvaapiblend.h libs: blend: simplify generator API 2020-01-14 19:52:18 +01:00
gstvaapibufferproxy.c libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapibufferproxy.h libs: bufferproxy: remove GstMemory reference 2020-04-04 14:30:44 +02:00
gstvaapibufferproxy_priv.h libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapicodec_objects.c vaapi: bump the minimum vaapi version requirement to 0.39.0 2019-01-07 17:46:42 +00:00
gstvaapicodec_objects.h build: consolidate the VA sub API includes 2017-08-13 18:08:19 +02:00
gstvaapicodedbuffer.c libs: codedbuffer: port to GstMiniObject 2019-12-20 05:01:07 +00:00
gstvaapicodedbuffer.h libs: removed duplicated function declarations 2020-05-16 20:01:59 +02:00
gstvaapicodedbuffer_priv.h libs: codedbuf: delete a useless field. 2020-01-08 23:42:21 +08:00
gstvaapicodedbufferpool.c libs: context: port to a plain C structure 2019-12-20 05:01:07 +00:00
gstvaapicodedbufferpool.h legal: update copyright notice dates. 2014-01-22 19:02:35 +01:00
gstvaapicodedbufferproxy.c Remove all FEI related 2020-01-15 07:30:15 +00:00
gstvaapicodedbufferproxy.h Remove all FEI related 2020-01-15 07:30:15 +00:00
gstvaapicodedbufferproxy_priv.h Remove all FEI related 2020-01-15 07:30:15 +00:00
gstvaapicompat.h vaapi: bump the minimum vaapi version requirement to 0.39.0 2019-01-07 17:46:42 +00:00
gstvaapicontext.c libs: decoder: context: remove surfaces binding from context. 2020-07-09 16:06:23 +00:00
gstvaapicontext.h libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapidebug.h libs: display: GstVaapiDisplay as GstObject descendant 2016-11-03 08:24:59 +01:00
gstvaapidecoder.c libs: decoder: Don't unref null object 2020-01-13 09:03:47 +01:00
gstvaapidecoder.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidecoder_dpb.c libs: fix code style for errors 2016-11-03 12:51:44 +01:00
gstvaapidecoder_dpb.h legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
gstvaapidecoder_h264.c libs: decoder: h264, h265: in context at least 16 reference surfaces 2020-07-07 17:47:23 +02:00
gstvaapidecoder_h264.h vaapidecoder: h264: remove baseline as constrained property 2020-05-21 13:10:57 +02:00
gstvaapidecoder_h265.c libs: decoder: h264, h265: in context at least 16 reference surfaces 2020-07-07 17:47:23 +02:00
gstvaapidecoder_h265.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidecoder_jpeg.c libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapidecoder_jpeg.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidecoder_mpeg2.c libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapidecoder_mpeg2.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidecoder_mpeg4.c libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapidecoder_mpeg4.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidecoder_objects.c libs: remove already include string.h 2018-09-25 18:22:35 +02:00
gstvaapidecoder_objects.h decoder: add initial infrastructure for marking corrupted output. 2015-07-20 15:25:46 +02:00
gstvaapidecoder_priv.h libs: decoder: remove destoy() and create() callbacks 2018-09-03 17:54:19 +02:00
gstvaapidecoder_unit.c libs: humongous code style fix 2016-02-03 20:03:47 +01:00
gstvaapidecoder_unit.h libs: remove unused header 2017-08-13 18:08:19 +02:00
gstvaapidecoder_vc1.c libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapidecoder_vc1.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidecoder_vp8.c libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapidecoder_vp8.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidecoder_vp9.c libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapidecoder_vp9.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidisplay.c plugins: uddate gst_type_mark_as_plugin_api() calls 2020-06-06 00:42:46 +02:00
gstvaapidisplay.h libs: display: add a quirk for iHD driver tile encoding. 2020-06-05 19:28:06 +08:00
gstvaapidisplay_drm.c libs: display: drm: use g_strcmp0 to be null safe 2020-04-26 10:40:38 +00:00
gstvaapidisplay_drm.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidisplay_drm_priv.h libs: display: GstVaapiDisplay as GstObject descendant 2016-11-03 08:24:59 +01:00
gstvaapidisplay_egl.c libs: display: replace gst_vaapi_display_new() with gst_vaapi_display_config() 2018-06-14 16:41:00 +02:00
gstvaapidisplay_egl.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidisplay_egl_priv.h libs: display: GstVaapiDisplay as GstObject descendant 2016-11-03 08:24:59 +01:00
gstvaapidisplay_glx.c libs: display: replace gst_vaapi_display_new() with gst_vaapi_display_config() 2018-06-14 16:41:00 +02:00
gstvaapidisplay_glx.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidisplay_glx_priv.h libs: display: GstVaapiDisplay as GstObject descendant 2016-11-03 08:24:59 +01:00
gstvaapidisplay_priv.h libs: display: driver quirks mechanism 2020-01-24 12:21:59 +00:00
gstvaapidisplay_wayland.c libs: wayland: display: only handle the first output 2020-06-17 14:56:18 +00:00
gstvaapidisplay_wayland.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidisplay_wayland_priv.h libs: wayland: add support for XDG-shell protocol 2019-02-16 23:55:42 +01:00
gstvaapidisplay_x11.c libs: use array_unref() rather than array_free() 2020-05-16 20:29:34 +00:00
gstvaapidisplay_x11.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapidisplay_x11_priv.h libs: remove GstVaapiPixmap 2020-03-17 15:46:46 +00:00
gstvaapiencoder.c libs: encoder: Add a helper function to check the tile support. 2020-06-05 19:27:11 +08:00
gstvaapiencoder.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiencoder_h264.c plugins: uddate gst_type_mark_as_plugin_api() calls 2020-06-06 00:42:46 +02:00
gstvaapiencoder_h264.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiencoder_h265.c libs: encoder: h265: init tier to GST_VAAPI_TIER_H265_UNKNOWN. 2020-07-05 14:00:39 +00:00
gstvaapiencoder_h265.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiencoder_jpeg.c Update plugin docs and add more plugins 2020-06-19 15:21:56 +01:00
gstvaapiencoder_jpeg.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiencoder_mpeg2.c Update plugin docs and add more plugins 2020-06-19 15:21:56 +01:00
gstvaapiencoder_mpeg2.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiencoder_mpeg2_priv.h legal: update copyright notice dates. 2014-01-22 19:02:35 +01:00
gstvaapiencoder_objects.c Remove all FEI related 2020-01-15 07:30:15 +00:00
gstvaapiencoder_objects.h Remove all FEI related 2020-01-15 07:30:15 +00:00
gstvaapiencoder_priv.h libs: encoder: Add a helper function to check the tile support. 2020-06-05 19:27:11 +08:00
gstvaapiencoder_vp8.c Update plugin docs and add more plugins 2020-06-19 15:21:56 +01:00
gstvaapiencoder_vp8.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiencoder_vp9.c Update plugin docs and add more plugins 2020-06-19 15:21:56 +01:00
gstvaapiencoder_vp9.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapifilter.c plugins: uddate gst_type_mark_as_plugin_api() calls 2020-06-06 00:42:46 +02:00
gstvaapifilter.h libs: filter: HDR10 tone mapping support 2020-04-03 09:23:32 -07:00
gstvaapiimage.c libs: image: init all image fields correctly. 2020-01-06 17:55:09 +00:00
gstvaapiimage.h libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapiimage_priv.h libs: image: port to GstMiniObject base class 2019-12-20 05:01:07 +00:00
gstvaapiimagepool.c libs: fix code style for errors 2016-11-03 12:51:44 +01:00
gstvaapiimagepool.h videopool: re-indent all GstVaapiVideoPool related source code. 2015-01-27 18:11:45 +01:00
gstvaapiminiobject.c libs: remove dependency on IN_LIBGSTVAAPI_CORE 2018-09-25 17:41:55 +02:00
gstvaapiminiobject.h libs: remove dependency on IN_LIBGSTVAAPI_CORE 2018-09-25 17:41:55 +02:00
gstvaapiparser_frame.c libs: use array_unref() rather than array_free() 2020-05-16 20:29:34 +00:00
gstvaapiparser_frame.h libs: parser_frame: change macros for inlined functions 2018-09-25 17:41:55 +02:00
gstvaapiprofile.c libs: decoder: H265: Add SCC_MAIN_444_10 profile support. 2020-06-05 09:51:19 +00:00
gstvaapiprofile.h libs: decoder: H265: Add SCC_MAIN_444_10 profile support. 2020-06-05 09:51:19 +00:00
gstvaapiprofilecaps.c vaapiencode: DMABuf only if PRIME is available 2020-01-17 11:31:57 +01:00
gstvaapiprofilecaps.h vaapiencode: DMABuf only if PRIME is available 2020-01-17 11:31:57 +01:00
gstvaapisubpicture.c libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapisubpicture.h libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapisurface.c libs: surface: return fail immediately if can not create subpicture 2020-05-27 15:08:11 +08:00
gstvaapisurface.h libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapisurface_drm.c libs,plugin: break surface-bufferproxy circular reference 2020-04-04 14:22:04 +02:00
gstvaapisurface_drm.h libs,plugin: break surface-bufferproxy circular reference 2020-04-04 14:22:04 +02:00
gstvaapisurface_egl.c libs: surface: surfacepool: Add allocation flags in constructors. 2020-02-23 13:12:15 +01:00
gstvaapisurface_egl.h egl: allow for EGLImage imports into VA Surfaces. 2015-02-24 15:20:03 +01:00
gstvaapisurface_priv.h libs: surface: port to GstMiniObject 2019-12-20 05:01:08 +00:00
gstvaapisurfacepool.c libs: surface: surfacepool: Add allocation flags in constructors. 2020-02-23 13:12:15 +01:00
gstvaapisurfacepool.h libs: surface: surfacepool: Add allocation flags in constructors. 2020-02-23 13:12:15 +01:00
gstvaapisurfaceproxy.c Remove all FEI related 2020-01-15 07:30:15 +00:00
gstvaapisurfaceproxy.h Remove all FEI related 2020-01-15 07:30:15 +00:00
gstvaapisurfaceproxy_priv.h libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapitexture.c libs: texture: remove unused headers include 2020-05-16 21:05:20 +02:00
gstvaapitexture.h libs: texture: Make texture a standard GstMiniObject. 2020-05-16 19:18:46 +02:00
gstvaapitexture_egl.c libs: texture: Make texture a standard GstMiniObject. 2020-05-16 19:18:46 +02:00
gstvaapitexture_egl.h egl: add texture abstraction. 2015-02-24 15:20:03 +01:00
gstvaapitexture_glx.c libs: texture: Make texture a standard GstMiniObject. 2020-05-16 19:18:46 +02:00
gstvaapitexture_glx.h texture: move to core libgstvaapi base library. 2015-01-27 18:11:44 +01:00
gstvaapitexture_priv.h libs: texture: remove unused headers include 2020-05-16 21:05:20 +02:00
gstvaapitexturemap.c libs: texture: Make texture a standard GstMiniObject. 2020-05-16 19:18:46 +02:00
gstvaapitexturemap.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapitypes.h libs: encoder: h264: support ICQ/QVBR bitrate control mode 2019-08-05 11:01:19 +08:00
gstvaapiutils.c libs: decoder: H265: Add SCC_MAIN_444_10 profile support. 2020-06-05 09:51:19 +00:00
gstvaapiutils.h libs: utils: map GstVideoColorRange to VAAPI VPP 2020-02-08 10:07:58 +00:00
gstvaapiutils_core.c libs: util: Fix a memory leak in config_surface_attributes_get 2019-08-27 01:30:36 +08:00
gstvaapiutils_core.h libs: utils: remove unused function gst_vaapi_get_surface_formats() 2019-08-19 17:26:55 +00:00
gstvaapiutils_egl.c egl: Fix racyness in display thread creation 2019-09-18 05:36:52 +00:00
gstvaapiutils_egl.h egl: Fix racyness in display thread creation 2019-09-18 05:36:52 +00:00
gstvaapiutils_glx.c glx: Stop specifying GLX_DEPTH_SIZE 2019-02-17 09:26:55 +00:00
gstvaapiutils_glx.h libs: remove unused header 2017-08-13 18:08:19 +02:00
gstvaapiutils_h26x.c libs: h26x: adds gst_vaapi_utils_h26x_write_nal_unit() 2017-03-20 19:02:04 +01:00
gstvaapiutils_h26x_priv.h libs: encoder: h264,h265: extend max periodic keyframe. 2018-02-19 22:34:53 +01:00
gstvaapiutils_h264.c libs: Move from g_debug to GST_DEBUG. 2018-10-09 16:58:43 +02:00
gstvaapiutils_h264.h libs: h264: Update level table to "Recommendation H.264 (04/17)". 2018-09-27 12:29:10 +02:00
gstvaapiutils_h264_priv.h libs: remove unused header 2017-08-13 18:08:19 +02:00
gstvaapiutils_h265.c libs: decoder: H265: Add SCC_MAIN_444_10 profile support. 2020-06-05 09:51:19 +00:00
gstvaapiutils_h265.h libs: encoder: h265: Add num-tile-cols/rows properties. 2020-06-05 19:27:36 +08:00
gstvaapiutils_h265_priv.h libs: dec: h265: Consider chroma_bit_depth to choose chrome type 2019-06-28 16:49:51 +02:00
gstvaapiutils_mpeg2.c libs: Move from g_debug to GST_DEBUG. 2018-10-09 16:58:43 +02:00
gstvaapiutils_mpeg2.h libs: utils: move gstvaapisurface.h to private headers 2017-08-13 18:08:19 +02:00
gstvaapiutils_mpeg2_priv.h libs: remove unused header 2017-08-13 18:08:19 +02:00
gstvaapiutils_x11.c doc: fix some incorrect gtk-doc links 2019-05-29 01:41:37 +02:00
gstvaapiutils_x11.h libs: remove unused header 2017-08-13 18:08:19 +02:00
gstvaapivalue.c plugins: uddate gst_type_mark_as_plugin_api() calls 2020-06-06 00:42:46 +02:00
gstvaapivalue.h vaapipostproc: element warning if video direction is unsupported 2019-08-19 16:48:49 +00:00
gstvaapivideopool.c libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
gstvaapivideopool.h videopool: re-indent all GstVaapiVideoPool related source code. 2015-01-27 18:11:45 +01:00
gstvaapivideopool_priv.h libs: videopool: remove unneeded code 2018-09-25 17:41:55 +02:00
gstvaapiwindow.c libs: remove GstVaapiPixmap 2020-03-17 15:46:46 +00:00
gstvaapiwindow.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiwindow_drm.c libs: window: use its own debug category 2018-12-24 12:20:00 +00:00
gstvaapiwindow_drm.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiwindow_egl.c libs: texture: Make texture a standard GstMiniObject. 2020-05-16 19:18:46 +02:00
gstvaapiwindow_egl.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiwindow_glx.c doc: fix some incorrect gtk-doc links 2019-05-29 01:41:37 +02:00
gstvaapiwindow_glx.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiwindow_priv.h libs: remove GstVaapiPixmap 2020-03-17 15:46:46 +00:00
gstvaapiwindow_wayland.c libs: surface: port to GstMiniObject 2019-12-20 05:01:08 +00:00
gstvaapiwindow_wayland.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiwindow_x11.c libs: remove GstVaapiPixmap 2020-03-17 15:46:46 +00:00
gstvaapiwindow_x11.h libs: extend g_autoptr support 2020-03-27 10:40:20 +00:00
gstvaapiwindow_x11_priv.h libs: remove GstVaapiPixmap 2020-03-17 15:46:46 +00:00
gstvaapiworkarounds.h legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
meson.build libs: delete all gstvaapiobject related files. 2020-05-27 15:08:28 +08:00
ogl_compat.h Add initial support for EGL. 2015-02-24 15:20:03 +01:00
sysdeps.h remove unused glibcompat.h 2016-06-23 12:47:52 +02:00
video-format.c libs: video-format: add a helper function of get_formats_by_chroma. 2020-05-16 19:58:15 +00:00
video-format.h libs: video-format: add a helper function of get_formats_by_chroma. 2020-05-16 19:58:15 +00:00