2 * gstvaapivideoconverter_glx.h - Gstreamer/VA video converter
4 * Copyright (C) 2011 Intel Corporation
5 * Copyright (C) 2011 Collabora Ltd.
6 * Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
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.
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.
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
24 #ifndef GST_VAAPI_VIDEO_CONVERTER_GLX_H
25 #define GST_VAAPI_VIDEO_CONVERTER_GLX_H
27 #include <gst/video/gstsurfaceconverter.h>
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))
38 typedef struct _GstVaapiVideoConverterGLX GstVaapiVideoConverterGLX;
39 typedef struct _GstVaapiVideoConverterGLXPrivate GstVaapiVideoConverterGLXPrivate;
40 typedef struct _GstVaapiVideoConverterGLXClass GstVaapiVideoConverterGLXClass;
43 * GstVaapiVideoConverterGLX:
45 * Converter to transform VA buffers into GL textures.
47 struct _GstVaapiVideoConverterGLX {
49 GObject parent_instance;
51 GstVaapiVideoConverterGLXPrivate *priv;
55 * GstVaapiVideoConverterGLXClass:
57 * Converter to transform VA buffers into GL textures.
59 struct _GstVaapiVideoConverterGLXClass {
61 GObjectClass parent_class;
64 GType gst_vaapi_video_converter_glx_get_type (void) G_GNUC_CONST;
66 GstSurfaceConverter *gst_vaapi_video_converter_glx_new (GstSurfaceBuffer *buffer,
70 gboolean gst_vaapi_video_converter_glx_upload (GstSurfaceConverter *self,
71 GstSurfaceBuffer *buffer);
75 #endif /* GST_VAAPI_VIDEO_CONVERTER_GLX_H */