mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
Port to GstSurfaceBuffer interface.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
b170d1a982
commit
a6717334f9
3 changed files with 6 additions and 4 deletions
|
@ -137,6 +137,7 @@ libgstvaapi_@GST_MAJORMINOR@_la_CFLAGS = \
|
|||
-DGST_USE_UNSTABLE_API \
|
||||
-I$(top_srcdir)/gst-libs \
|
||||
$(GST_BASE_CFLAGS) \
|
||||
$(GST_BASEVIDEO_CFLAGS) \
|
||||
$(GST_CFLAGS) \
|
||||
$(LIBAVCODEC_CFLAGS) \
|
||||
$(LIBVA_CFLAGS) \
|
||||
|
@ -144,6 +145,7 @@ libgstvaapi_@GST_MAJORMINOR@_la_CFLAGS = \
|
|||
|
||||
libgstvaapi_@GST_MAJORMINOR@_la_LIBADD = \
|
||||
$(GST_BASE_LIBS) \
|
||||
$(GST_BASEVIDEO_LIBS) \
|
||||
$(GST_LIBS) \
|
||||
$(LIBAVCODEC_LIBS) \
|
||||
$(LIBVA_LIBS) \
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#define DEBUG 1
|
||||
#include "gstvaapidebug.h"
|
||||
|
||||
G_DEFINE_TYPE(GstVaapiVideoBuffer, gst_vaapi_video_buffer, GST_TYPE_BUFFER);
|
||||
G_DEFINE_TYPE(GstVaapiVideoBuffer, gst_vaapi_video_buffer, GST_TYPE_SURFACE_BUFFER);
|
||||
|
||||
#define GST_VAAPI_VIDEO_BUFFER_GET_PRIVATE(obj) \
|
||||
(G_TYPE_INSTANCE_GET_PRIVATE((obj), \
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#ifndef GST_VAAPI_VIDEO_BUFFER_H
|
||||
#define GST_VAAPI_VIDEO_BUFFER_H
|
||||
|
||||
#include <gst/gstbuffer.h>
|
||||
#include <gst/video/gstsurfacebuffer.h>
|
||||
#include <gst/vaapi/gstvaapidisplay.h>
|
||||
#include <gst/vaapi/gstvaapiimage.h>
|
||||
#include <gst/vaapi/gstvaapisurface.h>
|
||||
|
@ -66,7 +66,7 @@ typedef struct _GstVaapiVideoBufferClass GstVaapiVideoBufferClass;
|
|||
*/
|
||||
struct _GstVaapiVideoBuffer {
|
||||
/*< private >*/
|
||||
GstBuffer parent_instance;
|
||||
GstSurfaceBuffer parent_instance;
|
||||
|
||||
GstVaapiVideoBufferPrivate *priv;
|
||||
};
|
||||
|
@ -78,7 +78,7 @@ struct _GstVaapiVideoBuffer {
|
|||
*/
|
||||
struct _GstVaapiVideoBufferClass {
|
||||
/*< private >*/
|
||||
GstBufferClass parent_class;
|
||||
GstSurfaceBufferClass parent_class;
|
||||
};
|
||||
|
||||
GType
|
||||
|
|
Loading…
Reference in a new issue