主题 : 【求助】DC里常见文件的格式!
级别: 模拟小生
UID: 79366
精华: 0
发帖: 295
威望: 0 星
金钱: 246 浮游币
贡献值: 0 点
好评度: 75 点
人气: 0 点
在线时间: 11(时)
注册时间: 2005-11-19
最后登录: 2024-08-07
楼主  发表于: 2006-03-23 20:15

【求助】DC里常见文件的格式!

光盘里的文件都是什么格式的?都是什么功能
YZB
级别: 超级版主

UID: 12451
精华: 6
发帖: 19106
威望: 173 星
金钱: 2058 浮游币
贡献值: 10284 点
好评度: 54894 点
人气: 4322 点
在线时间: 19818(时)
注册时间: 2004-10-02
最后登录: 2024-12-26
沙发  发表于: 2006-03-23 20:24

呵呵,那站我也看过了`

地址忘记了


-------------------------
acx file format
-------------------------
0        8        n = number of seperate adx files in acx file
8        4        offset from start of file of adx file
12        4        size of adx file
etc etc
...
n*8 + 8            adx files



-------------------------
adx file format (VERY similar to an sfa file except for offset 16)
-------------------------
0        1        0x80 (some kind of magic number maybe??)
1-3        3        off = offset after this number of the audio data
4        4        0x03120402
8        4        sampling rate (in hertz)
12        4        offset withing file of audio data?!?!?!?!?!
16        4        0x01F40300
20        4        0 or 1 (maybe a loop flag??)
24        4        0 or 1 (maybe a loop flag??)
28        4        start of loop?    (only if first loop flag is 1)
32        4        end of loop?    (only if first loop flag is 1)
36        4        start of loop?    (only if first loop flag is 1)
40        4        end of loop?    (only if first loop flag is 1)
...
off-6    6        (c)CRI
off        ?        audio data


-------------------------
afs file format
-------------------------
0        4        AFS(0x00)
4        4        n = number of seperate adx files in the afs file
8        4        offset from start of file of adx file
12        4        size of adx file
etc etc
...
n*8 + 8            adx files


-------------------
pvr file format
-------------------

[OPTIONAL GBIX (global index) HEADER]

-------------------------
offset    length    description
--------------------------
0-3        4        "GBIX" (ascii text)
4-7        4        4 byte number for length of GBIX header from offset 8 onwards
8-11    4        global index
till end of GBIX length (offset 4-7) is filled with spaces (0x20)


[REST OF FILE]
-------------------------
offset    length    description
--------------------------
0-3        4        "PVRT" (ascii text)
4-7        4        length of rest of file in bytes (not counting these 4 bytes)
8-11    4        type of pvr file (see below)
12-13    2        width
14-15    2        height
16-end    ?        texture data


[TYPE]
there are 4 bytes set aside for the pvr type. it seems that only the first
2 bytes are actually being used at the moment though.
the first 2 bytes are as follows:

byte 1 (pixel format):
0x00 = ARGB1555 (bilevel translucent alpha 0,255)
0x01 = RGB565 (no translucent)
0x02 = ARGB4444 (translucent alpha 0-255)
all other values N/A

byte 2:
0x00 = N/A
0x01 = TWIDDLD
0x02 = MIPMAP & TWIDDLD
0x03 = VQ
0x04 = VQ & MIPMAP
0x09 = RECTANGLE
0x10 = SMALL_VQ
0x11 = SMALL_VQ & MIPMAP

-------------------------
san file format
-------------------------
0        5        'SAN 8'
5        3        0x000000
8        4        'YU0M'
12        4        1
16        4        width in pixels
20        4        height in pixels
24        4        length of pixel data
28        4        length of pixel data
32        4        0
36        4        1
40        16        0
56        4        'DATA'
60        4        length of pixel data



-------------------------
sfa file format (VERY similar to an adx file except for offset 16)
-------------------------
0        1        0x80
1        3        off = offset after this number of compressed audio data
4        3        0x031204
7        1        number of channels (1=mono 2=stereo)
8        4        sampling rate (in hertz)
12        4        offset within file of audio data?!?!?!?!?!
16        4        0x01F40500
20        4        0 or 1 (maybe a loop flag??)
24        4        0 or 1 (maybe a loop flag??)
28        4        start of loop?    (only if first loop flag is 1)
32        4        end of loop?    (only if first loop flag is 1)
36        4        start of loop?    (only if first loop flag is 1)
40        4        end of loop?    (only if first loop flag is 1)
...
off-6    6        (c)CRI
off        ?        audio data

-------------------------
sfd file format - v1.01b
(this format changes depending on the version of the encoder used to encode it...)
-------------------------

[HEADER]

0        32        'Sofdec Stream '
32        128        comment string
160        12        name of this file! (.sfd) (if filename is less than 8 chars it is padded with spaces)
172        4        year it was made in (in ascii)
176        2        month is was made in (in ascii)
178        2        day it was made on (in ascii)
180        4        time it was made (in ascii)
184        488  &nbs
[ 此帖被YZB在2009-03-31 10:57重新编辑 ]
YZB
级别: 超级版主

UID: 12451
精华: 6
发帖: 19106
威望: 173 星
金钱: 2058 浮游币
贡献值: 10284 点
好评度: 54894 点
人气: 4322 点
在线时间: 19818(时)
注册时间: 2004-10-02
最后登录: 2024-12-26
板凳  发表于: 2006-03-23 22:12

是啊,嘿嘿~
已收藏啦`
谢谢~
YZB
级别: 超级版主

UID: 12451
精华: 6
发帖: 19106
威望: 173 星
金钱: 2058 浮游币
贡献值: 10284 点
好评度: 54894 点
人气: 4322 点
在线时间: 19818(时)
注册时间: 2004-10-02
最后登录: 2024-12-26
地板  发表于: 2006-06-20 20:31

楼上朋友注意回复别太短,有灌水嫌疑....