annotate libmpdemux/cdd.h @ 15670:081bee8052cf

moved mpeg-ps/es probing code to demux_mpg.c
author nicodvb
date Mon, 06 Jun 2005 21:30:53 +0000
parents 60624e692b95
children 60bd6aeed405
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6695
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
1 #ifndef __CDD_H__
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
2 #define __CDD_H__
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
3
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
4 #include <cdda_interface.h>
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
5 #include <cdda_paranoia.h>
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
6
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
7 typedef struct {
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
8 char cddb_hello[1024];
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
9 unsigned long disc_id;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
10 unsigned int tracks;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
11 char *cache_dir;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
12 char *freedb_server;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
13 int freedb_proto_level;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
14 int anonymous;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
15 char category[100];
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
16 char *xmcd_file;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
17 size_t xmcd_file_size;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
18 void *user_data;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
19 } cddb_data_t;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
20
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
21 typedef struct {
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
22 unsigned int min, sec, frame;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
23 } cd_toc_t;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
24
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
25 typedef struct cd_track {
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
26 char *name;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
27 unsigned int track_nb;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
28 unsigned int min;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
29 unsigned int sec;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
30 unsigned int msec;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
31 unsigned long frame_begin;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
32 unsigned long frame_length;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
33 struct cd_track *prev;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
34 struct cd_track *next;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
35 } cd_track_t;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
36
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
37 typedef struct {
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
38 char *artist;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
39 char *album;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
40 char *genre;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
41 unsigned int nb_tracks;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
42 unsigned int min;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
43 unsigned int sec;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
44 unsigned msec;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
45 cd_track_t *first;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
46 cd_track_t *last;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
47 cd_track_t *current;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
48 } cd_info_t;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
49
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
50 typedef struct {
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
51 cdrom_drive* cd;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
52 cdrom_paranoia* cdp;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
53 int sector;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
54 int start_sector;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
55 int end_sector;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
56 cd_info_t *cd_info;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
57 } cdda_priv;
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
58
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
59 cd_info_t* cd_info_new();
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
60 void cd_info_free(cd_info_t *cd_info);
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
61 cd_track_t* cd_info_add_track(cd_info_t *cd_info, char *track_name, unsigned int track_nb, unsigned int min, unsigned int sec, unsigned int msec, unsigned long frame_begin, unsigned long frame_length);
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
62 cd_track_t* cd_info_get_track(cd_info_t *cd_info, unsigned int track_nb);
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
63
7953
60624e692b95 GCC warning fixes
bertrand
parents: 6695
diff changeset
64 void cd_info_debug(cd_info_t *cd_info);
6695
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
65
c2dbba99b31e Created a new header file to store common struct & prototype for
bertrand
parents:
diff changeset
66 #endif // __CDD_H__