| 1 | |
| 2 | #ifndef LAME_ID3_H |
| 3 | #define LAME_ID3_Hcxx . . $ `external/lame/id3tag.h:3:9`! |
| 4 | |
| 5 | |
| 6 | #define CHANGED_FLAGcxx . . $ `external/lame/id3tag.h:6:9`! (1U << 0) |
| 7 | #define ADD_V2_FLAGcxx . . $ `external/lame/id3tag.h:7:9`! (1U << 1) |
| 8 | #define V1_ONLY_FLAGcxx . . $ `external/lame/id3tag.h:8:9`! (1U << 2) |
| 9 | #define V2_ONLY_FLAGcxx . . $ `external/lame/id3tag.h:9:9`! (1U << 3) |
| 10 | #define SPACE_V1_FLAGcxx . . $ `external/lame/id3tag.h:10:9`! (1U << 4) |
| 11 | #define PAD_V2_FLAGcxx . . $ `external/lame/id3tag.h:11:9`! (1U << 5) |
| 12 | |
| 13 | enumcxx . . $ $anonymous_type_b9367cf3d136e6b1_0# { |
| 14 | MIMETYPE_NONEcxx . . $ MIMETYPE_NONE. = 0, |
| 15 | MIMETYPE_JPEGcxx . . $ MIMETYPE_JPEG., |
| 16 | MIMETYPE_PNGcxx . . $ MIMETYPE_PNG., |
| 17 | MIMETYPE_GIFcxx . . $ MIMETYPE_GIF. |
| 18 | }; |
| 19 | |
| 20 | typedef struct FrameDataNodecxx . . $ FrameDataNode# { |
| 21 | struct FrameDataNodecxx . . $ FrameDataNode# *nxtcxx . . $ FrameDataNode#nxt.; |
| 22 | uint32_tcxx . . $ uint32_t# fidcxx . . $ FrameDataNode#fid.; /* Frame Identifier */ |
| 23 | char lngcxx . . $ FrameDataNode#lng.[4]; /* 3-character language descriptor */ |
| 24 | structcxx . . $ FrameDataNode#$anonymous_type_1# { |
| 25 | unioncxx . . $ FrameDataNode#$anonymous_type_1#$anonymous_type_2# { |
| 26 | char *lcxx . . $ FrameDataNode#$anonymous_type_1#$anonymous_type_2#l.; /* ptr to Latin-1 chars */ |
| 27 | unsigned short *ucxx . . $ FrameDataNode#$anonymous_type_1#$anonymous_type_2#u.; /* ptr to UCS-2 text */ |
| 28 | unsigned char *bcxx . . $ FrameDataNode#$anonymous_type_1#$anonymous_type_2#b.; /* ptr to raw bytes */ |
| 29 | } ptrcxx . . $ FrameDataNode#$anonymous_type_1#ptr.; |
| 30 | size_t dimcxx . . $ FrameDataNode#$anonymous_type_1#dim.; |
| 31 | int enccxx . . $ FrameDataNode#$anonymous_type_1#enc.; /* 0:Latin-1, 1:UCS-2, 2:RAW */ |
| 32 | } dsccxx . . $ FrameDataNode#dsc. , txtcxx . . $ FrameDataNode#txt.; |
| 33 | } FrameDataNodecxx . . $ FrameDataNode#; |
| 34 | |
| 35 | |
| 36 | typedef struct id3tag_speccxx . . $ id3tag_spec# { |
| 37 | /* private data members */ |
| 38 | unsigned int flagscxx . . $ id3tag_spec#flags.; |
| 39 | int yearcxx . . $ id3tag_spec#year.; |
| 40 | char *titlecxx . . $ id3tag_spec#title.; |
| 41 | char *artistcxx . . $ id3tag_spec#artist.; |
| 42 | char *albumcxx . . $ id3tag_spec#album.; |
| 43 | char *commentcxx . . $ id3tag_spec#comment.; |
| 44 | int track_id3v1cxx . . $ id3tag_spec#track_id3v1.; |
| 45 | int genre_id3v1cxx . . $ id3tag_spec#genre_id3v1.; |
| 46 | unsigned char *albumartcxx . . $ id3tag_spec#albumart.; |
| 47 | unsigned int albumart_sizecxx . . $ id3tag_spec#albumart_size.; |
| 48 | unsigned int padding_sizecxx . . $ id3tag_spec#padding_size.; |
| 49 | int albumart_mimetypecxx . . $ id3tag_spec#albumart_mimetype.; |
| 50 | char languagecxx . . $ id3tag_spec#language.[4]; /* the language of the frame's content, according to ISO-639-2 */ |
| 51 | FrameDataNodecxx . . $ FrameDataNode# *v2_headcxx . . $ id3tag_spec#v2_head., *v2_tailcxx . . $ id3tag_spec#v2_tail.; |
| 52 | } id3tag_speccxx . . $ id3tag_spec#; |
| 53 | |
| 54 | |
| 55 | /* write tag into stream at current position */ |
| 56 | extern int id3tag_write_v2cxx . . $ id3tag_write_v2(12e50c934c2e73e2).(lame_global_flagscxx . . $ lame_global_flags# * gfp); |
| 57 | extern int id3tag_write_v1cxx . . $ id3tag_write_v1(12e50c934c2e73e2).(lame_global_flagscxx . . $ lame_global_flags# * gfp); |
| 58 | /* |
| 59 | * NOTE: A version 2 tag will NOT be added unless one of the text fields won't |
| 60 | * fit in a version 1 tag (e.g. the title string is longer than 30 characters), |
| 61 | * or the "id3tag_add_v2" or "id3tag_v2_only" functions are used. |
| 62 | */ |
| 63 | |
| 64 | #endif |