Tizen 2.0 Release
[framework/multimedia/gstreamer-vaapi.git] / gst-libs / gst / vaapi / gstvaapivideoconverter_glx.h
1 /*
2  *  gstvaapivideoconverter_glx.h - Gstreamer/VA video converter
3  *
4  *  Copyright (C) 2011 Intel Corporation
5  *  Copyright (C) 2011 Collabora Ltd.
6  *    Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
7  *
8  *  This library is free software; you can redistribute it and/or
9  *  modify it under the terms of the GNU Lesser General Public License
10  *  as published by the Free Software Foundation; either version 2.1
11  *  of the License, or (at your option) any later version.
12  *
13  *  This library is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  *  Lesser General Public License for more details.
17  *
18  *  You should have received a copy of the GNU Lesser General Public
19  *  License along with this library; if not, write to the Free
20  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  *  Boston, MA 02110-1301 USA
22  */
23
24 #ifndef GST_VAAPI_VIDEO_CONVERTER_GLX_H
25 #define GST_VAAPI_VIDEO_CONVERTER_GLX_H
26
27 #include <gst/video/gstsurfaceconverter.h>
28
29 G_BEGIN_DECLS
30
31 #define GST_VAAPI_TYPE_VIDEO_CONVERTER                (gst_vaapi_video_converter_glx_get_type ())
32 #define GST_VAAPI_VIDEO_CONVERTER_GLX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_VAAPI_TYPE_VIDEO_CONVERTER, GstVaapiVideoConverterGLX))
33 #define GST_VAAPI_VIDEO_CONVERTER_GLX_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GST_VAAPI_TYPE_VIDEO_CONVERTER, GstVaapiVideoConverterGLXClass))
34 #define GST_VAAPI_IS_VIDEO_CONVERTER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_VAAPI_TYPE_VIDEO_CONVERTER))
35 #define GST_VAAPI_IS_VIDEO_CONVERTER_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_VAAPI_TYPE_VIDEO_CONVERTER))
36 #define GST_VAAPI_VIDEO_CONVERTER_GLX_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_VAAPI_TYPE_VIDEO_CONVERTER, GstVaapiVideoConverterGLXClass))
37
38 typedef struct _GstVaapiVideoConverterGLX             GstVaapiVideoConverterGLX;
39 typedef struct _GstVaapiVideoConverterGLXPrivate      GstVaapiVideoConverterGLXPrivate;
40 typedef struct _GstVaapiVideoConverterGLXClass        GstVaapiVideoConverterGLXClass;
41
42 /**
43  * GstVaapiVideoConverterGLX:
44  *
45  * Converter to transform VA buffers into GL textures.
46  */
47 struct _GstVaapiVideoConverterGLX {
48     /*< private >*/
49     GObject parent_instance;
50
51     GstVaapiVideoConverterGLXPrivate *priv;
52 };
53
54 /**
55  * GstVaapiVideoConverterGLXClass:
56  *
57  * Converter to transform VA buffers into GL textures.
58  */
59 struct _GstVaapiVideoConverterGLXClass {
60     /*< private >*/
61     GObjectClass parent_class;
62 };
63
64 GType                 gst_vaapi_video_converter_glx_get_type (void) G_GNUC_CONST;
65
66 GstSurfaceConverter  *gst_vaapi_video_converter_glx_new      (GstSurfaceBuffer *buffer,
67                                                               const gchar      *type,
68                                                               GValue           *dest);
69
70 gboolean              gst_vaapi_video_converter_glx_upload   (GstSurfaceConverter *self,
71                                                               GstSurfaceBuffer *buffer);
72
73 G_END_DECLS
74
75 #endif /* GST_VAAPI_VIDEO_CONVERTER_GLX_H */