2002-02-03 19:58:48 +00:00
|
|
|
/* GStreamer
|
2001-12-23 13:06:22 +00:00
|
|
|
* 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
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __CDPARANOIA_H__
|
|
|
|
#define __CDPARANOIA_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <gst/gst.h>
|
ext/cdparanoia/: Partially ported cdparanoia now that basesrc can support a plugin like this..
Original commit message from CVS:
* ext/cdparanoia/Makefile.am:
* ext/cdparanoia/gstcdparanoia.c: (gst_paranoia_mode_get_type),
(gst_paranoia_endian_get_type), (_do_init),
(cdparanoia_class_init), (cdparanoia_init),
(cdparanoia_set_property), (cdparanoia_get_property),
(cdparanoia_do_seek), (cdparanoia_is_seekable),
(cdparanoia_create), (cdparanoia_start), (cdparanoia_stop),
(cdparanoia_convert), (cdparanoia_get_query_types),
(cdparanoia_query), (cdparanoia_set_index),
(cdparanoia_uri_set_uri):
* ext/cdparanoia/gstcdparanoia.h:
Partially ported cdparanoia now that basesrc can support a
plugin like this..
2005-12-12 15:06:46 +00:00
|
|
|
#include <gst/base/gstpushsrc.h>
|
2001-12-23 13:06:22 +00:00
|
|
|
|
ext/cdparanoia/: Partially ported cdparanoia now that basesrc can support a plugin like this..
Original commit message from CVS:
* ext/cdparanoia/Makefile.am:
* ext/cdparanoia/gstcdparanoia.c: (gst_paranoia_mode_get_type),
(gst_paranoia_endian_get_type), (_do_init),
(cdparanoia_class_init), (cdparanoia_init),
(cdparanoia_set_property), (cdparanoia_get_property),
(cdparanoia_do_seek), (cdparanoia_is_seekable),
(cdparanoia_create), (cdparanoia_start), (cdparanoia_stop),
(cdparanoia_convert), (cdparanoia_get_query_types),
(cdparanoia_query), (cdparanoia_set_index),
(cdparanoia_uri_set_uri):
* ext/cdparanoia/gstcdparanoia.h:
Partially ported cdparanoia now that basesrc can support a
plugin like this..
2005-12-12 15:06:46 +00:00
|
|
|
G_BEGIN_DECLS
|
2001-12-23 13:06:22 +00:00
|
|
|
|
|
|
|
#define size16 gint16
|
|
|
|
#define size32 gint32
|
2002-06-22 08:22:10 +00:00
|
|
|
|
|
|
|
#ifdef CDPARANOIA_HEADERS_IN_DIR
|
2004-03-15 16:32:55 +00:00
|
|
|
#include <cdda/cdda_interface.h>
|
|
|
|
#include <cdda/cdda_paranoia.h>
|
2002-06-22 08:22:10 +00:00
|
|
|
#else
|
2004-03-15 16:32:55 +00:00
|
|
|
#include <cdda_interface.h>
|
|
|
|
#include <cdda_paranoia.h>
|
2002-06-22 08:22:10 +00:00
|
|
|
#endif
|
2001-12-23 13:06:22 +00:00
|
|
|
|
2002-02-03 19:58:48 +00:00
|
|
|
/*#define CDPARANOIA_BASEOFFSET 0xf1d2 */
|
2001-12-23 13:06:22 +00:00
|
|
|
#define CDPARANOIA_BASEOFFSET 0x0
|
|
|
|
|
|
|
|
#define GST_TYPE_CDPARANOIA \
|
|
|
|
(cdparanoia_get_type())
|
|
|
|
#define CDPARANOIA(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CDPARANOIA,CDParanoia))
|
|
|
|
#define CDPARANOIA_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CDPARANOIA,CDParanoiaClass))
|
|
|
|
#define GST_IS_CDPARANOIA(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CDPARANOIA))
|
|
|
|
#define GST_IS_CDPARANOIA_CLASS(obj) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CDPARANOIA))
|
|
|
|
|
2004-03-15 16:32:55 +00:00
|
|
|
typedef struct _CDParanoia CDParanoia;
|
|
|
|
typedef struct _CDParanoiaClass CDParanoiaClass;
|
|
|
|
|
ext/cdparanoia/: Partially ported cdparanoia now that basesrc can support a plugin like this..
Original commit message from CVS:
* ext/cdparanoia/Makefile.am:
* ext/cdparanoia/gstcdparanoia.c: (gst_paranoia_mode_get_type),
(gst_paranoia_endian_get_type), (_do_init),
(cdparanoia_class_init), (cdparanoia_init),
(cdparanoia_set_property), (cdparanoia_get_property),
(cdparanoia_do_seek), (cdparanoia_is_seekable),
(cdparanoia_create), (cdparanoia_start), (cdparanoia_stop),
(cdparanoia_convert), (cdparanoia_get_query_types),
(cdparanoia_query), (cdparanoia_set_index),
(cdparanoia_uri_set_uri):
* ext/cdparanoia/gstcdparanoia.h:
Partially ported cdparanoia now that basesrc can support a
plugin like this..
2005-12-12 15:06:46 +00:00
|
|
|
/**
|
|
|
|
* CDParanoia:
|
|
|
|
*
|
|
|
|
* Opaque #CDParanoia structure
|
|
|
|
*/
|
2004-03-15 16:32:55 +00:00
|
|
|
struct _CDParanoia {
|
ext/cdparanoia/: Partially ported cdparanoia now that basesrc can support a plugin like this..
Original commit message from CVS:
* ext/cdparanoia/Makefile.am:
* ext/cdparanoia/gstcdparanoia.c: (gst_paranoia_mode_get_type),
(gst_paranoia_endian_get_type), (_do_init),
(cdparanoia_class_init), (cdparanoia_init),
(cdparanoia_set_property), (cdparanoia_get_property),
(cdparanoia_do_seek), (cdparanoia_is_seekable),
(cdparanoia_create), (cdparanoia_start), (cdparanoia_stop),
(cdparanoia_convert), (cdparanoia_get_query_types),
(cdparanoia_query), (cdparanoia_set_index),
(cdparanoia_uri_set_uri):
* ext/cdparanoia/gstcdparanoia.h:
Partially ported cdparanoia now that basesrc can support a
plugin like this..
2005-12-12 15:06:46 +00:00
|
|
|
GstPushSrc pushsrc;
|
|
|
|
|
|
|
|
/*< private >*/
|
2004-03-15 16:32:55 +00:00
|
|
|
|
|
|
|
/* Index */
|
|
|
|
GstIndex *index;
|
|
|
|
int index_id;
|
|
|
|
|
|
|
|
gchar *device;
|
|
|
|
gchar *generic_device;
|
|
|
|
gint default_sectors;
|
|
|
|
gint search_overlap;
|
|
|
|
gint endian;
|
|
|
|
gint read_speed;
|
|
|
|
gint toc_offset;
|
|
|
|
gboolean toc_bias;
|
|
|
|
gint never_skip;
|
|
|
|
gboolean abort_on_skip;
|
|
|
|
gint paranoia_mode;
|
ext/cdparanoia/gstcdparanoia.*: Added reworked patch from #154903 from milosz derezynski. This adds the cdda://<track...
Original commit message from CVS:
* ext/cdparanoia/gstcdparanoia.c: (_do_init),
(cdparanoia_base_init), (cdparanoia_class_init), (cdparanoia_init),
(cdparanoia_dispose), (cdparanoia_get), (cdparanoia_change_state),
(cdparanoia_convert), (cdparanoia_uri_get_type),
(cdparanoia_uri_get_protocols), (cdparanoia_uri_get_uri),
(cdparanoia_uri_set_uri), (cdparanoia_uri_handler_init):
* ext/cdparanoia/gstcdparanoia.h:
Added reworked patch from #154903 from milosz derezynski. This
adds the cdda://<tracknum> uri.
2004-10-08 17:02:51 +00:00
|
|
|
gchar *uri; /* URI caching */
|
|
|
|
gint uri_track;
|
|
|
|
gint seek_request;
|
2004-03-15 16:32:55 +00:00
|
|
|
|
|
|
|
cdrom_drive *d;
|
|
|
|
cdrom_paranoia *p;
|
|
|
|
|
|
|
|
gint cur_sector;
|
|
|
|
gint segment_start_sector;
|
|
|
|
gint segment_end_sector;
|
|
|
|
|
|
|
|
gint first_sector;
|
|
|
|
gint last_sector;
|
|
|
|
|
|
|
|
gchar discid[20];
|
|
|
|
gint64 offsets[MAXTRK];
|
|
|
|
gint64 total_seconds;
|
|
|
|
|
ext/cdparanoia/: Partially ported cdparanoia now that basesrc can support a plugin like this..
Original commit message from CVS:
* ext/cdparanoia/Makefile.am:
* ext/cdparanoia/gstcdparanoia.c: (gst_paranoia_mode_get_type),
(gst_paranoia_endian_get_type), (_do_init),
(cdparanoia_class_init), (cdparanoia_init),
(cdparanoia_set_property), (cdparanoia_get_property),
(cdparanoia_do_seek), (cdparanoia_is_seekable),
(cdparanoia_create), (cdparanoia_start), (cdparanoia_stop),
(cdparanoia_convert), (cdparanoia_get_query_types),
(cdparanoia_query), (cdparanoia_set_index),
(cdparanoia_uri_set_uri):
* ext/cdparanoia/gstcdparanoia.h:
Partially ported cdparanoia now that basesrc can support a
plugin like this..
2005-12-12 15:06:46 +00:00
|
|
|
/*< private >*/
|
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2004-03-15 16:32:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _CDParanoiaClass {
|
ext/cdparanoia/: Partially ported cdparanoia now that basesrc can support a plugin like this..
Original commit message from CVS:
* ext/cdparanoia/Makefile.am:
* ext/cdparanoia/gstcdparanoia.c: (gst_paranoia_mode_get_type),
(gst_paranoia_endian_get_type), (_do_init),
(cdparanoia_class_init), (cdparanoia_init),
(cdparanoia_set_property), (cdparanoia_get_property),
(cdparanoia_do_seek), (cdparanoia_is_seekable),
(cdparanoia_create), (cdparanoia_start), (cdparanoia_stop),
(cdparanoia_convert), (cdparanoia_get_query_types),
(cdparanoia_query), (cdparanoia_set_index),
(cdparanoia_uri_set_uri):
* ext/cdparanoia/gstcdparanoia.h:
Partially ported cdparanoia now that basesrc can support a
plugin like this..
2005-12-12 15:06:46 +00:00
|
|
|
GstPushSrcClass parent_class;
|
2004-03-15 16:32:55 +00:00
|
|
|
|
|
|
|
/* signal callbacks */
|
2005-12-06 19:42:02 +00:00
|
|
|
void (*smilie_change) (CDParanoia *cdparanoia, gchar *smilie);
|
|
|
|
void (*transport_error) (CDParanoia *cdparanoia, gint offset);
|
|
|
|
void (*uncorrected_error) (CDParanoia *cdparanoia, gint offset);
|
ext/cdparanoia/: Partially ported cdparanoia now that basesrc can support a plugin like this..
Original commit message from CVS:
* ext/cdparanoia/Makefile.am:
* ext/cdparanoia/gstcdparanoia.c: (gst_paranoia_mode_get_type),
(gst_paranoia_endian_get_type), (_do_init),
(cdparanoia_class_init), (cdparanoia_init),
(cdparanoia_set_property), (cdparanoia_get_property),
(cdparanoia_do_seek), (cdparanoia_is_seekable),
(cdparanoia_create), (cdparanoia_start), (cdparanoia_stop),
(cdparanoia_convert), (cdparanoia_get_query_types),
(cdparanoia_query), (cdparanoia_set_index),
(cdparanoia_uri_set_uri):
* ext/cdparanoia/gstcdparanoia.h:
Partially ported cdparanoia now that basesrc can support a
plugin like this..
2005-12-12 15:06:46 +00:00
|
|
|
|
|
|
|
/*< private >*/
|
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2004-03-15 16:32:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
GType cdparanoia_get_type(void);
|
2001-12-23 13:06:22 +00:00
|
|
|
|
ext/cdparanoia/: Partially ported cdparanoia now that basesrc can support a plugin like this..
Original commit message from CVS:
* ext/cdparanoia/Makefile.am:
* ext/cdparanoia/gstcdparanoia.c: (gst_paranoia_mode_get_type),
(gst_paranoia_endian_get_type), (_do_init),
(cdparanoia_class_init), (cdparanoia_init),
(cdparanoia_set_property), (cdparanoia_get_property),
(cdparanoia_do_seek), (cdparanoia_is_seekable),
(cdparanoia_create), (cdparanoia_start), (cdparanoia_stop),
(cdparanoia_convert), (cdparanoia_get_query_types),
(cdparanoia_query), (cdparanoia_set_index),
(cdparanoia_uri_set_uri):
* ext/cdparanoia/gstcdparanoia.h:
Partially ported cdparanoia now that basesrc can support a
plugin like this..
2005-12-12 15:06:46 +00:00
|
|
|
G_END_DECLS
|
2001-12-23 13:06:22 +00:00
|
|
|
|
2004-03-15 16:32:55 +00:00
|
|
|
#endif /* __CDPARANOIA_H__ */
|