• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 
21 #ifndef __GST_DVDEC_H__
22 #define __GST_DVDEC_H__
23 
24 
25 #include <gst/gst.h>
26 #include <gst/video/video.h>
27 
28 #include <libdv/dv.h>
29 
30 
31 G_BEGIN_DECLS
32 
33 #define GST_TYPE_DVDEC (gst_dvdec_get_type())
34 G_DECLARE_FINAL_TYPE (GstDVDec, gst_dvdec, GST, DVDEC, GstElement)
35 
36 struct _GstDVDec {
37   GstElement     element;
38 
39   GstPad        *sinkpad;
40   GstPad        *srcpad;
41 
42   dv_decoder_t  *decoder;
43   gboolean       clamp_luma;
44   gboolean       clamp_chroma;
45   gint           quality;
46 
47   gboolean       PAL;
48   gboolean       interlaced;
49   gboolean       wide;
50 
51   /* input caps */
52   gboolean       sink_negotiated;
53   GstVideoInfo   vinfo;
54   gint           framerate_numerator;
55   gint           framerate_denominator;
56   gint           height;
57   gint           par_x;
58   gint           par_y;
59   gboolean       need_par;
60 
61   /* negotiated output */
62   gint           bpp;
63   gboolean       src_negotiated;
64 
65   gint           video_offset;
66   gint           drop_factor;
67 
68   GstBufferPool *pool;
69   GstSegment     segment;
70   gboolean       need_segment;
71 };
72 
73 G_END_DECLS
74 
75 
76 #endif /* __GST_DVDEC_H__ */
77