2 * Copyright (C) <2007> Jan Schmidt <thaytan@mad.scientist.com>
3 * Copyright (C) <2011> Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
4 * Copyright (C) <2011> Thibault Saunier <thibault.saunier@collabora.com>
5 * Copyright (C) <2011> Collabora ltd
6 * Copyright (C) <2011> Nokia Corporation
7 * Copyright (C) <2011> Intel Corporation
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
25 #ifndef __GST_MPEGVIDEO_PARSE_H__
26 #define __GST_MPEGVIDEO_PARSE_H__
29 #include <gst/base/gstbaseparse.h>
30 #include "gstvideoparseutils.h"
31 #include <gst/codecparsers/gstmpegvideoparser.h>
35 #define GST_TYPE_MPEGVIDEO_PARSE (gst_mpegv_parse_get_type())
36 #define GST_MPEGVIDEO_PARSE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
37 GST_TYPE_MPEGVIDEO_PARSE, GstMpegvParse))
38 #define GST_MPEGVIDEO_PARSE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\
39 GST_TYPE_MPEGVIDEO_PARSE, GstMpegvParseClass))
40 #define GST_MPEGVIDEO_PARSE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
41 GST_TYPE_MPEGVIDEO_PARSE, GstMpegvParseClass))
42 #define GST_IS_MPEGVIDEO_PARSE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
43 GST_TYPE_MPEGVIDEO_PARSE))
44 #define GST_IS_MPEGVIDEO_PARSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\
45 GST_TYPE_MPEGVIDEO_PARSE))
47 typedef struct _GstMpegvParse GstMpegvParse;
48 typedef struct _GstMpegvParseClass GstMpegvParseClass;
50 /* Config/sequence flags. Reset each time config is re-parsed */
54 FLAG_SEQUENCE_EXT = 2,
55 FLAG_SEQUENCE_DISPLAY_EXT = 4
58 struct _GstMpegvParse {
71 gboolean send_codec_tag;
72 gboolean send_mpeg_meta;
77 GstMpegVideoSequenceHdr sequencehdr;
78 GstMpegVideoSequenceExt sequenceext;
79 GstMpegVideoSequenceDisplayExt sequencedispext;
80 GstMpegVideoPictureHdr pichdr;
81 GstMpegVideoPictureExt picext;
82 GstMpegVideoQuantMatrixExt quantmatrext;
84 gboolean seqhdr_updated;
85 gboolean seqext_updated;
86 gboolean seqdispext_updated;
87 gboolean picext_updated;
88 gboolean quantmatrext_updated;
90 GstVideoParseUserData user_data;
98 int frame_repeat_count;
101 struct _GstMpegvParseClass {
102 GstBaseParseClass parent_class;
105 GType gst_mpegv_parse_get_type (void);
109 #endif /* __GST_MPEGVIDEO_PARSE_H__ */