2 * gstvaapitexture.h - VA texture abstraction
4 * Copyright (C) 2010-2011 Splitted-Desktop Systems
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2.1
9 * of the License, or (at your option) any later version.
11 * This library 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 GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA
22 #ifndef GST_VAAPI_TEXTURE_H
23 #define GST_VAAPI_TEXTURE_H
26 #include <gst/vaapi/gstvaapitypes.h>
27 #include <gst/vaapi/gstvaapiobject.h>
28 #include <gst/vaapi/gstvaapidisplay.h>
29 #include <gst/vaapi/gstvaapisurface.h>
33 #define GST_VAAPI_TYPE_TEXTURE \
34 (gst_vaapi_texture_get_type())
36 #define GST_VAAPI_TEXTURE(obj) \
37 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
38 GST_VAAPI_TYPE_TEXTURE, \
41 #define GST_VAAPI_TEXTURE_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_CAST((klass), \
43 GST_VAAPI_TYPE_TEXTURE, \
44 GstVaapiTextureClass))
46 #define GST_VAAPI_IS_TEXTURE(obj) \
47 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_VAAPI_TYPE_TEXTURE))
49 #define GST_VAAPI_IS_TEXTURE_CLASS(klass) \
50 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_VAAPI_TYPE_TEXTURE))
52 #define GST_VAAPI_TEXTURE_GET_CLASS(obj) \
53 (G_TYPE_INSTANCE_GET_CLASS((obj), \
54 GST_VAAPI_TYPE_TEXTURE, \
55 GstVaapiTextureClass))
57 typedef struct _GstVaapiTexture GstVaapiTexture;
58 typedef struct _GstVaapiTexturePrivate GstVaapiTexturePrivate;
59 typedef struct _GstVaapiTextureClass GstVaapiTextureClass;
64 * Base class for system-dependent textures.
66 struct _GstVaapiTexture {
68 GstVaapiObject parent_instance;
70 GstVaapiTexturePrivate *priv;
74 * GstVaapiTextureClass:
76 * Base class for system-dependent textures.
78 struct _GstVaapiTextureClass {
80 GstVaapiObjectClass parent_class;
84 gst_vaapi_texture_get_type(void) G_GNUC_CONST;
87 gst_vaapi_texture_new(
88 GstVaapiDisplay *display,
96 gst_vaapi_texture_new_with_texture(
97 GstVaapiDisplay *display,
104 gst_vaapi_texture_get_id(GstVaapiTexture *texture);
107 gst_vaapi_texture_get_target(GstVaapiTexture *texture);
110 gst_vaapi_texture_get_format(GstVaapiTexture *texture);
113 gst_vaapi_texture_get_width(GstVaapiTexture *texture);
116 gst_vaapi_texture_get_height(GstVaapiTexture *texture);
119 gst_vaapi_texture_get_size(
120 GstVaapiTexture *texture,
126 gst_vaapi_texture_put_surface(
127 GstVaapiTexture *texture,
128 GstVaapiSurface *surface,
134 #endif /* GST_VAAPI_TEXTURE_H */