summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapidecode.h
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2011-09-14 15:12:41 -0400
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2011-12-07 14:33:59 +0100
commit48b3d02143bffc038abbe6acd5c18230f998ee24 (patch)
tree6ee99c7d06855495ba959a5f5367d5520bf20ab9 /gst/vaapi/gstvaapidecode.h
parent0b54e451c238cce231d4b20675313bed35afb336 (diff)
Group all plugins into the same bundle
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'gst/vaapi/gstvaapidecode.h')
-rw-r--r--gst/vaapi/gstvaapidecode.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapidecode.h b/gst/vaapi/gstvaapidecode.h
new file mode 100644
index 00000000..e2788a54
--- /dev/null
+++ b/gst/vaapi/gstvaapidecode.h
@@ -0,0 +1,87 @@
+/*
+ * gstvaapidecode.h - VA-API video decoder
+ *
+ * gstreamer-vaapi (C) 2010-2011 Splitted-Desktop Systems
+ * Copyright (C) 2011 Intel Corporation
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1
+ * of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA
+ */
+
+#ifndef GST_VAAPIDECODE_H
+#define GST_VAAPIDECODE_H
+
+#include <gst/gst.h>
+#include <gst/gsttask.h>
+#include <gst/vaapi/gstvaapidisplay.h>
+#include <gst/vaapi/gstvaapidecoder.h>
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_VAAPIDECODE \
+ (gst_vaapidecode_get_type())
+
+#define GST_VAAPIDECODE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ GST_TYPE_VAAPIDECODE, \
+ GstVaapiDecode))
+
+#define GST_VAAPIDECODE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ GST_TYPE_VAAPIDECODE, \
+ GstVaapiDecodeClass))
+
+#define GST_IS_VAAPIDECODE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_VAAPIDECODE))
+
+#define GST_IS_VAAPIDECODE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_VAAPIDECODE))
+
+#define GST_VAAPIDECODE_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS((obj), \
+ GST_TYPE_VAAPIDECODE, \
+ GstVaapiDecodeClass))
+
+typedef struct _GstVaapiDecode GstVaapiDecode;
+typedef struct _GstVaapiDecodeClass GstVaapiDecodeClass;
+
+struct _GstVaapiDecode {
+ /*< private >*/
+ GstElement parent_instance;
+
+ GstPad *sinkpad;
+ GstCaps *sinkpad_caps;
+ GstPad *srcpad;
+ GstCaps *srcpad_caps;
+ GstVaapiDisplay *display;
+ GstVaapiDecoder *decoder;
+ GMutex *decoder_mutex;
+ GCond *decoder_ready;
+ GstCaps *decoder_caps;
+ GstCaps *allowed_caps;
+ unsigned int use_ffmpeg : 1;
+};
+
+struct _GstVaapiDecodeClass {
+ /*< private >*/
+ GstElementClass parent_class;
+};
+
+GType
+gst_vaapidecode_get_type(void);
+
+G_END_DECLS
+
+#endif /* GST_VAAPIDECODE_H */