Decoding cdi image files
I've opened the files ending with "av.rtf" (edit : its not .am) of the Hotel Mario CD-i with a hexa editor.
Then I've looked for image data : the background images are in a CLUT-like format I think.
http://en.wikipedia.org/wiki/CLUT
For each image there is list of all the colors first (the image palette) and then the numeric entries of each pixels.
I have not found the dimension of the images in these files but I know that the game runs in 768*558.
Then I've written a tiny program that read the palette, associates each colors with their logical number and then reads the data image, create an html file that produce each pixel with the the correct color (previously mapped).
I dunno how to create images in Java so that's why I used a html file to do that.
Then I've looked for image data : the background images are in a CLUT-like format I think.
http://en.wikipedia.org/wiki/CLUT
For each image there is list of all the colors first (the image palette) and then the numeric entries of each pixels.
I have not found the dimension of the images in these files but I know that the game runs in 768*558.
Then I've written a tiny program that read the palette, associates each colors with their logical number and then reads the data image, create an html file that produce each pixel with the the correct color (previously mapped).
I dunno how to create images in Java so that's why I used a html file to do that.
Last edited by opt_fr_ on Wed May 20, 2009 3:38 pm, edited 1 time in total.
-
- Softech Recruit
- Posts: 63
- Joined: Sat May 20, 2006 4:08 pm
oops, I'm wrong : it is the .av files, not .am files. I've edited my previous post
thanks for noticing that
thanks for noticing that
Last edited by opt_fr_ on Wed May 20, 2009 3:40 pm, edited 1 time in total.
-
- Softech Recruit
- Posts: 63
- Joined: Sat May 20, 2006 4:08 pm
That's a little better. ^^
Well, for the first image, do you have a color version of it ?
EDIT:
And do you can get the backgrounds of cutscenes ?
(There should be a IRC chan of this forum...)
Well, for the first image, do you have a color version of it ?
EDIT:
And do you can get the backgrounds of cutscenes ?
(There should be a IRC chan of this forum...)
Last edited by LuigiBlood on Wed May 20, 2009 3:44 pm, edited 1 time in total.
I'm french, so sometimes my english can be wrong.
-
- Softech Recruit
- Posts: 63
- Joined: Sat May 20, 2006 4:08 pm
-
- Softech Recruit
- Posts: 63
- Joined: Sat May 20, 2006 4:08 pm
-
- Softech Recruit
- Posts: 63
- Joined: Sat May 20, 2006 4:08 pm
If i can help you about DYUV, you should check this :
http://icdia.co.uk/cdprosupport/cdi/mm/dyuv.htm
That's the only thing i can do ^^
(I've also been using many programs that's not user friendly ^^)
http://icdia.co.uk/cdprosupport/cdi/mm/dyuv.htm
That's the only thing i can do ^^
(I've also been using many programs that's not user friendly ^^)
I'm french, so sometimes my english can be wrong.
[outdated link]
The jar file may be extracted, so you can look at the sources and modify them.
(use it at you're own risks )
The jar file may be extracted, so you can look at the sources and modify them.
(use it at you're own risks )
Last edited by opt_fr_ on Mon Jul 20, 2009 7:37 pm, edited 1 time in total.
-
- Softech Recruit
- Posts: 63
- Joined: Sat May 20, 2006 4:08 pm
I'm using it good, but i have a problem, i have some white things in the image...
EDIT :
Here's a pic of it :
http://i326.photobucket.com/albums/k425 ... roblem.png
I removed all the "00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF 00" in this image.
EDIT 2 : I'm removing "30 08 25 02 01 0F 62 01 01 0F 62 01 47", apparently, it was because of this.
EDIT 3 :
It was because of this : "30 08 ?? 02 01 0F 62 01 01 0F 62 01"
(?? = Always different each time you see it)
To get a good image, you have to remove these bytes from the raw (even the ??).
EDIT :
Here's a pic of it :
http://i326.photobucket.com/albums/k425 ... roblem.png
I removed all the "00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF 00" in this image.
EDIT 2 : I'm removing "30 08 25 02 01 0F 62 01 01 0F 62 01 47", apparently, it was because of this.
EDIT 3 :
It was because of this : "30 08 ?? 02 01 0F 62 01 01 0F 62 01"
(?? = Always different each time you see it)
To get a good image, you have to remove these bytes from the raw (even the ??).
I'm french, so sometimes my english can be wrong.