vaapidecode: re-indent (gst-indent) gstvaapidecode.c
[platform/upstream/gstreamer.git] / gst / vaapi / gstvaapiuploader.h
1 /*
2  *  gstvaapiuploader.h - VA-API video upload helper
3  *
4  *  Copyright (C) 2010-2011 Splitted-Desktop Systems
5  *    Author: Gwenole Beauchesne <gwenole.beauchesne@splitted-desktop.com>
6  *  Copyright (C) 2011-2012 Intel Corporation
7  *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
8  *
9  *  This program is free software; you can redistribute it and/or
10  *  modify it under the terms of the GNU Lesser General Public License
11  *  as published by the Free Software Foundation; either version 2.1
12  *  of the License, or (at your option) any later version.
13  *
14  *  This program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  *  Lesser General Public License for more details.
18  *
19  *  You should have received a copy of the GNU Lesser General Public
20  *  License along with this program; if not, write to the Free
21  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  *  Boston, MA 02110-1301 USA
23 */
24
25 #ifndef GST_VAAPIUPLOADER_H
26 #define GST_VAAPIUPLOADER_H
27
28 #include <gst/vaapi/gstvaapidisplay.h>
29
30 G_BEGIN_DECLS
31
32 #define GST_VAAPI_TYPE_UPLOADER \
33   (gst_vaapi_uploader_get_type ())
34 #define GST_VAAPI_UPLOADER(obj) \
35   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_VAAPI_TYPE_UPLOADER, \
36        GstVaapiUploader))
37 #define GST_VAAPI_UPLOADER_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_VAAPI_TYPE_UPLOADER, \
39        GstVaapiUploaderClass))
40 #define GST_VAAPI_IS_UPLOADER(obj) \
41   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_VAAPI_TYPE_UPLOADER))
42 #define GST_VAAPI_IS_UPLOADER_CLASS(klass) \
43   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_VAAPI_TYPE_UPLOADER))
44 #define GST_VAAPI_UPLOADER_GET_CLASS(obj) \
45   (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_VAAPI_TYPE_UPLOADER, \
46        GstVaapiUploaderClass))
47
48 typedef struct _GstVaapiUploader GstVaapiUploader;
49 typedef struct _GstVaapiUploaderPrivate GstVaapiUploaderPrivate;
50 typedef struct _GstVaapiUploaderClass GstVaapiUploaderClass;
51
52 struct _GstVaapiUploader
53 {
54   /*< private >*/
55   GObject parent_instance;
56
57   GstVaapiUploaderPrivate *priv;
58 };
59
60 struct _GstVaapiUploaderClass
61 {
62   /*< private >*/
63   GObjectClass parent_class;
64 };
65
66 G_GNUC_INTERNAL
67 GType
68 gst_vaapi_uploader_get_type (void) G_GNUC_CONST;
69
70 G_GNUC_INTERNAL
71 GstVaapiUploader *
72 gst_vaapi_uploader_new (GstVaapiDisplay * display);
73
74 G_GNUC_INTERNAL
75 gboolean
76 gst_vaapi_uploader_ensure_display (GstVaapiUploader * uploader,
77     GstVaapiDisplay * display);
78
79 G_GNUC_INTERNAL
80 gboolean
81 gst_vaapi_uploader_ensure_caps (GstVaapiUploader * uploader,
82     GstCaps * src_caps, GstCaps * out_caps);
83
84 G_GNUC_INTERNAL
85 gboolean
86 gst_vaapi_uploader_process (GstVaapiUploader * uploader,
87     GstBuffer * src_buffer, GstBuffer * out_buffer);
88
89 G_GNUC_INTERNAL
90 GstCaps *
91 gst_vaapi_uploader_get_caps (GstVaapiUploader * uploader);
92
93 G_GNUC_INTERNAL
94 GstBuffer *
95 gst_vaapi_uploader_get_buffer (GstVaapiUploader * uploader);
96
97 G_GNUC_INTERNAL
98 gboolean
99 gst_vaapi_uploader_has_direct_rendering (GstVaapiUploader * uploader);
100
101 G_END_DECLS
102
103 #endif /* GST_VAAPI_UPLOADER_H */