mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
vaapiplugin: allocate GLX buffers when supported.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
c5b18c27d5
commit
bb22317e39
2 changed files with 14 additions and 0 deletions
|
@ -36,6 +36,14 @@
|
||||||
#include <gst/vaapi/gstvaapivideosink.h>
|
#include <gst/vaapi/gstvaapivideosink.h>
|
||||||
#include <gst/vaapi/gstvaapivideobuffer.h>
|
#include <gst/vaapi/gstvaapivideobuffer.h>
|
||||||
|
|
||||||
|
#if USE_VAAPI_GLX
|
||||||
|
#include <gst/vaapi/gstvaapivideobuffer_glx.h>
|
||||||
|
#define gst_vaapi_video_buffer_new_from_pool(pool) \
|
||||||
|
gst_vaapi_video_buffer_glx_new_from_pool(pool)
|
||||||
|
#define gst_vaapi_video_buffer_new_from_buffer(buffer) \
|
||||||
|
gst_vaapi_video_buffer_glx_new_from_buffer(buffer)
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "gstvaapipluginutil.h"
|
#include "gstvaapipluginutil.h"
|
||||||
#include "gstvaapiconvert.h"
|
#include "gstvaapiconvert.h"
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,12 @@
|
||||||
#include <gst/vaapi/gstvaapidecoder_ffmpeg.h>
|
#include <gst/vaapi/gstvaapidecoder_ffmpeg.h>
|
||||||
#include <gst/video/videocontext.h>
|
#include <gst/video/videocontext.h>
|
||||||
|
|
||||||
|
#if USE_VAAPI_GLX
|
||||||
|
#include <gst/vaapi/gstvaapivideobuffer_glx.h>
|
||||||
|
#define gst_vaapi_video_buffer_new(display) \
|
||||||
|
gst_vaapi_video_buffer_glx_new(GST_VAAPI_DISPLAY_GLX(display))
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "gstvaapidecode.h"
|
#include "gstvaapidecode.h"
|
||||||
#include "gstvaapipluginutil.h"
|
#include "gstvaapipluginutil.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue