summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2009-04-13 22:19:20 +0200
committerJan Schmidt <thaytan@noraisin.net>2009-06-20 15:21:27 +0100
commit48143abdab828f6ea475c678bccb5a263c50e657 (patch)
tree96b85ca344fa1df2c09446c24ec8a28113e03af2
parentd2efd275a4f5c7ed853521ff9cb0e738a563b52e (diff)
downloadgst-plugins-bad-48143abdab828f6ea475c678bccb5a263c50e657.tar.gz
gst-plugins-bad-48143abdab828f6ea475c678bccb5a263c50e657.tar.bz2
gst-plugins-bad-48143abdab828f6ea475c678bccb5a263c50e657.zip
vdpau: rename all files and objects from Vdpau to Vdp
-rw-r--r--sys/vdpau/Makefile.am26
-rw-r--r--sys/vdpau/gstvdp.c (renamed from sys/vdpau/gstvdpau.c)6
-rw-r--r--sys/vdpau/gstvdpdecoder.c (renamed from sys/vdpau/gstvdpaudecoder.c)60
-rw-r--r--sys/vdpau/gstvdpdecoder.h (renamed from sys/vdpau/gstvdpaudecoder.h)32
-rw-r--r--sys/vdpau/gstvdpdevice.c (renamed from sys/vdpau/gstvdpaudevice.c)58
-rw-r--r--sys/vdpau/gstvdpdevice.h (renamed from sys/vdpau/gstvdpaudevice.h)22
-rw-r--r--sys/vdpau/gstvdpmpegdecoder.c (renamed from sys/vdpau/gstvdpaumpegdecoder.c)105
-rw-r--r--sys/vdpau/gstvdpmpegdecoder.h (renamed from sys/vdpau/gstvdpaumpegdecoder.h)22
-rw-r--r--sys/vdpau/gstvdpvideobuffer.c (renamed from sys/vdpau/gstvdpauvideobuffer.c)44
-rw-r--r--sys/vdpau/gstvdpvideobuffer.h (renamed from sys/vdpau/gstvdpauvideobuffer.h)18
-rw-r--r--sys/vdpau/gstvdpvideoyuv.c (renamed from sys/vdpau/gstvdpauvideoyuv.c)68
-rw-r--r--sys/vdpau/gstvdpvideoyuv.h (renamed from sys/vdpau/gstvdpauvideoyuv.h)20
-rw-r--r--sys/vdpau/gstvdpyuvvideo.c (renamed from sys/vdpau/gstvdpauyuvvideo.c)80
-rw-r--r--sys/vdpau/gstvdpyuvvideo.h (renamed from sys/vdpau/gstvdpauyuvvideo.h)22
14 files changed, 289 insertions, 294 deletions
diff --git a/sys/vdpau/Makefile.am b/sys/vdpau/Makefile.am
index f10cae89..a603ec77 100644
--- a/sys/vdpau/Makefile.am
+++ b/sys/vdpau/Makefile.am
@@ -1,14 +1,14 @@
plugin_LTLIBRARIES = libgstvdpau.la
libgstvdpau_la_SOURCES = \
- gstvdpaudevice.c \
- gstvdpaudecoder.c \
- gstvdpaumpegdecoder.c \
+ gstvdpdevice.c \
+ gstvdpdecoder.c \
+ gstvdpmpegdecoder.c \
mpegutil.c \
- gstvdpauvideoyuv.c \
- gstvdpauvideobuffer.c \
- gstvdpau.c \
- gstvdpauyuvvideo.c
+ gstvdpvideoyuv.c \
+ gstvdpvideobuffer.c \
+ gstvdp.c \
+ gstvdpyuvvideo.c
libgstvdpau_la_CFLAGS = $(GST_CFLAGS) $(X11_CFLAGS) -Ivdpau
libgstvdpau_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) \
@@ -17,12 +17,12 @@ libgstvdpau_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstvdpau_la_LIBTOOLFLAGS = --tag=disable-static
noinst_HEADERS = \
- gstvdpaudevice.h \
- gstvdpaudecoder.h \
- gstvdpaumpegdecoder.h \
+ gstvdpdevice.h \
+ gstvdpdecoder.h \
+ gstvdpmpegdecoder.h \
mpegutil.h \
- gstvdpauvideoyuv.h \
- gstvdpauvideobuffer.h \
- gstvdpauyuvvideo.h
+ gstvdpvideoyuv.h \
+ gstvdpvideobuffer.h \
+ gstvdpyuvvideo.h
diff --git a/sys/vdpau/gstvdpau.c b/sys/vdpau/gstvdp.c
index 24ed3982..2da9bdb0 100644
--- a/sys/vdpau/gstvdpau.c
+++ b/sys/vdpau/gstvdp.c
@@ -5,9 +5,9 @@
#include <gst/gst.h>
-#include "gstvdpaumpegdecoder.h"
-#include "gstvdpauvideoyuv.h"
-#include "gstvdpauyuvvideo.h"
+#include "gstvdpmpegdecoder.h"
+#include "gstvdpvideoyuv.h"
+#include "gstvdpyuvvideo.h"
static gboolean
vdpau_init (GstPlugin * vdpaumpegdecoder)
diff --git a/sys/vdpau/gstvdpaudecoder.c b/sys/vdpau/gstvdpdecoder.c
index 3d0ced34..2e92381f 100644
--- a/sys/vdpau/gstvdpaudecoder.c
+++ b/sys/vdpau/gstvdpdecoder.c
@@ -25,10 +25,10 @@
#include <gst/gst.h>
#include <gst/video/video.h>
-#include "gstvdpaudecoder.h"
+#include "gstvdpdecoder.h"
-GST_DEBUG_CATEGORY_STATIC (gst_vdpau_decoder_debug);
-#define GST_CAT_DEFAULT gst_vdpau_decoder_debug
+GST_DEBUG_CATEGORY_STATIC (gst_vdp_decoder_debug);
+#define GST_CAT_DEFAULT gst_vdp_decoder_debug
/* Filter signals and args */
enum
@@ -50,20 +50,20 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS ("video/vdpau-video, " "chroma-type = (int) 0"));
#define DEBUG_INIT(bla) \
- GST_DEBUG_CATEGORY_INIT (gst_vdpau_decoder_debug, "vdpaudecoder", 0, "vdpaudecoder base class");
+ GST_DEBUG_CATEGORY_INIT (gst_vdp_decoder_debug, "vdpaudecoder", 0, "vdpaudecoder base class");
-GST_BOILERPLATE_FULL (GstVdpauDecoder, gst_vdpau_decoder, GstElement,
+GST_BOILERPLATE_FULL (GstVdpDecoder, gst_vdp_decoder, GstElement,
GST_TYPE_ELEMENT, DEBUG_INIT);
-static void gst_vdpau_decoder_finalize (GObject * object);
-static void gst_vdpau_decoder_set_property (GObject * object, guint prop_id,
+static void gst_vdp_decoder_finalize (GObject * object);
+static void gst_vdp_decoder_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
-static void gst_vdpau_decoder_get_property (GObject * object, guint prop_id,
+static void gst_vdp_decoder_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
GstFlowReturn
-gst_vdpau_decoder_push_video_buffer (GstVdpauDecoder * dec,
- GstVdpauVideoBuffer * buffer)
+gst_vdp_decoder_push_video_buffer (GstVdpDecoder * dec,
+ GstVdpVideoBuffer * buffer)
{
GST_BUFFER_TIMESTAMP (buffer) =
gst_util_uint64_scale_int (GST_SECOND * dec->frame_nr,
@@ -80,15 +80,15 @@ gst_vdpau_decoder_push_video_buffer (GstVdpauDecoder * dec,
}
static GstStateChangeReturn
-gst_vdpau_decoder_change_state (GstElement * element, GstStateChange transition)
+gst_vdp_decoder_change_state (GstElement * element, GstStateChange transition)
{
- GstVdpauDecoder *dec;
+ GstVdpDecoder *dec;
dec = GST_VDPAU_DECODER (element);
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
- dec->device = gst_vdpau_get_device (dec->display_name);
+ dec->device = gst_vdp_get_device (dec->display_name);
break;
case GST_STATE_CHANGE_READY_TO_NULL:
g_object_unref (dec->device);
@@ -102,10 +102,10 @@ gst_vdpau_decoder_change_state (GstElement * element, GstStateChange transition)
}
static gboolean
-gst_vdpau_decoder_sink_set_caps (GstPad * pad, GstCaps * caps)
+gst_vdp_decoder_sink_set_caps (GstPad * pad, GstCaps * caps)
{
- GstVdpauDecoder *dec = GST_VDPAU_DECODER (GST_OBJECT_PARENT (pad));
- GstVdpauDecoderClass *dec_class = GST_VDPAU_DECODER_GET_CLASS (dec);
+ GstVdpDecoder *dec = GST_VDPAU_DECODER (GST_OBJECT_PARENT (pad));
+ GstVdpDecoderClass *dec_class = GST_VDPAU_DECODER_GET_CLASS (dec);
GstCaps *src_caps, *new_caps;
GstStructure *structure;
@@ -161,7 +161,7 @@ gst_vdpau_decoder_sink_set_caps (GstPad * pad, GstCaps * caps)
/* GObject vmethod implementations */
static void
-gst_vdpau_decoder_base_init (gpointer klass)
+gst_vdp_decoder_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
@@ -177,7 +177,7 @@ gst_vdpau_decoder_base_init (gpointer klass)
/* initialize the vdpaudecoder's class */
static void
-gst_vdpau_decoder_class_init (GstVdpauDecoderClass * klass)
+gst_vdp_decoder_class_init (GstVdpDecoderClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *gstelement_class;
@@ -185,9 +185,9 @@ gst_vdpau_decoder_class_init (GstVdpauDecoderClass * klass)
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
- gobject_class->finalize = gst_vdpau_decoder_finalize;
- gobject_class->set_property = gst_vdpau_decoder_set_property;
- gobject_class->get_property = gst_vdpau_decoder_get_property;
+ gobject_class->finalize = gst_vdp_decoder_finalize;
+ gobject_class->set_property = gst_vdp_decoder_set_property;
+ gobject_class->get_property = gst_vdp_decoder_get_property;
g_object_class_install_property (gobject_class, PROP_DISPLAY,
g_param_spec_string ("display", "Display", "X Display name",
@@ -197,11 +197,11 @@ gst_vdpau_decoder_class_init (GstVdpauDecoderClass * klass)
g_param_spec_boolean ("silent", "Silent", "Produce verbose output ?",
FALSE, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE));
- gstelement_class->change_state = gst_vdpau_decoder_change_state;
+ gstelement_class->change_state = gst_vdp_decoder_change_state;
}
static void
-gst_vdpau_decoder_init (GstVdpauDecoder * dec, GstVdpauDecoderClass * klass)
+gst_vdp_decoder_init (GstVdpDecoder * dec, GstVdpDecoderClass * klass)
{
dec->display_name = NULL;
dec->device = NULL;
@@ -219,15 +219,15 @@ gst_vdpau_decoder_init (GstVdpauDecoder * dec, GstVdpauDecoderClass * klass)
dec->sink = gst_pad_new_from_template (gst_element_class_get_pad_template
(GST_ELEMENT_CLASS (klass), "sink"), "sink");
- gst_pad_set_setcaps_function (dec->sink, gst_vdpau_decoder_sink_set_caps);
+ gst_pad_set_setcaps_function (dec->sink, gst_vdp_decoder_sink_set_caps);
gst_element_add_pad (GST_ELEMENT (dec), dec->sink);
gst_pad_set_active (dec->sink, TRUE);
}
static void
-gst_vdpau_decoder_finalize (GObject * object)
+gst_vdp_decoder_finalize (GObject * object)
{
- GstVdpauDecoder *dec = (GstVdpauDecoder *) object;
+ GstVdpDecoder *dec = (GstVdpDecoder *) object;
if (dec->device)
g_object_unref (dec->device);
@@ -236,10 +236,10 @@ gst_vdpau_decoder_finalize (GObject * object)
}
static void
-gst_vdpau_decoder_set_property (GObject * object, guint prop_id,
+gst_vdp_decoder_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
- GstVdpauDecoder *dec = GST_VDPAU_DECODER (object);
+ GstVdpDecoder *dec = GST_VDPAU_DECODER (object);
switch (prop_id) {
case PROP_DISPLAY:
@@ -256,10 +256,10 @@ gst_vdpau_decoder_set_property (GObject * object, guint prop_id,
}
static void
-gst_vdpau_decoder_get_property (GObject * object, guint prop_id,
+gst_vdp_decoder_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec)
{
- GstVdpauDecoder *dec = GST_VDPAU_DECODER (object);
+ GstVdpDecoder *dec = GST_VDPAU_DECODER (object);
switch (prop_id) {
case PROP_DISPLAY:
diff --git a/sys/vdpau/gstvdpaudecoder.h b/sys/vdpau/gstvdpdecoder.h
index 3f67da68..f918225e 100644
--- a/sys/vdpau/gstvdpaudecoder.h
+++ b/sys/vdpau/gstvdpdecoder.h
@@ -23,27 +23,27 @@
#include <gst/gst.h>
-#include "gstvdpaudevice.h"
-#include "gstvdpauvideobuffer.h"
+#include "gstvdpdevice.h"
+#include "gstvdpvideobuffer.h"
G_BEGIN_DECLS
-#define GST_TYPE_VDPAU_DECODER (gst_vdpau_decoder_get_type())
-#define GST_VDPAU_DECODER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VDPAU_DECODER,GstVdpauDecoder))
-#define GST_VDPAU_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VDPAU_DECODER,GstVdpauDecoderClass))
-#define GST_VDPAU_DECODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VDPAU_DECODER, GstVdpauDecoderClass))
+#define GST_TYPE_VDPAU_DECODER (gst_vdp_decoder_get_type())
+#define GST_VDPAU_DECODER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VDPAU_DECODER,GstVdpDecoder))
+#define GST_VDPAU_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VDPAU_DECODER,GstVdpDecoderClass))
+#define GST_VDPAU_DECODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VDPAU_DECODER, GstVdpDecoderClass))
#define GST_IS_VDPAU_DECODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VDPAU_DECODER))
#define GST_IS_VDPAU_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VDPAU_DECODER))
-typedef struct _GstVdpauDecoder GstVdpauDecoder;
-typedef struct _GstVdpauDecoderClass GstVdpauDecoderClass;
+typedef struct _GstVdpDecoder GstVdpDecoder;
+typedef struct _GstVdpDecoderClass GstVdpDecoderClass;
typedef struct _VdpauFunctions VdpauFunctions;
-struct _GstVdpauDecoder {
+struct _GstVdpDecoder {
GstElement element;
gchar *display_name;
- GstVdpauDevice *device;
+ GstVdpDevice *device;
GstPad *src;
GstPad *sink;
@@ -57,17 +57,17 @@ struct _GstVdpauDecoder {
gboolean silent;
};
-struct _GstVdpauDecoderClass {
+struct _GstVdpDecoderClass {
GstElementClass parent_class;
- gboolean (*set_caps) (GstVdpauDecoder *dec, GstCaps *caps);
+ gboolean (*set_caps) (GstVdpDecoder *dec, GstCaps *caps);
};
-GType gst_vdpau_decoder_get_type (void);
+GType gst_vdp_decoder_get_type (void);
-gboolean gst_vdpau_decoder_push_video_buffer (GstVdpauDecoder * dec,
- GstVdpauVideoBuffer *buffer);
-VdpVideoSurface gst_vdpau_decoder_create_video_surface (GstVdpauDecoder *dec);
+gboolean gst_vdp_decoder_push_video_buffer (GstVdpDecoder * dec,
+ GstVdpVideoBuffer *buffer);
+VdpVideoSurface gst_vdp_decoder_create_video_surface (GstVdpDecoder *dec);
G_END_DECLS
diff --git a/sys/vdpau/gstvdpaudevice.c b/sys/vdpau/gstvdpdevice.c
index c5a5f641..1dc42d68 100644
--- a/sys/vdpau/gstvdpaudevice.c
+++ b/sys/vdpau/gstvdpdevice.c
@@ -21,10 +21,10 @@
#include <vdpau/vdpau_x11.h>
#include <gst/gst.h>
-#include "gstvdpaudevice.h"
+#include "gstvdpdevice.h"
-GST_DEBUG_CATEGORY_STATIC (gst_vdpau_device_debug);
-#define GST_CAT_DEFAULT gst_vdpau_device_debug
+GST_DEBUG_CATEGORY_STATIC (gst_vdp_device_debug);
+#define GST_CAT_DEFAULT gst_vdp_device_debug
enum
{
@@ -34,10 +34,10 @@ enum
-G_DEFINE_TYPE (GstVdpauDevice, gst_vdpau_device, G_TYPE_OBJECT);
+G_DEFINE_TYPE (GstVdpDevice, gst_vdp_device, G_TYPE_OBJECT);
static void
-gst_vdpau_device_init (GstVdpauDevice * device)
+gst_vdp_device_init (GstVdpDevice * device)
{
device->display_name = NULL;
device->display = NULL;
@@ -45,21 +45,21 @@ gst_vdpau_device_init (GstVdpauDevice * device)
}
static void
-gst_vdpau_device_finalize (GObject * object)
+gst_vdp_device_finalize (GObject * object)
{
- GstVdpauDevice *device = (GstVdpauDevice *) object;
+ GstVdpDevice *device = (GstVdpDevice *) object;
device->vdp_device_destroy (device->device);
g_free (device->display_name);
- G_OBJECT_CLASS (gst_vdpau_device_parent_class)->finalize (object);
+ G_OBJECT_CLASS (gst_vdp_device_parent_class)->finalize (object);
}
static void
-gst_vdpau_device_constructed (GObject * object)
+gst_vdp_device_constructed (GObject * object)
{
- GstVdpauDevice *device = (GstVdpauDevice *) object;
+ GstVdpDevice *device = (GstVdpDevice *) object;
gint screen;
VdpStatus status;
gint i;
@@ -147,14 +147,14 @@ error:
}
static void
-gst_vdpau_device_set_property (GObject * object, guint prop_id,
+gst_vdp_device_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
- GstVdpauDevice *device;
+ GstVdpDevice *device;
g_return_if_fail (GST_IS_VDPAU_DEVICE (object));
- device = (GstVdpauDevice *) object;
+ device = (GstVdpDevice *) object;
switch (prop_id) {
case PROP_DISPLAY:
@@ -167,14 +167,14 @@ gst_vdpau_device_set_property (GObject * object, guint prop_id,
}
static void
-gst_vdpau_device_get_property (GObject * object, guint prop_id, GValue * value,
+gst_vdp_device_get_property (GObject * object, guint prop_id, GValue * value,
GParamSpec * pspec)
{
- GstVdpauDevice *device;
+ GstVdpDevice *device;
g_return_if_fail (GST_IS_VDPAU_DEVICE (object));
- device = (GstVdpauDevice *) object;
+ device = (GstVdpDevice *) object;
switch (prop_id) {
case PROP_DISPLAY:
@@ -187,14 +187,14 @@ gst_vdpau_device_get_property (GObject * object, guint prop_id, GValue * value,
}
static void
-gst_vdpau_device_class_init (GstVdpauDeviceClass * klass)
+gst_vdp_device_class_init (GstVdpDeviceClass * klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->constructed = gst_vdpau_device_constructed;
- object_class->finalize = gst_vdpau_device_finalize;
- object_class->get_property = gst_vdpau_device_get_property;
- object_class->set_property = gst_vdpau_device_set_property;
+ object_class->constructed = gst_vdp_device_constructed;
+ object_class->finalize = gst_vdp_device_finalize;
+ object_class->get_property = gst_vdp_device_get_property;
+ object_class->set_property = gst_vdp_device_set_property;
g_object_class_install_property (object_class,
@@ -204,14 +204,14 @@ gst_vdpau_device_class_init (GstVdpauDeviceClass * klass)
"X Display Name",
"", G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
- GST_DEBUG_CATEGORY_INIT (gst_vdpau_device_debug, "vdpaudevice",
+ GST_DEBUG_CATEGORY_INIT (gst_vdp_device_debug, "vdpaudevice",
0, "vdpaudevice");
}
-GstVdpauDevice *
-gst_vdpau_device_new (const gchar * display_name)
+GstVdpDevice *
+gst_vdp_device_new (const gchar * display_name)
{
- GstVdpauDevice *device;
+ GstVdpDevice *device;
device = g_object_new (GST_TYPE_VDPAU_DEVICE, "display", display_name);
@@ -240,12 +240,12 @@ create_devices_hash (gpointer data)
return g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
}
-GstVdpauDevice *
-gst_vdpau_get_device (const gchar * display_name)
+GstVdpDevice *
+gst_vdp_get_device (const gchar * display_name)
{
static GOnce my_once = G_ONCE_INIT;
GHashTable *devices_hash;
- GstVdpauDevice *device;
+ GstVdpDevice *device;
g_once (&my_once, create_devices_hash, NULL);
devices_hash = my_once.retval;
@@ -256,7 +256,7 @@ gst_vdpau_get_device (const gchar * display_name)
device = g_hash_table_lookup (devices_hash, "");
if (!device) {
- device = gst_vdpau_device_new (display_name);
+ device = gst_vdp_device_new (display_name);
g_object_weak_ref (G_OBJECT (device), device_destroyed_cb, devices_hash);
if (display_name)
g_hash_table_insert (devices_hash, g_strdup (display_name), device);
diff --git a/sys/vdpau/gstvdpaudevice.h b/sys/vdpau/gstvdpdevice.h
index c1c6608a..8b2f596c 100644
--- a/sys/vdpau/gstvdpaudevice.h
+++ b/sys/vdpau/gstvdpdevice.h
@@ -28,22 +28,22 @@
G_BEGIN_DECLS
-#define GST_TYPE_VDPAU_DEVICE (gst_vdpau_device_get_type ())
-#define GST_VDPAU_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VDPAU_DEVICE, GstVdpauDevice))
-#define GST_VDPAU_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_VDPAU_DEVICE, GstVdpauDeviceClass))
+#define GST_TYPE_VDPAU_DEVICE (gst_vdp_device_get_type ())
+#define GST_VDPAU_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VDPAU_DEVICE, GstVdpDevice))
+#define GST_VDPAU_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_VDPAU_DEVICE, GstVdpDeviceClass))
#define GST_IS_VDPAU_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VDPAU_DEVICE))
#define GST_IS_VDPAU_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_VDPAU_DEVICE))
-#define GST_VDPAU_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VDPAU_DEVICE, GstVdpauDeviceClass))
+#define GST_VDPAU_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VDPAU_DEVICE, GstVdpDeviceClass))
-typedef struct _GstVdpauDeviceClass GstVdpauDeviceClass;
-typedef struct _GstVdpauDevice GstVdpauDevice;
+typedef struct _GstVdpDeviceClass GstVdpDeviceClass;
+typedef struct _GstVdpDevice GstVdpDevice;
-struct _GstVdpauDeviceClass
+struct _GstVdpDeviceClass
{
GObjectClass parent_class;
};
-struct _GstVdpauDevice
+struct _GstVdpDevice
{
GObject object;
@@ -121,11 +121,11 @@ static const VdpauFormats formats[N_FORMATS] = {
}
};
-GType gst_vdpau_device_get_type (void) G_GNUC_CONST;
+GType gst_vdp_device_get_type (void) G_GNUC_CONST;
-GstVdpauDevice *gst_vdpau_device_new (const gchar *display_name);
+GstVdpDevice *gst_vdp_device_new (const gchar *display_name);
-GstVdpauDevice *gst_vdpau_get_device (const gchar *display_name);
+GstVdpDevice *gst_vdp_get_device (const gchar *display_name);
G_END_DECLS
diff --git a/sys/vdpau/gstvdpaumpegdecoder.c b/sys/vdpau/gstvdpmpegdecoder.c
index e13ec14c..df8a5b67 100644
--- a/sys/vdpau/gstvdpaumpegdecoder.c
+++ b/sys/vdpau/gstvdpmpegdecoder.c
@@ -39,10 +39,10 @@
#include <string.h>
#include "mpegutil.h"
-#include "gstvdpaumpegdecoder.h"
+#include "gstvdpmpegdecoder.h"
-GST_DEBUG_CATEGORY_STATIC (gst_vdpau_mpeg_decoder_debug);
-#define GST_CAT_DEFAULT gst_vdpau_mpeg_decoder_debug
+GST_DEBUG_CATEGORY_STATIC (gst_vdp_mpeg_decoder_debug);
+#define GST_CAT_DEFAULT gst_vdp_mpeg_decoder_debug
/* Filter signals and args */
enum
@@ -68,27 +68,27 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
);
#define DEBUG_INIT(bla) \
-GST_DEBUG_CATEGORY_INIT (gst_vdpau_mpeg_decoder_debug, "vdpaumpegdecoder", 0, "VDPAU powered mpeg decoder");
+GST_DEBUG_CATEGORY_INIT (gst_vdp_mpeg_decoder_debug, "vdpaumpegdecoder", 0, "VDPAU powered mpeg decoder");
-GST_BOILERPLATE_FULL (GstVdpauMpegDecoder, gst_vdpau_mpeg_decoder,
- GstVdpauDecoder, GST_TYPE_VDPAU_DECODER, DEBUG_INIT);
+GST_BOILERPLATE_FULL (GstVdpMpegDecoder, gst_vdp_mpeg_decoder,
+ GstVdpDecoder, GST_TYPE_VDPAU_DECODER, DEBUG_INIT);
-static void gst_vdpau_mpeg_decoder_finalize (GObject * object);
-static void gst_vdpau_mpeg_decoder_set_property (GObject * object,
+static void gst_vdp_mpeg_decoder_finalize (GObject * object);
+static void gst_vdp_mpeg_decoder_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec);
-static void gst_vdpau_mpeg_decoder_get_property (GObject * object,
+static void gst_vdp_mpeg_decoder_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec);
static gboolean
-gst_vdpau_mpeg_decoder_set_caps (GstVdpauDecoder * dec, GstCaps * caps)
+gst_vdp_mpeg_decoder_set_caps (GstVdpDecoder * dec, GstCaps * caps)
{
- GstVdpauMpegDecoder *mpeg_dec;
+ GstVdpMpegDecoder *mpeg_dec;
GstStructure *structure;
const GValue *value;
GstBuffer *codec_data;
MPEGSeqHdr hdr = { 0, };
VdpDecoderProfile profile;
- GstVdpauDevice *device;
+ GstVdpDevice *device;
VdpStatus status;
mpeg_dec = GST_VDPAU_MPEG_DECODER (dec);
@@ -132,13 +132,13 @@ gst_vdpau_mpeg_decoder_set_caps (GstVdpauDecoder * dec, GstCaps * caps)
}
static GstFlowReturn
-gst_vdpau_mpeg_decoder_decode (GstVdpauMpegDecoder * mpeg_dec)
+gst_vdp_mpeg_decoder_decode (GstVdpMpegDecoder * mpeg_dec)
{
- GstVdpauDecoder *dec;
+ GstVdpDecoder *dec;
GstBuffer *buffer;
- GstVdpauVideoBuffer *outbuf;
+ GstVdpVideoBuffer *outbuf;
VdpVideoSurface surface;
- GstVdpauDevice *device;
+ GstVdpDevice *device;
VdpBitstreamBuffer vbit[1];
VdpStatus status;
GstFlowReturn ret;
@@ -148,7 +148,7 @@ gst_vdpau_mpeg_decoder_decode (GstVdpauMpegDecoder * mpeg_dec)
buffer = gst_adapter_take_buffer (mpeg_dec->adapter,
gst_adapter_available (mpeg_dec->adapter));
- outbuf = gst_vdpau_video_buffer_new (dec->device, VDP_CHROMA_TYPE_420,
+ outbuf = gst_vdp_video_buffer_new (dec->device, VDP_CHROMA_TYPE_420,
dec->width, dec->height);
surface = outbuf->surface;
@@ -181,7 +181,7 @@ gst_vdpau_mpeg_decoder_decode (GstVdpauMpegDecoder * mpeg_dec)
gst_buffer_ref (GST_BUFFER (outbuf));
- ret = gst_vdpau_decoder_push_video_buffer (GST_VDPAU_DECODER (mpeg_dec),
+ ret = gst_vdp_decoder_push_video_buffer (GST_VDPAU_DECODER (mpeg_dec),
outbuf);
if (mpeg_dec->vdp_info.forward_reference != VDP_INVALID_HANDLE)
@@ -194,10 +194,10 @@ gst_vdpau_mpeg_decoder_decode (GstVdpauMpegDecoder * mpeg_dec)
}
static gboolean
-gst_vdpau_mpeg_decoder_parse_picture_coding (GstVdpauMpegDecoder * mpeg_dec,
+gst_vdp_mpeg_decoder_parse_picture_coding (GstVdpMpegDecoder * mpeg_dec,
guint8 * data, guint8 * end)
{
- GstVdpauDecoder *dec;
+ GstVdpDecoder *dec;
MPEGPictureExt pic_ext;
VdpPictureInfoMPEG1Or2 *info;
@@ -223,10 +223,10 @@ gst_vdpau_mpeg_decoder_parse_picture_coding (GstVdpauMpegDecoder * mpeg_dec,
}
static gboolean
-gst_vdpau_mpeg_decoder_parse_sequence (GstVdpauMpegDecoder * mpeg_dec,
+gst_vdp_mpeg_decoder_parse_sequence (GstVdpMpegDecoder * mpeg_dec,
guint8 * data, guint8 * end)
{
- GstVdpauDecoder *dec;
+ GstVdpDecoder *dec;
MPEGSeqHdr hdr;
dec = GST_VDPAU_DECODER (mpeg_dec);
@@ -243,10 +243,10 @@ gst_vdpau_mpeg_decoder_parse_sequence (GstVdpauMpegDecoder * mpeg_dec,
}
static gboolean
-gst_vdpau_mpeg_decoder_parse_picture (GstVdpauMpegDecoder * mpeg_dec,
+gst_vdp_mpeg_decoder_parse_picture (GstVdpMpegDecoder * mpeg_dec,
guint8 * data, guint8 * end)
{
- GstVdpauDecoder *dec;
+ GstVdpDecoder *dec;
MPEGPictureHdr pic_hdr;
dec = GST_VDPAU_DECODER (mpeg_dec);
@@ -278,7 +278,7 @@ gst_vdpau_mpeg_decoder_parse_picture (GstVdpauMpegDecoder * mpeg_dec,
}
static gboolean
-gst_vdpau_mpeg_decoder_parse_gop (GstVdpauMpegDecoder * mpeg_dec, guint8 * data,
+gst_vdp_mpeg_decoder_parse_gop (GstVdpMpegDecoder * mpeg_dec, guint8 * data,
guint8 * end)
{
MPEGPictureGOP gop;
@@ -290,7 +290,7 @@ gst_vdpau_mpeg_decoder_parse_gop (GstVdpauMpegDecoder * mpeg_dec, guint8 * data,
}
static gboolean
-gst_vdpau_mpeg_decoder_parse_quant_matrix (GstVdpauMpegDecoder * mpeg_dec,
+gst_vdp_mpeg_decoder_parse_quant_matrix (GstVdpMpegDecoder * mpeg_dec,
guint8 * data, guint8 * end)
{
MPEGQuantMatrix qm;
@@ -306,9 +306,9 @@ gst_vdpau_mpeg_decoder_parse_quant_matrix (GstVdpauMpegDecoder * mpeg_dec,
}
static GstFlowReturn
-gst_vdpau_mpeg_decoder_chain (GstPad * pad, GstBuffer * buffer)
+gst_vdp_mpeg_decoder_chain (GstPad * pad, GstBuffer * buffer)
{
- GstVdpauMpegDecoder *mpeg_dec;
+ GstVdpMpegDecoder *mpeg_dec;
guint8 *data, *end;
guint32 sync_word = 0xffffffff;
@@ -345,22 +345,21 @@ gst_vdpau_mpeg_decoder_chain (GstPad * pad, GstBuffer * buffer)
case MPEG_PACKET_PICTURE:
GST_DEBUG_OBJECT (mpeg_dec, "MPEG_PACKET_PICTURE");
if (mpeg_dec->vdp_info.slice_count > 0 && mpeg_dec->want_slice) {
- if (gst_vdpau_mpeg_decoder_decode (mpeg_dec) != GST_FLOW_OK)
+ if (gst_vdp_mpeg_decoder_decode (mpeg_dec) != GST_FLOW_OK)
return GST_FLOW_ERROR;
}
- gst_vdpau_mpeg_decoder_parse_picture (mpeg_dec, packet_start,
- packet_end);
+ gst_vdp_mpeg_decoder_parse_picture (mpeg_dec, packet_start, packet_end);
break;
case MPEG_PACKET_SEQUENCE:
GST_DEBUG_OBJECT (mpeg_dec, "MPEG_PACKET_SEQUENCE");
- gst_vdpau_mpeg_decoder_parse_sequence (mpeg_dec, packet_start,
+ gst_vdp_mpeg_decoder_parse_sequence (mpeg_dec, packet_start,
packet_end);
break;
case MPEG_PACKET_EXTENSION:
GST_DEBUG_OBJECT (mpeg_dec, "MPEG_PACKET_EXTENSION");
switch (read_bits (data + 1, 0, 4)) {
case MPEG_PACKET_EXT_PICTURE_CODING:
- gst_vdpau_mpeg_decoder_parse_picture_coding (mpeg_dec, packet_start,
+ gst_vdp_mpeg_decoder_parse_picture_coding (mpeg_dec, packet_start,
packet_end);
break;
default:
@@ -369,12 +368,12 @@ gst_vdpau_mpeg_decoder_chain (GstPad * pad, GstBuffer * buffer)
break;
case MPEG_PACKET_EXT_QUANT_MATRIX:
GST_DEBUG_OBJECT (mpeg_dec, "MPEG_PACKET_EXT_QUANT_MATRIX");
- gst_vdpau_mpeg_decoder_parse_quant_matrix (mpeg_dec, packet_start,
+ gst_vdp_mpeg_decoder_parse_quant_matrix (mpeg_dec, packet_start,
packet_end);
break;
case MPEG_PACKET_GOP:
GST_DEBUG_OBJECT (mpeg_dec, "MPEG_PACKET_GOP");
- gst_vdpau_mpeg_decoder_parse_gop (mpeg_dec, packet_start, packet_end);
+ gst_vdp_mpeg_decoder_parse_gop (mpeg_dec, packet_start, packet_end);
break;
default:
break;
@@ -387,7 +386,7 @@ gst_vdpau_mpeg_decoder_chain (GstPad * pad, GstBuffer * buffer)
/* GObject vmethod implementations */
static void
-gst_vdpau_mpeg_decoder_base_init (gpointer gclass)
+gst_vdp_mpeg_decoder_base_init (gpointer gclass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
@@ -403,25 +402,25 @@ gst_vdpau_mpeg_decoder_base_init (gpointer gclass)
/* initialize the vdpaumpegdecoder's class */
static void
-gst_vdpau_mpeg_decoder_class_init (GstVdpauMpegDecoderClass * klass)
+gst_vdp_mpeg_decoder_class_init (GstVdpMpegDecoderClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *gstelement_class;
- GstVdpauDecoderClass *vdpaudec_class;
+ GstVdpDecoderClass *vdpaudec_class;
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
- vdpaudec_class = (GstVdpauDecoderClass *) klass;
+ vdpaudec_class = (GstVdpDecoderClass *) klass;
- gobject_class->finalize = gst_vdpau_mpeg_decoder_finalize;
- gobject_class->set_property = gst_vdpau_mpeg_decoder_set_property;
- gobject_class->get_property = gst_vdpau_mpeg_decoder_get_property;
+ gobject_class->finalize = gst_vdp_mpeg_decoder_finalize;
+ gobject_class->set_property = gst_vdp_mpeg_decoder_set_property;
+ gobject_class->get_property = gst_vdp_mpeg_decoder_get_property;
- vdpaudec_class->set_caps = gst_vdpau_mpeg_decoder_set_caps;
+ vdpaudec_class->set_caps = gst_vdp_mpeg_decoder_set_caps;
}
static void
-gst_vdpau_mpeg_decoder_init_info (VdpPictureInfoMPEG1Or2 * vdp_info)
+gst_vdp_mpeg_decoder_init_info (VdpPictureInfoMPEG1Or2 * vdp_info)
{
vdp_info->forward_reference = VDP_INVALID_HANDLE;
vdp_info->backward_reference = VDP_INVALID_HANDLE;
@@ -434,33 +433,33 @@ gst_vdpau_mpeg_decoder_init_info (VdpPictureInfoMPEG1Or2 * vdp_info)
}
static void
-gst_vdpau_mpeg_decoder_init (GstVdpauMpegDecoder * mpeg_dec,
- GstVdpauMpegDecoderClass * gclass)
+gst_vdp_mpeg_decoder_init (GstVdpMpegDecoder * mpeg_dec,
+ GstVdpMpegDecoderClass * gclass)
{
- GstVdpauDecoder *dec;
+ GstVdpDecoder *dec;
dec = GST_VDPAU_DECODER (mpeg_dec);
mpeg_dec->decoder = VDP_INVALID_HANDLE;
- gst_vdpau_mpeg_decoder_init_info (&mpeg_dec->vdp_info);
+ gst_vdp_mpeg_decoder_init_info (&mpeg_dec->vdp_info);
mpeg_dec->adapter = gst_adapter_new ();
mpeg_dec->want_slice = FALSE;
- gst_pad_set_chain_function (dec->sink, gst_vdpau_mpeg_decoder_chain);
+ gst_pad_set_chain_function (dec->sink, gst_vdp_mpeg_decoder_chain);
}
static void
-gst_vdpau_mpeg_decoder_finalize (GObject * object)
+gst_vdp_mpeg_decoder_finalize (GObject * object)
{
- GstVdpauMpegDecoder *mpeg_dec = (GstVdpauMpegDecoder *) object;
+ GstVdpMpegDecoder *mpeg_dec = (GstVdpMpegDecoder *) object;
g_object_unref (mpeg_dec->adapter);
}
static void
-gst_vdpau_mpeg_decoder_set_property (GObject * object, guint prop_id,
+gst_vdp_mpeg_decoder_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
switch (prop_id) {
@@ -471,7 +470,7 @@ gst_vdpau_mpeg_decoder_set_property (GObject * object, guint prop_id,
}
static void
-gst_vdpau_mpeg_decoder_get_property (GObject * object, guint prop_id,
+gst_vdp_mpeg_decoder_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec)
{
switch (prop_id) {
diff --git a/sys/vdpau/gstvdpaumpegdecoder.h b/sys/vdpau/gstvdpmpegdecoder.h
index 785c0c15..dc90764b 100644
--- a/sys/vdpau/gstvdpaumpegdecoder.h
+++ b/sys/vdpau/gstvdpmpegdecoder.h
@@ -24,22 +24,22 @@
#include <gst/gst.h>
#include <gst/base/gstadapter.h>
-#include "gstvdpaudecoder.h"
+#include "gstvdpdecoder.h"
G_BEGIN_DECLS
-#define GST_TYPE_VDPAU_MPEG_DECODER (gst_vdpau_mpeg_decoder_get_type())
-#define GST_VDPAU_MPEG_DECODER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VDPAU_MPEG_DECODER,GstVdpauMpegDecoder))
-#define GST_VDPAU_MPEG_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VDPAU_MPEG_DECODER,GstVdpauMpegDecoderClass))
+#define GST_TYPE_VDPAU_MPEG_DECODER (gst_vdp_mpeg_decoder_get_type())
+#define GST_VDPAU_MPEG_DECODER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VDPAU_MPEG_DECODER,GstVdpMpegDecoder))
+#define GST_VDPAU_MPEG_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VDPAU_MPEG_DECODER,GstVdpMpegDecoderClass))
#define GST_IS_VDPAU_MPEG_DECODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VDPAU_MPEG_DECODER))
#define GST_IS_VDPAU_MPEG_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VDPAU_MPEG_DECODER))
-typedef struct _GstVdpauMpegDecoder GstVdpauMpegDecoder;
-typedef struct _GstVdpauMpegDecoderClass GstVdpauMpegDecoderClass;
+typedef struct _GstVdpMpegDecoder GstVdpMpegDecoder;
+typedef struct _GstVdpMpegDecoderClass GstVdpMpegDecoderClass;
-struct _GstVdpauMpegDecoder
+struct _GstVdpMpegDecoder
{
- GstVdpauDecoder dec;
+ GstVdpDecoder dec;
gint version;
@@ -53,12 +53,12 @@ struct _GstVdpauMpegDecoder
gint slices;
};
-struct _GstVdpauMpegDecoderClass
+struct _GstVdpMpegDecoderClass
{
- GstVdpauDecoderClass parent_class;
+ GstVdpDecoderClass parent_class;
};
-GType gst_vdpau_mpeg_decoder_get_type (void);
+GType gst_vdp_mpeg_decoder_get_type (void);
G_END_DECLS
diff --git a/sys/vdpau/gstvdpauvideobuffer.c b/sys/vdpau/gstvdpvideobuffer.c
index f7ece0eb..c62ac771 100644
--- a/sys/vdpau/gstvdpauvideobuffer.c
+++ b/sys/vdpau/gstvdpvideobuffer.c
@@ -22,14 +22,14 @@
#include "config.h"
#endif
-#include "gstvdpauvideobuffer.h"
+#include "gstvdpvideobuffer.h"
-static GObjectClass *gst_vdpau_video_buffer_parent_class;
+static GObjectClass *gst_vdp_video_buffer_parent_class;
static void
-gst_vdpau_video_buffer_finalize (GstVdpauVideoBuffer * buffer)
+gst_vdp_video_buffer_finalize (GstVdpVideoBuffer * buffer)
{
- GstVdpauDevice *device = buffer->device;
+ GstVdpDevice *device = buffer->device;
VdpStatus status;
status = device->vdp_video_surface_destroy (buffer->surface);
@@ -40,59 +40,59 @@ gst_vdpau_video_buffer_finalize (GstVdpauVideoBuffer * buffer)
g_object_unref (buffer->device);
- GST_MINI_OBJECT_CLASS (gst_vdpau_video_buffer_parent_class)->finalize
+ GST_MINI_OBJECT_CLASS (gst_vdp_video_buffer_parent_class)->finalize
(GST_MINI_OBJECT (buffer));
}
static void
-gst_vdpau_video_buffer_init (GstVdpauVideoBuffer * buffer, gpointer g_class)
+gst_vdp_video_buffer_init (GstVdpVideoBuffer * buffer, gpointer g_class)
{
buffer->device = NULL;
buffer->surface = VDP_INVALID_HANDLE;
}
static void
-gst_vdpau_video_buffer_class_init (gpointer g_class, gpointer class_data)
+gst_vdp_video_buffer_class_init (gpointer g_class, gpointer class_data)
{
GstMiniObjectClass *mini_object_class = GST_MINI_OBJECT_CLASS (g_class);
- gst_vdpau_video_buffer_parent_class = g_type_class_peek_parent (g_class);
+ gst_vdp_video_buffer_parent_class = g_type_class_peek_parent (g_class);
mini_object_class->finalize = (GstMiniObjectFinalizeFunction)
- gst_vdpau_video_buffer_finalize;
+ gst_vdp_video_buffer_finalize;
}
GType
-gst_vdpau_video_buffer_get_type (void)
+gst_vdp_video_buffer_get_type (void)
{
- static GType _gst_vdpau_video_buffer_type;
+ static GType _gst_vdp_video_buffer_type;
- if (G_UNLIKELY (_gst_vdpau_video_buffer_type == 0)) {
+ if (G_UNLIKELY (_gst_vdp_video_buffer_type == 0)) {
static const GTypeInfo info = {
sizeof (GstBufferClass),
NULL,
NULL,
- gst_vdpau_video_buffer_class_init,
+ gst_vdp_video_buffer_class_init,
NULL,
NULL,
- sizeof (GstVdpauVideoBuffer),
+ sizeof (GstVdpVideoBuffer),
0,
- (GInstanceInitFunc) gst_vdpau_video_buffer_init,
+ (GInstanceInitFunc) gst_vdp_video_buffer_init,
NULL
};
- _gst_vdpau_video_buffer_type = g_type_register_static (GST_TYPE_BUFFER,
- "GstVdpauVideoBuffer", &info, 0);
+ _gst_vdp_video_buffer_type = g_type_register_static (GST_TYPE_BUFFER,
+ "GstVdpVideoBuffer", &info, 0);
}
- return _gst_vdpau_video_buffer_type;
+ return _gst_vdp_video_buffer_type;
}
-GstVdpauVideoBuffer *
-gst_vdpau_video_buffer_new (GstVdpauDevice * device, VdpChromaType chroma_type,
+GstVdpVideoBuffer *
+gst_vdp_video_buffer_new (GstVdpDevice * device, VdpChromaType chroma_type,
gint width, gint height)
{
- GstVdpauVideoBuffer *buffer;
+ GstVdpVideoBuffer *buffer;
VdpStatus status;
VdpVideoSurface surface;
@@ -105,7 +105,7 @@ gst_vdpau_video_buffer_new (GstVdpauDevice * device, VdpChromaType chroma_type,
}
buffer =
- (GstVdpauVideoBuffer *) gst_mini_object_new (GST_TYPE_VDPAU_VIDEO_BUFFER);
+ (GstVdpVideoBuffer *) gst_mini_object_new (GST_TYPE_VDPAU_VIDEO_BUFFER);
buffer->device = g_object_ref (device);
buffer->surface = surface;
diff --git a/sys/vdpau/gstvdpauvideobuffer.h b/sys/vdpau/gstvdpvideobuffer.h
index fe2b4b7f..ab4fb154 100644
--- a/sys/vdpau/gstvdpauvideobuffer.h
+++ b/sys/vdpau/gstvdpvideobuffer.h
@@ -24,27 +24,27 @@
#include <gst/gst.h>
#include <gst/video/video.h>
-#include "gstvdpaudevice.h"
+#include "gstvdpdevice.h"
-#include "gstvdpauvideobuffer.h"
+#include "gstvdpvideobuffer.h"
-typedef struct _GstVdpauVideoBuffer GstVdpauVideoBuffer;
+typedef struct _GstVdpVideoBuffer GstVdpVideoBuffer;
-#define GST_TYPE_VDPAU_VIDEO_BUFFER (gst_vdpau_video_buffer_get_type())
+#define GST_TYPE_VDPAU_VIDEO_BUFFER (gst_vdp_video_buffer_get_type())
#define GST_IS_VDPAU_VIDEO_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VDPAU_VIDEO_BUFFER))
-#define GST_VDPAU_VIDEO_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VDPAU_VIDEO_BUFFER, GstVdpauVideoBuffer))
+#define GST_VDPAU_VIDEO_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VDPAU_VIDEO_BUFFER, GstVdpVideoBuffer))
-struct _GstVdpauVideoBuffer {
+struct _GstVdpVideoBuffer {
GstBuffer buffer;
- GstVdpauDevice *device;
+ GstVdpDevice *device;
VdpVideoSurface surface;
};
-GType gst_vdpau_video_buffer_get_type (void);
+GType gst_vdp_video_buffer_get_type (void);
-GstVdpauVideoBuffer* gst_vdpau_video_buffer_new (GstVdpauDevice * device, VdpChromaType chroma_type, gint width, gint height);
+GstVdpVideoBuffer* gst_vdp_video_buffer_new (GstVdpDevice * device, VdpChromaType chroma_type, gint width, gint height);
#define GST_VDPAU_VIDEO_CAPS \
"video/vdpau-video, " \
diff --git a/sys/vdpau/gstvdpauvideoyuv.c b/sys/vdpau/gstvdpvideoyuv.c
index 879e4562..917a4edc 100644
--- a/sys/vdpau/gstvdpauvideoyuv.c
+++ b/sys/vdpau/gstvdpvideoyuv.c
@@ -25,11 +25,11 @@
#include <gst/gst.h>
#include <gst/video/video.h>
-#include "gstvdpauvideobuffer.h"
-#include "gstvdpauvideoyuv.h"
+#include "gstvdpvideobuffer.h"
+#include "gstvdpvideoyuv.h"
-GST_DEBUG_CATEGORY_STATIC (gst_vdpau_video_yuv_debug);
-#define GST_CAT_DEFAULT gst_vdpau_video_yuv_debug
+GST_DEBUG_CATEGORY_STATIC (gst_vdp_video_yuv_debug);
+#define GST_CAT_DEFAULT gst_vdp_video_yuv_debug
/* Filter signals and args */
enum
@@ -56,22 +56,22 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
"width = (int) [ 1, MAX ], " "height = (int) [ 1, MAX ]"));
#define DEBUG_INIT(bla) \
- GST_DEBUG_CATEGORY_INIT (gst_vdpau_video_yuv_debug, "vdpauvideoyuv", 0, "VDPAU VdpSurface to YUV");
+ GST_DEBUG_CATEGORY_INIT (gst_vdp_video_yuv_debug, "vdpauvideoyuv", 0, "VDPAU VdpSurface to YUV");
-GST_BOILERPLATE_FULL (GstVdpauVideoYUV, gst_vdpau_video_yuv, GstElement,
+GST_BOILERPLATE_FULL (GstVdpVideoYUV, gst_vdp_video_yuv, GstElement,
GST_TYPE_ELEMENT, DEBUG_INIT);
-static void gst_vdpau_video_yuv_finalize (GObject * object);
-static void gst_vdpau_video_yuv_set_property (GObject * object, guint prop_id,
+static void gst_vdp_video_yuv_finalize (GObject * object);
+static void gst_vdp_video_yuv_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
-static void gst_vdpau_video_yuv_get_property (GObject * object, guint prop_id,
+static void gst_vdp_video_yuv_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
GstFlowReturn
-gst_vdpau_video_yuv_chain (GstPad * pad, GstBuffer * buffer)
+gst_vdp_video_yuv_chain (GstPad * pad, GstBuffer * buffer)
{
- GstVdpauVideoYUV *video_yuv;
- GstVdpauDevice *device;
+ GstVdpVideoYUV *video_yuv;
+ GstVdpDevice *device;
VdpVideoSurface surface;
GstBuffer *outbuf = NULL;
@@ -223,8 +223,8 @@ error:
}
static GstCaps *
-gst_vdpau_video_yuv_get_caps (GstVdpauVideoYUV * video_yuv,
- GstVdpauDevice * device, gint chroma_type, gint width, gint height,
+gst_vdp_video_yuv_get_caps (GstVdpVideoYUV * video_yuv,
+ GstVdpDevice * device, gint chroma_type, gint width, gint height,
gint framerate_numerator, gint framerate_denominator, gint par_numerator,
gint par_denominator)
{
@@ -274,14 +274,14 @@ gst_vdpau_video_yuv_get_caps (GstVdpauVideoYUV * video_yuv,
}
static gboolean
-gst_vdpau_video_yuv_sink_set_caps (GstPad * pad, GstCaps * caps)
+gst_vdp_video_yuv_sink_set_caps (GstPad * pad, GstCaps * caps)
{
- GstVdpauVideoYUV *video_yuv = GST_VDPAU_VIDEO_YUV (GST_OBJECT_PARENT (pad));
+ GstVdpVideoYUV *video_yuv = GST_VDPAU_VIDEO_YUV (GST_OBJECT_PARENT (pad));
GstCaps *src_caps, *new_caps;
GstStructure *structure;
const GValue *value;
- GstVdpauDevice *device;
+ GstVdpDevice *device;
gint chroma_type;
gint width, height;
gint framerate_numerator, framerate_denominator;
@@ -302,7 +302,7 @@ gst_vdpau_video_yuv_sink_set_caps (GstPad * pad, GstCaps * caps)
&par_numerator, &par_denominator);
src_caps =
- gst_vdpau_video_yuv_get_caps (video_yuv, device, chroma_type, width,
+ gst_vdp_video_yuv_get_caps (video_yuv, device, chroma_type, width,
height, framerate_numerator, framerate_denominator, par_numerator,
par_denominator);
if (G_UNLIKELY (!src_caps))
@@ -340,9 +340,9 @@ gst_vdpau_video_yuv_sink_set_caps (GstPad * pad, GstCaps * caps)
}
static GstCaps *
-gst_vdpau_video_yuv_src_getcaps (GstPad * pad)
+gst_vdp_video_yuv_src_getcaps (GstPad * pad)
{
- GstVdpauVideoYUV *video_yuv;
+ GstVdpVideoYUV *video_yuv;
video_yuv = GST_VDPAU_VIDEO_YUV (GST_OBJECT_PARENT (pad));
@@ -358,7 +358,7 @@ gst_vdpau_video_yuv_src_getcaps (GstPad * pad)
/* GObject vmethod implementations */
static void
-gst_vdpau_video_yuv_base_init (gpointer klass)
+gst_vdp_video_yuv_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
@@ -375,7 +375,7 @@ gst_vdpau_video_yuv_base_init (gpointer klass)
}
static void
-gst_vdpau_video_yuv_class_init (GstVdpauVideoYUVClass * klass)
+gst_vdp_video_yuv_class_init (GstVdpVideoYUVClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *gstelement_class;
@@ -383,14 +383,13 @@ gst_vdpau_video_yuv_class_init (GstVdpauVideoYUVClass * klass)
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
- gobject_class->finalize = gst_vdpau_video_yuv_finalize;
- gobject_class->set_property = gst_vdpau_video_yuv_set_property;
- gobject_class->get_property = gst_vdpau_video_yuv_get_property;
+ gobject_class->finalize = gst_vdp_video_yuv_finalize;
+ gobject_class->set_property = gst_vdp_video_yuv_set_property;
+ gobject_class->get_property = gst_vdp_video_yuv_get_property;
}
static void
-gst_vdpau_video_yuv_init (GstVdpauVideoYUV * video_yuv,
- GstVdpauVideoYUVClass * klass)
+gst_vdp_video_yuv_init (GstVdpVideoYUV * video_yuv, GstVdpVideoYUVClass * klass)
{
video_yuv->src_caps = NULL;
@@ -402,29 +401,28 @@ gst_vdpau_video_yuv_init (GstVdpauVideoYUV * video_yuv,
video_yuv->par_denominator = 1;
video_yuv->src = gst_pad_new_from_static_template (&src_template, "src");
- gst_pad_set_getcaps_function (video_yuv->src,
- gst_vdpau_video_yuv_src_getcaps);
+ gst_pad_set_getcaps_function (video_yuv->src, gst_vdp_video_yuv_src_getcaps);
gst_element_add_pad (GST_ELEMENT (video_yuv), video_yuv->src);
video_yuv->sink = gst_pad_new_from_static_template (&sink_template, "sink");
gst_pad_set_setcaps_function (video_yuv->sink,
- gst_vdpau_video_yuv_sink_set_caps);
- gst_pad_set_chain_function (video_yuv->sink, gst_vdpau_video_yuv_chain);
+ gst_vdp_video_yuv_sink_set_caps);
+ gst_pad_set_chain_function (video_yuv->sink, gst_vdp_video_yuv_chain);
gst_element_add_pad (GST_ELEMENT (video_yuv), video_yuv->sink);
gst_pad_set_active (video_yuv->sink, TRUE);
}
static void
-gst_vdpau_video_yuv_finalize (GObject * object)
+gst_vdp_video_yuv_finalize (GObject * object)
{
- GstVdpauVideoYUV *video_yuv = (GstVdpauVideoYUV *) object;
+ GstVdpVideoYUV *video_yuv = (GstVdpVideoYUV *) object;
if (video_yuv->src_caps)
gst_caps_unref (video_yuv->src_caps);
}
static void
-gst_vdpau_video_yuv_set_property (GObject * object, guint prop_id,
+gst_vdp_video_yuv_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
switch (prop_id) {
@@ -435,7 +433,7 @@ gst_vdpau_video_yuv_set_property (GObject * object, guint prop_id,
}
static void
-gst_vdpau_video_yuv_get_property (GObject * object, guint prop_id,
+gst_vdp_video_yuv_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec)
{
switch (prop_id) {
diff --git a/sys/vdpau/gstvdpauvideoyuv.h b/sys/vdpau/gstvdpvideoyuv.h
index 477b3067..f2aa4c82 100644
--- a/sys/vdpau/gstvdpauvideoyuv.h
+++ b/sys/vdpau/gstvdpvideoyuv.h
@@ -23,21 +23,21 @@
#include <gst/gst.h>
-#include "gstvdpaudevice.h"
+#include "gstvdpdevice.h"
G_BEGIN_DECLS
-#define GST_TYPE_VDPAU_VIDEO_YUV (gst_vdpau_video_yuv_get_type())
-#define GST_VDPAU_VIDEO_YUV(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VDPAU_VIDEO_YUV,GstVdpauVideoYUV))
-#define GST_VDPAU_VIDEO_YUV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VDPAU_VIDEO_YUV,GstVdpauVideoYUVClass))
-#define GST_VDPAU_VIDEO_YUV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VDPAU_VIDEO_YUV, GstVdpauVideoYUVClass))
+#define GST_TYPE_VDPAU_VIDEO_YUV (gst_vdp_video_yuv_get_type())
+#define GST_VDPAU_VIDEO_YUV(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VDPAU_VIDEO_YUV,GstVdpVideoYUV))
+#define GST_VDPAU_VIDEO_YUV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VDPAU_VIDEO_YUV,GstVdpVideoYUVClass))
+#define GST_VDPAU_VIDEO_YUV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VDPAU_VIDEO_YUV, GstVdpVideoYUVClass))
#define GST_IS_VDPAU_VIDEO_YUV(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VDPAU_VIDEO_YUV))
#define GST_IS_VDPAU_VIDEO_YUV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VDPAU_VIDEO_YUV))
-typedef struct _GstVdpauVideoYUV GstVdpauVideoYUV;
-typedef struct _GstVdpauVideoYUVClass GstVdpauVideoYUVClass;
+typedef struct _GstVdpVideoYUV GstVdpVideoYUV;
+typedef struct _GstVdpVideoYUVClass GstVdpVideoYUVClass;
-struct _GstVdpauVideoYUV {
+struct _GstVdpVideoYUV {
GstElement element;
GstPad *src, *sink;
@@ -49,11 +49,11 @@ struct _GstVdpauVideoYUV {
guint format;
};
-struct _GstVdpauVideoYUVClass {
+struct _GstVdpVideoYUVClass {
GstElementClass parent_class;
};
-GType gst_vdpau_video_yuv_get_type (void);
+GType gst_vdp_video_yuv_get_type (void);
G_END_DECLS
diff --git a/sys/vdpau/gstvdpauyuvvideo.c b/sys/vdpau/gstvdpyuvvideo.c
index a9ccb731..d5ed01cb 100644
--- a/sys/vdpau/gstvdpauyuvvideo.c
+++ b/sys/vdpau/gstvdpyuvvideo.c
@@ -25,11 +25,11 @@
#include <gst/gst.h>
#include <gst/video/video.h>
-#include "gstvdpauvideobuffer.h"
-#include "gstvdpauyuvvideo.h"
+#include "gstvdpvideobuffer.h"
+#include "gstvdpyuvvideo.h"
-GST_DEBUG_CATEGORY_STATIC (gst_vdpau_yuv_video_debug);
-#define GST_CAT_DEFAULT gst_vdpau_yuv_video_debug
+GST_DEBUG_CATEGORY_STATIC (gst_vdp_yuv_video_debug);
+#define GST_CAT_DEFAULT gst_vdp_yuv_video_debug
/* Filter signals and args */
enum
@@ -57,22 +57,22 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS (GST_VDPAU_VIDEO_CAPS));
#define DEBUG_INIT(bla) \
- GST_DEBUG_CATEGORY_INIT (gst_vdpau_yuv_video_debug, "vdpauvideoyuv", 0, "YUV to VDPAU video surface");
+ GST_DEBUG_CATEGORY_INIT (gst_vdp_yuv_video_debug, "vdpauvideoyuv", 0, "YUV to VDPAU video surface");
-GST_BOILERPLATE_FULL (GstVdpauYUVVideo, gst_vdpau_yuv_video, GstElement,
+GST_BOILERPLATE_FULL (GstVdpYUVVideo, gst_vdp_yuv_video, GstElement,
GST_TYPE_ELEMENT, DEBUG_INIT);
-static void gst_vdpau_yuv_video_finalize (GObject * object);
-static void gst_vdpau_yuv_video_set_property (GObject * object, guint prop_id,
+static void gst_vdp_yuv_video_finalize (GObject * object);
+static void gst_vdp_yuv_video_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
-static void gst_vdpau_yuv_video_get_property (GObject * object, guint prop_id,
+static void gst_vdp_yuv_video_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
GstFlowReturn
-gst_vdpau_yuv_video_chain (GstPad * pad, GstBuffer * buffer)
+gst_vdp_yuv_video_chain (GstPad * pad, GstBuffer * buffer)
{
- GstVdpauYUVVideo *yuv_video;
- GstVdpauDevice *device;
+ GstVdpYUVVideo *yuv_video;
+ GstVdpDevice *device;
VdpVideoSurface surface;
GstBuffer *outbuf = NULL;
@@ -80,7 +80,7 @@ gst_vdpau_yuv_video_chain (GstPad * pad, GstBuffer * buffer)
device = yuv_video->device;
outbuf =
- GST_BUFFER (gst_vdpau_video_buffer_new (device, yuv_video->chroma_type,
+ GST_BUFFER (gst_vdp_video_buffer_new (device, yuv_video->chroma_type,
yuv_video->width, yuv_video->height));
surface = GST_VDPAU_VIDEO_BUFFER (outbuf)->surface;
@@ -196,9 +196,9 @@ error:
}
static GstCaps *
-gst_vdpau_yuv_video_get_caps (GstVdpauYUVVideo * yuv_video)
+gst_vdp_yuv_video_get_caps (GstVdpYUVVideo * yuv_video)
{
- GstVdpauDevice *device;
+ GstVdpDevice *device;
GstCaps *caps;
gint i;
@@ -265,9 +265,9 @@ error:
}
static gboolean
-gst_vdpau_yuv_video_sink_setcaps (GstPad * pad, GstCaps * caps)
+gst_vdp_yuv_video_sink_setcaps (GstPad * pad, GstCaps * caps)
{
- GstVdpauYUVVideo *yuv_video = GST_VDPAU_YUV_VIDEO (GST_OBJECT_PARENT (pad));
+ GstVdpYUVVideo *yuv_video = GST_VDPAU_YUV_VIDEO (GST_OBJECT_PARENT (pad));
GstStructure *structure;
guint32 fourcc;
@@ -333,9 +333,9 @@ gst_vdpau_yuv_video_sink_setcaps (GstPad * pad, GstCaps * caps)
}
static GstCaps *
-gst_vdpau_yuv_video_sink_getcaps (GstPad * pad)
+gst_vdp_yuv_video_sink_getcaps (GstPad * pad)
{
- GstVdpauYUVVideo *yuv_video;
+ GstVdpYUVVideo *yuv_video;
yuv_video = GST_VDPAU_YUV_VIDEO (GST_OBJECT_PARENT (pad));
@@ -346,18 +346,17 @@ gst_vdpau_yuv_video_sink_getcaps (GstPad * pad)
}
static GstStateChangeReturn
-gst_vdpau_yuv_video_change_state (GstElement * element,
- GstStateChange transition)
+gst_vdp_yuv_video_change_state (GstElement * element, GstStateChange transition)
{
- GstVdpauYUVVideo *yuv_video;
+ GstVdpYUVVideo *yuv_video;
yuv_video = GST_VDPAU_YUV_VIDEO (element);
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
- yuv_video->device = gst_vdpau_get_device (yuv_video->display);
+ yuv_video->device = gst_vdp_get_device (yuv_video->display);
if (!yuv_video->sink_caps)
- yuv_video->sink_caps = gst_vdpau_yuv_video_get_caps (yuv_video);
+ yuv_video->sink_caps = gst_vdp_yuv_video_get_caps (yuv_video);
break;
case GST_STATE_CHANGE_READY_TO_NULL:
g_object_unref (yuv_video->device);
@@ -373,7 +372,7 @@ gst_vdpau_yuv_video_change_state (GstElement * element,
/* GObject vmethod implementations */
static void
-gst_vdpau_yuv_video_base_init (gpointer klass)
+gst_vdp_yuv_video_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
@@ -390,7 +389,7 @@ gst_vdpau_yuv_video_base_init (gpointer klass)
}
static void
-gst_vdpau_yuv_video_class_init (GstVdpauYUVVideoClass * klass)
+gst_vdp_yuv_video_class_init (GstVdpYUVVideoClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *gstelement_class;
@@ -398,20 +397,19 @@ gst_vdpau_yuv_video_class_init (GstVdpauYUVVideoClass * klass)
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
- gobject_class->finalize = gst_vdpau_yuv_video_finalize;
- gobject_class->set_property = gst_vdpau_yuv_video_set_property;
- gobject_class->get_property = gst_vdpau_yuv_video_get_property;
+ gobject_class->finalize = gst_vdp_yuv_video_finalize;
+ gobject_class->set_property = gst_vdp_yuv_video_set_property;
+ gobject_class->get_property = gst_vdp_yuv_video_get_property;
g_object_class_install_property (gobject_class, PROP_DISPLAY,
g_param_spec_string ("display", "Display", "X Display name",
NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
- gstelement_class->change_state = gst_vdpau_yuv_video_change_state;
+ gstelement_class->change_state = gst_vdp_yuv_video_change_state;
}
static void
-gst_vdpau_yuv_video_init (GstVdpauYUVVideo * yuv_video,
- GstVdpauYUVVideoClass * klass)
+gst_vdp_yuv_video_init (GstVdpYUVVideo * yuv_video, GstVdpYUVVideoClass * klass)
{
yuv_video->sink_caps = NULL;
@@ -428,27 +426,27 @@ gst_vdpau_yuv_video_init (GstVdpauYUVVideo * yuv_video,
yuv_video->sink = gst_pad_new_from_static_template (&sink_template, "sink");
gst_pad_set_getcaps_function (yuv_video->sink,
- gst_vdpau_yuv_video_sink_getcaps);
+ gst_vdp_yuv_video_sink_getcaps);
gst_pad_set_setcaps_function (yuv_video->sink,
- gst_vdpau_yuv_video_sink_setcaps);
- gst_pad_set_chain_function (yuv_video->sink, gst_vdpau_yuv_video_chain);
+ gst_vdp_yuv_video_sink_setcaps);
+ gst_pad_set_chain_function (yuv_video->sink, gst_vdp_yuv_video_chain);
gst_element_add_pad (GST_ELEMENT (yuv_video), yuv_video->sink);
gst_pad_set_active (yuv_video->sink, TRUE);
}
static void
-gst_vdpau_yuv_video_finalize (GObject * object)
+gst_vdp_yuv_video_finalize (GObject * object)
{
- GstVdpauYUVVideo *yuv_video = (GstVdpauYUVVideo *) object;
+ GstVdpYUVVideo *yuv_video = (GstVdpYUVVideo *) object;
g_free (yuv_video->display);
}
static void
-gst_vdpau_yuv_video_set_property (GObject * object, guint prop_id,
+gst_vdp_yuv_video_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
- GstVdpauYUVVideo *yuv_video = GST_VDPAU_YUV_VIDEO (object);
+ GstVdpYUVVideo *yuv_video = GST_VDPAU_YUV_VIDEO (object);
switch (prop_id) {
case PROP_DISPLAY:
@@ -462,10 +460,10 @@ gst_vdpau_yuv_video_set_property (GObject * object, guint prop_id,
}
static void
-gst_vdpau_yuv_video_get_property (GObject * object, guint prop_id,
+gst_vdp_yuv_video_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec)
{
- GstVdpauYUVVideo *yuv_video = GST_VDPAU_YUV_VIDEO (object);
+ GstVdpYUVVideo *yuv_video = GST_VDPAU_YUV_VIDEO (object);
switch (prop_id) {
case PROP_DISPLAY:
diff --git a/sys/vdpau/gstvdpauyuvvideo.h b/sys/vdpau/gstvdpyuvvideo.h
index e80eacf9..fbb7d96d 100644
--- a/sys/vdpau/gstvdpauyuvvideo.h
+++ b/sys/vdpau/gstvdpyuvvideo.h
@@ -23,39 +23,39 @@
#include <gst/gst.h>
-#include "gstvdpaudevice.h"
+#include "gstvdpdevice.h"
G_BEGIN_DECLS
-#define GST_TYPE_VDPAU_YUV_VIDEO (gst_vdpau_yuv_video_get_type())
-#define GST_VDPAU_YUV_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VDPAU_YUV_VIDEO,GstVdpauYUVVideo))
-#define GST_VDPAU_YUV_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VDPAU_YUV_VIDEO,GstVdpauYUVVideoClass))
-#define GST_VDPAU_YUV_VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VDPAU_YUV_VIDEO, GstVdpauYUVVideoClass))
+#define GST_TYPE_VDPAU_YUV_VIDEO (gst_vdp_yuv_video_get_type())
+#define GST_VDPAU_YUV_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VDPAU_YUV_VIDEO,GstVdpYUVVideo))
+#define GST_VDPAU_YUV_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VDPAU_YUV_VIDEO,GstVdpYUVVideoClass))
+#define GST_VDPAU_YUV_VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VDPAU_YUV_VIDEO, GstVdpYUVVideoClass))
#define GST_IS_VDPAU_YUV_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VDPAU_YUV_VIDEO))
#define GST_IS_VDPAU_YUV_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VDPAU_YUV_VIDEO))
-typedef struct _GstVdpauYUVVideo GstVdpauYUVVideo;
-typedef struct _GstVdpauYUVVideoClass GstVdpauYUVVideoClass;
+typedef struct _GstVdpYUVVideo GstVdpYUVVideo;
+typedef struct _GstVdpYUVVideoClass GstVdpYUVVideoClass;
-struct _GstVdpauYUVVideo {
+struct _GstVdpYUVVideo {
GstElement element;
GstPad *src, *sink;
GstCaps *sink_caps;
gchar *display;
- GstVdpauDevice *device;
+ GstVdpDevice *device;
guint32 format;
gint chroma_type;
gint width, height;
};
-struct _GstVdpauYUVVideoClass {
+struct _GstVdpYUVVideoClass {
GstElementClass parent_class;
};
-GType gst_vdpau_yuv_video_get_type (void);
+GType gst_vdp_yuv_video_get_type (void);
G_END_DECLS