2 * Copyright (C) 2006 David Schleef <ds@schleef.org>
3 * Copyright (C) 2008,2009,2010 Entropy Wave Inc
4 * Copyright (C) 2010 Sebastian Dröge <sebastian.droege@collabora.co.uk>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 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 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
23 #ifndef __GST_VP8_DEC_H__
24 #define __GST_VP8_DEC_H__
30 #ifdef HAVE_VP8_DECODER
33 #include <gst/video/gstvideodecoder.h>
34 #include <gstvpxdec.h>
36 /* FIXME: Undef HAVE_CONFIG_H because vpx_codec.h uses it,
37 * which causes compilation failures */
42 #include <vpx/vpx_decoder.h>
43 #include <vpx/vp8dx.h>
47 #define GST_TYPE_VP8_DEC \
48 (gst_vp8_dec_get_type())
49 #define GST_VP8_DEC(obj) \
50 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VP8_DEC,GstVP8Dec))
51 #define GST_VP8_DEC_CLASS(klass) \
52 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VP8_DEC,GstVP8DecClass))
53 #define GST_IS_VP8_DEC(obj) \
54 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VP8_DEC))
55 #define GST_IS_VP8_DEC_CLASS(obj) \
56 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VP8_DEC))
58 typedef struct _GstVP8Dec GstVP8Dec;
59 typedef struct _GstVP8DecClass GstVP8DecClass;
63 GstVPXDec base_vpx_decoder;
66 struct _GstVP8DecClass
68 GstVPXDecClass base_vpx_class;
71 GType gst_vp8_dec_get_type (void);
77 #endif /* __GST_VP8_DEC_H__ */