vaapiupload: use new GstVaapiUploader helper.
[profile/ivi/gstreamer-vaapi.git] / gst / vaapi / gstvaapiupload.h
1 /*
2  *  gstvaapiupload.h - VA-API video upload element
3  *
4  *  Copyright (C) 2010-2011 Splitted-Desktop Systems
5  *  Copyright (C) 2011-2012 Intel Corporation
6  *
7  *  This program is free software; you can redistribute it and/or
8  *  modify it under the terms of the GNU Lesser General Public License
9  *  as published by the Free Software Foundation; either version 2.1
10  *  of the License, or (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  *  Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public
18  *  License along with this program; if not, write to the Free
19  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  *  Boston, MA 02110-1301 USA
21 */
22
23 #ifndef GST_VAAPIUPLOAD_H
24 #define GST_VAAPIUPLOAD_H
25
26 #include <gst/base/gstbasetransform.h>
27 #include "gstvaapiuploader.h"
28
29 G_BEGIN_DECLS
30
31 #define GST_TYPE_VAAPIUPLOAD \
32     (gst_vaapiupload_get_type())
33
34 #define GST_VAAPIUPLOAD(obj)                            \
35     (G_TYPE_CHECK_INSTANCE_CAST((obj),                  \
36                                 GST_TYPE_VAAPIUPLOAD,   \
37                                 GstVaapiUpload))
38
39 #define GST_VAAPIUPLOAD_CLASS(klass)                    \
40     (G_TYPE_CHECK_CLASS_CAST((klass),                   \
41                              GST_TYPE_VAAPIUPLOAD,      \
42                              GstVaapiUploadClass))
43
44 #define GST_IS_VAAPIUPLOAD(obj) \
45     (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_VAAPIUPLOAD))
46
47 #define GST_IS_VAAPIUPLOAD_CLASS(klass) \
48     (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_VAAPIUPLOAD))
49
50 #define GST_VAAPIUPLOAD_GET_CLASS(obj)                  \
51     (G_TYPE_INSTANCE_GET_CLASS((obj),                   \
52                                GST_TYPE_VAAPIUPLOAD,    \
53                                GstVaapiUploadClass))
54
55 typedef struct _GstVaapiUpload                  GstVaapiUpload;
56 typedef struct _GstVaapiUploadClass             GstVaapiUploadClass;
57
58 struct _GstVaapiUpload {
59     /*< private >*/
60     GstBaseTransform    parent_instance;
61
62     GstVaapiDisplay    *display;
63     GstVaapiUploader   *uploader;
64 };
65
66 struct _GstVaapiUploadClass {
67     /*< private >*/
68     GstBaseTransformClass parent_class;
69 };
70
71 GType
72 gst_vaapiupload_get_type(void) G_GNUC_CONST;
73
74 G_END_DECLS
75
76 #endif /* GST_VAAPIUPLOAD_H */