gstdvdec.h 2.33 KB
Newer Older
1
/* GStreamer
2 3 4 5 6 7 8 9 10 11 12 13 14 15
 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
Tim-Philipp Müller's avatar
Tim-Philipp Müller committed
16 17
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 * Boston, MA 02110-1301, USA.
18 19 20 21 22 23
 */


#ifndef __GST_DVDEC_H__
#define __GST_DVDEC_H__

24

25
#include <gst/gst.h>
Mark Nauwelaerts's avatar
Mark Nauwelaerts committed
26 27
#include <gst/video/video.h>

28 29
#include <libdv/dv.h>

30

Wim Taymans's avatar
Wim Taymans committed
31
G_BEGIN_DECLS
32 33


34 35 36 37 38
#define GST_TYPE_DVDEC \
  (gst_dvdec_get_type())
#define GST_DVDEC(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DVDEC,GstDVDec))
#define GST_DVDEC_CLASS(klass) \
39
  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DVDEC,GstDVDecClass))
40 41
#define GST_IS_DVDEC(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DVDEC))
42
#define GST_IS_DVDEC_CLASS(klass) \
43 44 45
  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DVDEC))


Johan Dahlin's avatar
Johan Dahlin committed
46
typedef struct _GstDVDec GstDVDec;
47 48
typedef struct _GstDVDecClass GstDVDecClass;

49

Johan Dahlin's avatar
Johan Dahlin committed
50
struct _GstDVDec {
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
51
  GstElement     element;
Johan Dahlin's avatar
Johan Dahlin committed
52

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
53
  GstPad        *sinkpad;
54
  GstPad        *srcpad;
Johan Dahlin's avatar
Johan Dahlin committed
55

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
56 57 58 59
  dv_decoder_t  *decoder;
  gboolean       clamp_luma;
  gboolean       clamp_chroma;
  gint           quality;
Johan Dahlin's avatar
Johan Dahlin committed
60

Wim Taymans's avatar
Wim Taymans committed
61
  gboolean       PAL;
62
  gboolean       interlaced;
63 64 65 66 67
  gboolean       wide;
  gint           frame_len;

  /* input caps */
  gboolean       sink_negotiated;
Mark Nauwelaerts's avatar
Mark Nauwelaerts committed
68
  GstVideoInfo   vinfo;
69 70
  gint           framerate_numerator;
  gint           framerate_denominator;
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
71
  gint           height;
72 73 74
  gint           par_x;
  gint           par_y;
  gboolean       need_par;
Wim Taymans's avatar
Wim Taymans committed
75 76 77

  /* negotiated output */
  dv_color_space_t space;
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
78
  gint           bpp;
79
  gboolean       src_negotiated;
Johan Dahlin's avatar
Johan Dahlin committed
80
  
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
81 82
  gint           video_offset;
  gint           drop_factor;
83

Mark Nauwelaerts's avatar
Mark Nauwelaerts committed
84 85
  GstBufferPool *pool;
  GstSegment     segment;
Johan Dahlin's avatar
Johan Dahlin committed
86
};
87

Johan Dahlin's avatar
Johan Dahlin committed
88 89 90
struct _GstDVDecClass {
  GstElementClass parent_class;
};
91 92


93 94
GType gst_dvdec_get_type (void);

95

Wim Taymans's avatar
Wim Taymans committed
96
G_END_DECLS
97

98

Johan Dahlin's avatar
Johan Dahlin committed
99
#endif /* __GST_DVDEC_H__ */