Gfx9000 Library

Pagina 2/9
1 | | 3 | 4 | 5 | 6 | 7

Van msd

Paragon (1372)

afbeelding van msd

19-01-2004, 18:18

The header of the format will look like this

G9B_ID DB "G9B"
G9B_BIT_DEPTH DB 0 ; 2,4,8 or 16
G9B_COLOR_TYPE DB 0
G9B_WIDTH DW 0
G9B_HEIGHT DW 0
G9B_COMPRESSION DB 0
G9B_DATA_SIZE DS 3,0 ; 24 bit file size
G9B_NR_COLORS DB 0 ; Number of colors in palette mode

Anyone something to add?

Van Grauw

Ascended (8208)

afbeelding van Grauw

19-01-2004, 19:42

Well, I prefer 4-byte ID's, but that's just me, perhaps.

Van msd

Paragon (1372)

afbeelding van msd

19-01-2004, 19:51

It probably is or do you have a good reason for it?

Van anonymous

incognito ergo sum (109)

afbeelding van anonymous

19-01-2004, 19:57

I prefer PNG files Wink Tongue

They even have 4 byte ID's too Smile

Van Grauw

Ascended (8208)

afbeelding van Grauw

19-01-2004, 19:58

Gheh, well, just that whenever I want to make a file format with an ID, 4 characters usually is usually the best fit for the description Smile.

Uh... FM-PAC also has two 4-byte ID's... (PAC2 and OPLL)... Gheh... ^_^

~Grauw

Van Grauw

Ascended (8208)

afbeelding van Grauw

19-01-2004, 20:01

Yes, but PNG files, they're just not do-able. Mainly because of one reason: it doesn't support 15-bit RGB, the spec says in that case it has to be converted to 24-bit RGB and the compression will take care of the space waste. However I don't think either mandatory compression or ultra-large files are an option Smile.

Van anonymous

incognito ergo sum (109)

afbeelding van anonymous

19-01-2004, 20:36

I was kidding about the PNG.. mentioned it mainly because of the IRC discussion yesterday (or was it this morning ^^Wink

Anyway... a PNG viewer for MSX is still very much needed..

Van Grauw

Ascended (8208)

afbeelding van Grauw

19-01-2004, 21:44

Well, 'very much' would be a bit exaggerated... Anyways, it shouldn't be hard to make.

~Grauw

Van anonymous

incognito ergo sum (109)

afbeelding van anonymous

19-01-2004, 21:50

Dude, I'd kill for a PNG viewer/convertor.
Then I finally wouldn't have to work with crappy BMP or GIF anymore...

Van Grauw

Ascended (8208)

afbeelding van Grauw

19-01-2004, 22:54

Well, make it then... it's just a matter of a gzip decompressor iirc, of which sources should be easy to find, reading out some headers, and shifting some bits of the 8-bit colour channels into 5-bit... You could accept only 24-bits bitmaps.

~Grauw

Pagina 2/9
1 | | 3 | 4 | 5 | 6 | 7