]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugin-ducati.git/blob - src/gstducatih264dec.h
d48500876e268cb33ae8d026e1fa27f1ff1ccf18
[glsdk/gst-plugin-ducati.git] / src / gstducatih264dec.h
1 /*
2  * GStreamer
3  * Copyright (c) 2010, Texas Instruments Incorporated
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation
8  * version 2.1 of the License.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18  */
20 #ifndef __GST_DUCATIH264DEC_H__
21 #define __GST_DUCATIH264DEC_H__
23 #include "gstducatividdec.h"
25 #include <ti/sdo/codecs/h264dec/ih264vdec.h>
28 G_BEGIN_DECLS
30 #define GST_TYPE_DUCATIH264DEC              (gst_ducati_h264dec_get_type())
31 #define GST_DUCATIH264DEC(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_DUCATIH264DEC, GstDucatiH264Dec))
32 #define GST_DUCATIH264DEC_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_DUCATIH264DEC, GstDucatiH264DecClass))
33 #define GST_IS_DUCATIH264DEC(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_DUCATIH264DEC))
34 #define GST_IS_DUCATIH264DEC_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_DUCATIH264DEC))
36 typedef struct _GstDucatiH264Dec      GstDucatiH264Dec;
37 typedef struct _GstDucatiH264DecClass GstDucatiH264DecClass;
39 /* The H.264 spec has a hard limit of 16 */
40 #define MAX_BACKLOG_FRAMES 16
42 struct _GstDucatiH264Dec
43 {
44   GstDucatiVidDec parent;
46   /* Frames waiting to be reordered */
47   GstBuffer *backlog_frames[MAX_BACKLOG_FRAMES + 1];
48   gint backlog_maxframes;
49   gint backlog_nframes;
50 };
52 struct _GstDucatiH264DecClass 
53 {
54   GstDucatiVidDecClass parent_class;
55 };
57 GType gst_ducati_h264dec_get_type (void);
59 G_END_DECLS
61 #endif /* __GST_DUCATIH264DEC_H__ */