Commit 1970ac0f authored by Wim Taymans's avatar Wim Taymans

Ported DVdec to 0.9.

Original commit message from CVS:
* configure.ac:
* ext/dv/Makefile.am:
* ext/dv/gstdvdec.c: (gst_dvdec_class_init), (gst_dvdec_init),
(gst_dvdec_get_src_query_types), (gst_dvdec_src_query),
(gst_dvdec_handle_sink_event), (gst_dvdec_handle_src_event),
(gst_dvdec_video_getcaps), (gst_dvdec_video_setcaps),
(gst_dvdec_decode_audio), (gst_dvdec_decode_video),
(gst_dvdec_decode_frame), (gst_dvdec_chain),
(gst_dvdec_change_state), (gst_dvdec_set_property),
(gst_dvdec_get_property), (plugin_init):
* ext/dv/gstdvdec.h:
* ext/esd/esdsink.c: (gst_esdsink_class_init):
Ported DVdec to 0.9.
Parent of esdsink is GstAudioSink.
parent 16e4cd8b
2005-07-07 Wim Taymans <wim@fluendo.com>
* configure.ac:
* ext/dv/Makefile.am:
* ext/dv/gstdvdec.c: (gst_dvdec_class_init), (gst_dvdec_init),
(gst_dvdec_get_src_query_types), (gst_dvdec_src_query),
(gst_dvdec_handle_sink_event), (gst_dvdec_handle_src_event),
(gst_dvdec_video_getcaps), (gst_dvdec_video_setcaps),
(gst_dvdec_decode_audio), (gst_dvdec_decode_video),
(gst_dvdec_decode_frame), (gst_dvdec_chain),
(gst_dvdec_change_state), (gst_dvdec_set_property),
(gst_dvdec_get_property), (plugin_init):
* ext/dv/gstdvdec.h:
* ext/esd/esdsink.c: (gst_esdsink_class_init):
Ported DVdec to 0.9.
Parent of esdsink is GstAudioSink.
2005-07-07 Wim Taymans <wim@fluendo.com>
* configure.ac:
......
......@@ -379,6 +379,14 @@ GST_CHECK_FEATURE(LIBCACA, [libcaca], libcaca, [
AC_SUBST(LIBCACA_LIBS)
])
dnl *** libdv ***
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBDV, true)
GST_CHECK_FEATURE(LIBDV, [libdv DV/video decoder], dvdec, [
PKG_CHECK_MODULES(LIBDV, libdv >= 0.100, HAVE_LIBDV="yes", HAVE_LIBDV="no")
AC_SUBST(LIBDV_CFLAGS)
AC_SUBST(LIBDV_LIBS)
])
dnl *** shout2 ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SHOUT2, true)
GST_CHECK_FEATURE(SHOUT2, [shout2 plug-in], shout2send, [
......@@ -531,6 +539,7 @@ gst-libs/gst/Makefile
sys/Makefile
ext/Makefile
ext/aalib/Makefile
ext/dv/Makefile
ext/libcaca/Makefile
ext/mad/Makefile
ext/raw1394/Makefile
......
......@@ -3,8 +3,8 @@ plugin_LTLIBRARIES = libgstdvdec.la
libgstdvdec_la_SOURCES = gstdvdec.c
libgstdvdec_la_CFLAGS = $(GST_CFLAGS) $(LIBDV_CFLAGS)
libgstdvdec_la_LIBADD = $(LIBDV_LIBS)
libgstdvdec_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstdvdec_la_LIBADD = $(LIBDV_LIBS) $(GST_BASE_LIBS)
libgstdvdec_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_BASE_LDFLAGS)
noinst_HEADERS = gstdvdec.h
......
This diff is collapsed.
......@@ -23,14 +23,10 @@
#include <gst/gst.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
G_BEGIN_DECLS
#include <libdv/dv.h>
#include <gst/bytestream/bytestream.h>
#include <gst/base/gstadapter.h>
/* This is the definition of the element's object structure. */
typedef struct _GstDVDec GstDVDec;
......@@ -44,36 +40,48 @@ struct _GstDVDec {
GstElement element;
/* We need to keep track of our pads, so we do so here. */
GstPad *sinkpad,
*videosrcpad,
*audiosrcpad;
GstPad *sinkpad;
GstPad *videosrcpad;
GstPad *audiosrcpad;
dv_decoder_t *decoder;
gboolean clamp_luma;
gboolean clamp_chroma;
gint quality;
GstByteStream *bs;
dv_color_space_t space;
gint bpp;
gboolean PAL;
GstAdapter *adapter;
gint frame_len;
/* PAL or NTSC flag */
gboolean PAL;
/* video params */
gdouble framerate;
gint height;
gboolean wide;
/* audio params */
gint frequency;
gint channels;
gboolean wide;
/* negotiated output */
dv_color_space_t space;
gint bpp;
gint length;
gint framecount;
gint drop_factor;
guint64 next_ts;
gint framecount;
guint64 timestamp;
guint64 duration;
guint64 audio_offset;
guint64 video_offset;
guint64 end_position;
gboolean need_discont;
gboolean new_media;
gboolean loop;
gboolean found_header;
gboolean found_header;
gint16 *audio_buffers[4];
};
......@@ -114,10 +122,6 @@ struct _GstDVDecClass {
*/
GType gst_dvdec_get_type(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
G_END_DECLS
#endif /* __GST_DVDEC_H__ */
......@@ -137,7 +137,7 @@ gst_esdsink_class_init (GstEsdSinkClass * klass)
gstbaseaudiosink_class = (GstBaseAudioSinkClass *) klass;
gstaudiosink_class = (GstAudioSinkClass *) klass;
parent_class = g_type_class_ref (GST_TYPE_BASEAUDIOSINK);
parent_class = g_type_class_ref (GST_TYPE_AUDIOSINK);
gobject_class->dispose = gst_esdsink_dispose;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment