2 * gstvaapidecode.h - VA-API video decoder
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_VAAPIDECODE_H
22 #define GST_VAAPIDECODE_H
25 #include <gst/gsttask.h>
26 #include <gst/vaapi/gstvaapidisplay.h>
27 #include <gst/vaapi/gstvaapidecoder.h>
31 #define GST_TYPE_VAAPIDECODE \
32 (gst_vaapidecode_get_type())
34 #define GST_VAAPIDECODE(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
36 GST_TYPE_VAAPIDECODE, \
39 #define GST_VAAPIDECODE_CLASS(klass) \
40 (G_TYPE_CHECK_CLASS_CAST((klass), \
41 GST_TYPE_VAAPIDECODE, \
44 #define GST_IS_VAAPIDECODE(obj) \
45 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_VAAPIDECODE))
47 #define GST_IS_VAAPIDECODE_CLASS(klass) \
48 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_VAAPIDECODE))
50 #define GST_VAAPIDECODE_GET_CLASS(obj) \
51 (G_TYPE_INSTANCE_GET_CLASS((obj), \
52 GST_TYPE_VAAPIDECODE, \
55 typedef struct _GstVaapiDecode GstVaapiDecode;
56 typedef struct _GstVaapiDecodeClass GstVaapiDecodeClass;
58 struct _GstVaapiDecode {
60 GstElement parent_instance;
64 GstVaapiDisplay *display;
65 GstVaapiProfile profile;
66 GstBuffer *codec_data;
67 GstVaapiDecoder *decoder;
68 unsigned int use_ffmpeg : 1;
71 struct _GstVaapiDecodeClass {
73 GstElementClass parent_class;
77 gst_vaapidecode_get_type(void);
81 #endif /* GST_VAAPIDECODE_H */