1 /* GStreamer H.263 Parser 2 * Copyright (C) <2010> Arun Raghavan <arun.raghavan@collabora.co.uk> 3 * Copyright (C) <2010> Edward Hervey <edward.hervey@collabora.co.uk> 4 * Copyright (C) <2010> Collabora Multimedia 5 * Copyright (C) <2010> Nokia Corporation 6 * 7 * Some bits C-c,C-v'ed and s/4/3 from h264parse: 8 * (C) 2005 Michal Benes <michal.benes@itonis.tv> 9 * (C) 2008 Wim Taymans <wim.taymans@gmail.com> 10 * (C) 2009 Mark Nauwelaerts <mnauw users sf net> 11 * 12 * This library is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU Library General Public 14 * License as published by the Free Software Foundation; either 15 * version 2 of the License, or (at your option) any later version. 16 * 17 * This library is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 * Library General Public License for more details. 21 * 22 * You should have received a copy of the GNU Library General Public 23 * License along with this library; if not, write to the 24 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 25 * Boston, MA 02110-1301, USA. 26 */ 27 28 #ifndef __GST_H263_PARSE_H__ 29 #define __GST_H263_PARSE_H__ 30 31 #include <gst/gst.h> 32 #include <gst/base/gstadapter.h> 33 #include <gst/base/gstbaseparse.h> 34 35 #include "h263parse.h" 36 37 G_BEGIN_DECLS 38 39 #define GST_TYPE_H263_PARSE \ 40 (gst_h263_parse_get_type()) 41 #define GST_H263_PARSE(obj) \ 42 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_H263_PARSE,GstH263Parse)) 43 #define GST_H263_PARSE_CLASS(klass) \ 44 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_H263_PARSE,GstH263ParseClass)) 45 #define GST_IS_H263_PARSE(obj) \ 46 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_H263_PARSE)) 47 #define GST_IS_H263_PARSE_CLASS(klass) \ 48 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_H263_PARSE)) 49 50 GType gst_h263_parse_get_type (void); 51 52 typedef struct _GstH263Parse GstH263Parse; 53 typedef struct _GstH263ParseClass GstH263ParseClass; 54 55 struct _GstH263Parse 56 { 57 GstBaseParse baseparse; 58 59 gint profile, level; 60 guint bitrate; 61 62 H263ParseState state; 63 gboolean sent_codec_tag; 64 }; 65 66 struct _GstH263ParseClass 67 { 68 GstBaseParseClass parent_class; 69 }; 70 71 G_END_DECLS 72 #endif 73