diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-10-13 11:47:11 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-10-13 11:47:11 +0000 |
commit | bf6b1747ae4bad46dbbf5fa2189a18b45c1d6b38 (patch) | |
tree | 60ac612a5a60675173b00d73bf9aefc3b5085e34 /src/input/vcd/libvcd/info_private.h | |
parent | ee3b51f5df1a50e02d43d7cf81fbef19f61aa942 (diff) | |
download | xine-lib-bf6b1747ae4bad46dbbf5fa2189a18b45c1d6b38.tar.gz xine-lib-bf6b1747ae4bad46dbbf5fa2189a18b45c1d6b38.tar.bz2 |
Add vcdx plugin(CVS) and dependent libs(no CVS, broken API).
Ability to use external libs (--with-external-vcdnav), disable
vcdx build and build old vcd instead (--disable-vcdx).
This last feature is useful since vcdx take /hours/ to start
playback, that can help people who don't want vcd navigation.
Remove all .la files, even in subdirs (eg: post)
CVS patchset: 5505
CVS date: 2003/10/13 11:47:11
Diffstat (limited to 'src/input/vcd/libvcd/info_private.h')
-rw-r--r-- | src/input/vcd/libvcd/info_private.h | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/src/input/vcd/libvcd/info_private.h b/src/input/vcd/libvcd/info_private.h new file mode 100644 index 000000000..14e947e14 --- /dev/null +++ b/src/input/vcd/libvcd/info_private.h @@ -0,0 +1,113 @@ +/*! + \file vcdinf.h + + Copyright (C) 2002,2003 Rocky Bernstein <rocky@panix.com> + + \verbatim + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Foundation + Software, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + Like vcdinfo but exposes more of the internal structure. It is probably + better to use vcdinfo, when possible. + \endverbatim +*/ + +#ifndef _VCD_INFO_PRIVATE_H +#define _VCD_INFO_PRIVATE_H + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include <cdio/cdio.h> +#include <cdio/iso9660.h> +#include <libvcd/types.h> +#include <libvcd/files_private.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + + struct _VcdInfo { + vcd_type_t vcd_type; + + CdIo *img; + + iso9660_pvd_t pvd; + + InfoVcd info; + EntriesVcd entries; + + VcdList *offset_list; + VcdList *offset_x_list; + uint32_t *seg_sizes; + lsn_t first_segment_lsn; + + LotVcd *lot; + LotVcd *lot_x; + uint8_t *psd; + uint8_t *psd_x; + unsigned int psd_x_size; + bool extended; + + bool has_xa; /* True if has extended attributes (XA) */ + + void *tracks_buf; + void *search_buf; + void *scandata_buf; + + char *source_name; /* VCD device or file currently open */ + + }; + + /*! Return the starting MSF (minutes/secs/frames) for sequence + entry_num in obj. NULL is returned if there is no entry. + The first entry number is 0. + */ + const msf_t * vcdinf_get_entry_msf(const EntriesVcd *entries, + unsigned int entry_num); + + struct _vcdinf_pbc_ctx { + unsigned int psd_size; + lid_t maximum_lid; + unsigned offset_mult; + VcdList *offset_x_list; + VcdList *offset_list; + + LotVcd *lot; + LotVcd *lot_x; + uint8_t *psd; + uint8_t *psd_x; + unsigned int psd_x_size; + bool extended; + }; + + /*! + Calls recursive routine to populate obj->offset_list or obj->offset_x_list + by going through LOT. + */ + void vcdinf_visit_lot (struct _vcdinf_pbc_ctx *obj); + + /*! + Recursive routine to populate obj->offset_list or obj->offset_x_list + by reading playback control entries referred to via lid. + */ + void vcdinf_visit_pbc (struct _vcdinf_pbc_ctx *obj, lid_t lid, + unsigned int offset, bool in_lot); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /*_VCD_INFO_PRIVATE_H*/ |