📄 readme.txt
字号:
DCP - Dreamcast Compressed Picture
by Steven
----------------------------------------------
This is a modification of Snoozy's DBP image
loader (Dreamcast Binary Picture). This
modification uses RNC data compression to
compress the files.
Why DCP ? Well I got bored of using the same
format over and over again, GIF, JPEG, BMP,
PCX, PNG, etc, so i checked out Snoozy's
DBP and liked it, the only downsize is that
his images were large, well they were almost
identicle to BMP's, just using a different
header, so I simply decided to add in a
compression routine, and do slight modifications
and this is the result. DCP.
Use the DBP Toolkit available at Snoozy's
website to convert a GIF/JPEG/BMP to the
DBP format. Then use rnc.bat <filename> to
compress the image into the RNC format.
To use, simply add this line to the top of
your C file,
#include "dcp_image.h"
dcp_init(size);
before calling dcp_image, where size is
its the ammount of ram you want allocated
for image decompression, if you are unsure
just use 1000000 for now, if you still get
errors try put it upto 2000000, but dont
go crazy and do stuff like 10000000, as
that'd allocate 10mb of Ram, which would
kinda be a waste.
and use this command to display an image,
which will be loaded of a CD,:
dcp_image(char *fn, intxpos, intypos);
char *fn = image filename (eg "/IMG/SPLASH.RNC")
intxpos = x position for the image to be displayed at
intypos = y position for the image to be displayed at
Malloc:
As of this version, there is an included
malloc, but if you have a better malloc
then feel free to use that instead, just
remove the line which says,
#include "malloc.c"
Known Issues:
There are some weird issues if a lot of images
are displayed, but I cant seem to get this to
happen again, if you experience any type of errors
please email me.
Future versions may simply be added to Turrican2k's
Allegro type library for the Dreamcast. The only
difference is that you will just have to blit it to
the screen each time you want it displayed.
If someone has a working free function plus a
better malloc please send it in, and I will
implement it immediatly.
----------------------------------------------
DCP (c) 2001 Steven (ss_teven)
DBP (c) 2001 Snoozy
for DCP visit
http://devcast.dcemulation.com
for DBP visit
http://www.snoozys-dc-stuff.be.tf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -