3 * Copyright (C) 2006 Lutz Mueller <lutz@topfrose.de>
4 * Copyright (C) 2006 Edward Hervey <bilboed@bilbod.com>
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., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef __GST_REAL_VIDEO_DEC_H__
23 #define __GST_REAL_VIDEO_DEC_H__
26 #include <gst/base/gstadapter.h>
30 #define GST_TYPE_REAL_VIDEO_DEC (gst_real_video_dec_get_type())
31 #define GST_REAL_VIDEO_DEC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_REAL_VIDEO_DEC,GstRealVideoDec))
32 #define GST_REAL_VIDEO_DEC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_REAL_VIDEO_DEC,GstRealVideoDecClass))
34 typedef struct _GstRealVideoDec GstRealVideoDec;
35 typedef struct _GstRealVideoDecClass GstRealVideoDecClass;
36 typedef enum _GstRealVideoDecVersion GstRealVideoDecVersion;
38 enum _GstRealVideoDecVersion
40 GST_REAL_VIDEO_DEC_VERSION_2 = 2,
41 GST_REAL_VIDEO_DEC_VERSION_3 = 3,
42 GST_REAL_VIDEO_DEC_VERSION_4 = 4
50 guint32 (*Init) (gpointer, gpointer);
51 guint32 (*Free) (gpointer);
52 guint32 (*Transform) (gchar *, gchar *, gpointer, gpointer, gpointer);
53 guint32 (*Message) (gpointer, gpointer);
56 GstRealVideoDecMessageFunc custom_message;
57 GstRealVideoDecFreeFunc free;
58 GstRealVideoDecInitFunc init;
59 GstRealVideoDecTransformFunc transform;
64 struct _GstRealVideoDec
71 GstRealVideoDecVersion version;
73 gint format, subformat;
74 gint framerate_num, framerate_denom;
78 /* Library functions */
82 gchar *real_codecs_path;
83 gboolean checked_modules;
93 struct _GstRealVideoDecClass
95 GstElementClass parent_class;
98 GType gst_real_video_dec_get_type (void);
102 #endif /* __GST_REAL_VIDEO_DEC_H__ */