vaapiplugin: allocate GLX buffers when supported.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
Nicolas Dufresne 2011-11-04 20:07:52 -04:00 committed by Gwenole Beauchesne
parent c5b18c27d5
commit bb22317e39
2 changed files with 14 additions and 0 deletions

View file

@ -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"

View file

@ -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"