2 * gstvaapisubpicture.h - VA subpicture abstraction
4 * gstreamer-vaapi (C) 2010 Splitted-Desktop Systems
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef GST_VAAPI_SUBPICTURE_H
22 #define GST_VAAPI_SUBPICTURE_H
24 #include <gst/vaapi/gstvaapiobject.h>
25 #include <gst/vaapi/gstvaapidisplay.h>
26 #include <gst/vaapi/gstvaapiimage.h>
30 #define GST_VAAPI_TYPE_SUBPICTURE \
31 (gst_vaapi_subpicture_get_type())
33 #define GST_VAAPI_SUBPICTURE(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
35 GST_VAAPI_TYPE_SUBPICTURE, \
38 #define GST_VAAPI_SUBPICTURE_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_CAST((klass), \
40 GST_VAAPI_TYPE_SUBPICTURE, \
41 GstVaapiSubpictureClass))
43 #define GST_VAAPI_IS_SUBPICTURE(obj) \
44 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_VAAPI_TYPE_SUBPICTURE))
46 #define GST_VAAPI_IS_SUBPICTURE_CLASS(klass) \
47 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_VAAPI_TYPE_SUBPICTURE))
49 #define GST_VAAPI_SUBPICTURE_GET_CLASS(obj) \
50 (G_TYPE_INSTANCE_GET_CLASS((obj), \
51 GST_VAAPI_TYPE_SUBPICTURE, \
52 GstVaapiSubpictureClass))
54 typedef struct _GstVaapiSubpicture GstVaapiSubpicture;
55 typedef struct _GstVaapiSubpicturePrivate GstVaapiSubpicturePrivate;
56 typedef struct _GstVaapiSubpictureClass GstVaapiSubpictureClass;
61 * A VA subpicture wrapper
63 struct _GstVaapiSubpicture {
65 GstVaapiObject parent_instance;
67 GstVaapiSubpicturePrivate *priv;
71 * GstVaapiSubpictureClass:
73 * A VA subpicture wrapper class
75 struct _GstVaapiSubpictureClass {
77 GstVaapiObjectClass parent_class;
81 gst_vaapi_subpicture_get_type(void);
84 gst_vaapi_subpicture_new(GstVaapiImage *image);
87 gst_vaapi_subpicture_get_id(GstVaapiSubpicture *subpicture);
90 gst_vaapi_subpicture_get_image(GstVaapiSubpicture *subpicture);
93 gst_vaapi_subpicture_set_image(
94 GstVaapiSubpicture *subpicture,
100 #endif /* GST_VAAPI_SUBPICTURE_H */