2 * gstvaapivalue.h - GValue implementations specific to VA-API
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_VALUE_H
23 #define GST_VAAPI_VALUE_H
25 #include <glib-object.h>
26 #include <gst/vaapi/gstvaapitypes.h>
33 * A #GValue type that represents a VA identifier.
35 * Return value: the #GType of GstVaapiID
37 #define GST_VAAPI_TYPE_ID gst_vaapi_id_get_type()
40 * GST_VAAPI_VALUE_HOLDS_ID:
41 * @x: the #GValue to check
43 * Checks if the given #GValue contains a #GstVaapiID value.
45 #define GST_VAAPI_VALUE_HOLDS_ID(x) (G_VALUE_HOLDS((x), GST_VAAPI_TYPE_ID))
48 * GST_VAAPI_TYPE_RENDER_MODE:
50 * A #GstVaapiRenderMode type that represents the VA display backend
51 * rendering mode: overlay (2D engine) or textured-blit (3D engine).
53 * Return value: the #GType of GstVaapiRenderMode
55 #define GST_VAAPI_TYPE_RENDER_MODE gst_vaapi_render_mode_get_type()
58 * GST_VAAPI_TYPE_ROTATION:
60 * A type that represents the VA display rotation.
62 * Return value: the #GType of GstVaapiRotation
64 #define GST_VAAPI_TYPE_ROTATION gst_vaapi_rotation_get_type()
67 * GST_VAAPI_TYPE_RATE_CONTROL:
69 * A type that represents the VA rate control.
71 * Return value: the #GType of GstVaapiRateControl
73 #define GST_VAAPI_TYPE_RATE_CONTROL gst_vaapi_rate_control_get_type()
76 gst_vaapi_id_get_type(void) G_GNUC_CONST;
79 gst_vaapi_value_get_id(const GValue *value);
82 gst_vaapi_value_set_id(GValue *value, GstVaapiID id);
85 gst_vaapi_render_mode_get_type(void) G_GNUC_CONST;
88 gst_vaapi_rotation_get_type(void) G_GNUC_CONST;
91 gst_vaapi_rate_control_get_type(void) G_GNUC_CONST;
95 #endif /* GST_VAAPI_VALUE_H */