annotate src/wavpack/tags.h @ 2168:3c9527d25346

fix a crash bug in mp4_is_our_file().
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sat, 17 Nov 2007 03:41:41 +0900
parents cea6393eacc3
children 0de647993c2a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
1 #ifndef _tags_h
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
2 #define _tags_h
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
3
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
4 #include <stdio.h>
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
5
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
6 const int MAX_LEN = 2048;
459
cea6393eacc3 [svn] D'oh, a 2 was missing.
js
parents: 458
diff changeset
7 const int MAX_LEN2 = 128;
109
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
8 const int TAG_NONE = 0;
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
9 const int TAG_ID3 = 1;
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
10 const int TAG_APE = 2;
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
11
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
12 typedef struct {
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
13 char title [MAX_LEN];
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
14 char artist [MAX_LEN];
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
15 char album [MAX_LEN];
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
16 char comment [MAX_LEN];
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
17 char genre [MAX_LEN];
458
89453f4a4278 [svn] Fixed possible buffer overflow.
js
parents: 109
diff changeset
18 char track [MAX_LEN2];
89453f4a4278 [svn] Fixed possible buffer overflow.
js
parents: 109
diff changeset
19 char year [MAX_LEN2];
109
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
20 int _genre;
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
21 } ape_tag;
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
22
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
23 static const char* GenreList [] = {
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
24 "Blues", "Classic Rock", "Country", "Dance", "Disco", "Funk", "Grunge",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
25 "Hip-Hop", "Jazz", "Metal", "New Age", "Oldies", "Other", "Pop", "R&B",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
26 "Rap", "Reggae", "Rock", "Techno", "Industrial", "Alternative", "Ska",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
27 "Death Metal", "Pranks", "Soundtrack", "Euro-Techno", "Ambient",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
28 "Trip-Hop", "Vocal", "Jazz+Funk", "Fusion", "Trance", "Classical",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
29 "Instrumental", "Acid", "House", "Game", "Sound Clip", "Gospel", "Noise",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
30 "AlternRock", "Bass", "Soul", "Punk", "Space", "Meditative",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
31 "Instrumental Pop", "Instrumental Rock", "Ethnic", "Gothic", "Darkwave",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
32 "Techno-Industrial", "Electronic", "Pop-Folk", "Eurodance", "Dream",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
33 "Southern Rock", "Comedy", "Cult", "Gangsta", "Top 40", "Christian Rap",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
34 "Pop/Funk", "Jungle", "Native American", "Cabaret", "New Wave",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
35 "Psychadelic", "Rave", "Showtunes", "Trailer", "Lo-Fi", "Tribal",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
36 "Acid Punk", "Acid Jazz", "Polka", "Retro", "Musical", "Rock & Roll",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
37 "Hard Rock", "Folk", "Folk/Rock", "National Folk", "Swing", "Fast-Fusion",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
38 "Bebob", "Latin", "Revival", "Celtic", "Bluegrass", "Avantgarde",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
39 "Gothic Rock", "Progressive Rock", "Psychedelic Rock", "Symphonic Rock",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
40 "Slow Rock", "Big Band", "Chorus", "Easy Listening", "Acoustic", "Humour",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
41 "Speech", "Chanson", "Opera", "Chamber Music", "Sonata", "Symphony",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
42 "Booty Bass", "Primus", "Porn Groove", "Satire", "Slow Jam", "Club",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
43 "Tango", "Samba", "Folklore", "Ballad", "Power Ballad", "Rhythmic Soul",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
44 "Freestyle", "Duet", "Punk Rock", "Drum Solo", "A capella", "Euro-House",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
45 "Dance Hall", "Goa", "Drum & Bass", "Club House", "Hardcore", "Terror",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
46 "Indie", "BritPop", "NegerPunk", "Polsk Punk", "Beat", "Christian Gangsta",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
47 "Heavy Metal", "Black Metal", "Crossover", "Contemporary C",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
48 "Christian Rock", "Merengue", "Salsa", "Thrash Metal", "Anime", "JPop",
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
49 "SynthPop"
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
50 };
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
51
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
52 int utf8ToUnicode ( const char* lpMultiByteStr, wchar_t* lpWideCharStr, int cmbChars );
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
53
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
54 int GetTageType ( FILE *fp );
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
55
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
56 int DeleteTag ( char* filename);
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
57
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
58 int WriteAPE2Tag ( char* fp, ape_tag *Tag );
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
59
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
60 int ReadAPE2Tag ( FILE *fp, ape_tag *Tag );
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
61
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
62 int ReadID3Tag ( FILE *fp, ape_tag *Tag );
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
63
38ce41606f10 [svn] - wavpack input plugin -- under construction
nenolod
parents:
diff changeset
64 #endif