VQF: Difference between revisions
Jump to navigation
Jump to search
(fix overal file layout; rename chunks to subchunks) |
(simpler description of subchunks; note that strings are not zero-terminated) |
||
Line 8: | Line 8: | ||
==General Layout== | ==General Layout== | ||
typedef struct | * All (u)intxx fields are stored in big-endian order. | ||
typedef struct vqf_file { | |||
char magic[4]; /* "TWIN" */ | char magic[4]; /* "TWIN" */ | ||
char version[8]; /* e.g. "97012000" */ | char version[8]; /* e.g. "97012000" */ | ||
uint32 subchunks_size; | |||
uint8 subchunks[subchunks_size]; | |||
char datamarker[4]; /* "DATA" */ | char datamarker[4]; /* "DATA" */ | ||
uint8 data[data_size]; /* from DSIZ subchunk */ | |||
} | } vqf_file; | ||
typedef struct subchunk { | |||
char subchunk_id[4]; | |||
uint32 subchunk_size; | |||
uint8 data[subchunk_size-8]; | |||
} subchunk; | |||
==Standard Sub-chunks== | ==Standard Sub-chunks== | ||
* Strings are not zero-terminated. The length is defined by the subchunk_size field. | |||
{| border="1" cellpadding="8" style="font-family: fixed; font-size: 10pt;" | {| border="1" cellpadding="8" style="font-family: fixed; font-size: 10pt;" |
Revision as of 05:41, 8 November 2007
- Extensions: .vqf
- Company: Nippon TT
VQF files are used to store a stream of TwinVQ encoded audio data.
General Layout
- All (u)intxx fields are stored in big-endian order.
typedef struct vqf_file { char magic[4]; /* "TWIN" */ char version[8]; /* e.g. "97012000" */ uint32 subchunks_size; uint8 subchunks[subchunks_size]; char datamarker[4]; /* "DATA" */ uint8 data[data_size]; /* from DSIZ subchunk */ } vqf_file;
typedef struct subchunk { char subchunk_id[4]; uint32 subchunk_size; uint8 data[subchunk_size-8]; } subchunk;
Standard Sub-chunks
- Strings are not zero-terminated. The length is defined by the subchunk_size field.
Chunk ID | Contents | Field | Description |
---|---|---|---|
COMM | Mandatory information | int32 channel_mode | 0: mono, 1: stereo |
int32 bitrate | kbit/s | ||
int32 samplerate | 44: 44100 Hz, 22: 22050 Hz, 11: 11025 Hz | ||
int32 security_level | always 0 | ||
NAME | Song title | char name[] | |
COMT | Comment | char comment[] | |
AUTH | Author | char author[] | |
(c)<space> | Copyright | char copyright[] | |
FILE | Filename | char filename[] | |
DSIZ | Data size | uint32 data_size | size of compressed audio data |
Extension Sub-chunks
Chunk ID | Contents | Field | Description |
---|---|---|---|
ALBM | Album title | char album_title[] | |
YEAR | Recording date | int16 year | 0 means unspecified |
char month | idem | ||
ENCD | Compression date | int16 year | 0 means unspecified |
char month | idem | ||
char day | idem | ||
char hour | idem | ||
char minute | idem | ||
char timeZone | idem | ||
TRAC | Track number | int16 track_number | |
LYRC | Lyrics | char lyrics[] | |
GUID | Globally Unique Identifier | uchar guid[16] | |
ISRC | International Standard Record Code | char isrc[] | Identifier of CD |
WORD | Words | char words[] | |
MUSC | Composer | char composer[] | |
ARNG | Arranger | char arranger[] | |
PROD | Producer | char producer[] | |
REMX | Remixer | char remixer[] | |
CDCT | Conductor | char conductor[] | |
SING | Singer | char singer[] | |
BAND | Band name | char band_name[] | |
PRSN | Personnel | char personnel[] | |
LABL | Record label | char record_label[] | |
NOTE | Liner notes | char liner_notes[] | |
SCND | Auxiliary information | char aux_info[] | |
EXTR | reserved | ||
_ID3 | Reserved for ID3v2 tags | char id3v2_data[] | Not sure if such files exist; priority for tags conflicting with previous chunks is undefined |
_YMH | Reserved chunk | ||
_NTT | Reserved chunk |