home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Graphics
/
graphics-16000.iso
/
amiga
/
jpeg
/
jpg2dctv.rdm
< prev
next >
Wrap
Text File
|
1991-11-09
|
4KB
|
84 lines
JPEG2DCTV Version 0.5
This is a quick and dirty program to decompress JPEG compressed
images into a DCTV display buffer. It takes about one minute to
decompress a 730 x 482 x 24 bit image to a full DCTV screen
on an Amiga 3000 with 'jpeg2dctv', and about 40 seconds with
'jpeg2dctv.030'.
Usage: jpeg2dctv [-a] [-b] [-d] [-p -127..0] inputfile
where '-a' changes the aspect ratio of a file with square pixels to
fit an Amiga screen (i.e., scales 640x480 pic to 640x400);
'-b' activates cross-block smoothing;
'-d' deactivates auto-scaling (will create a DCTV image from
the center of the JPEG file instead); and
'-p -127..0' will reset the priority of the 'jpeg2dctv' task
to the negative number you input (default is -10).
After the program is finished decoding, you may save the DCTV image
by typing in a filename; 'jpeg2dctv' will save the image and exit.
If you do not want to save the image, just hit return when prompted
to exit 'jpeg2dctv'.
The inputfile _must_ be a JPEG compressed image.
If you are running 'jpeg2dctv' under 1.3, you _must_ set your stack
size to a minimum of 10000. Otherwise, 'jpeg2dctv' will crash when you
save a full-screen picture.
You _must_ install 'dctv.library' and 'ilbm.library' in your LIBS: directory
to use 'jpeg2dctv'. 'dctv.library' and 'ilbm.library' are included in
this archive, along with a test image named (appropriately) 'testimg.jpg'.
'dctv.library' is copyrighted (c) 1991 by Digital Creations, Inc.
'ilbm.library' is copyrighted (c) 1990 by Jeff Glatt and Dissidents.
The JPEG source code used in 'jpeg2dctv' is copyrighted (c) 1991 by
Thomas G. Lane, and is part of the Independent JPEG Group's software.
'jpeg2dctv'and 'jpeg2dctv.030' are copyrighted (c) 1991 by Benjamin Reich.
This software is provided AS IS.
Updates from v. 0.4:
- substituted 'ilbm.library' for the EA IFF-ILBM saving code. The
result is that you no longer need to change the stack size under
2.0. Also, the saving is much faster.
- added a command line option to change the aspect ratio of a JPEG
file to better fit an Amiga screen. Amiga pixels are 1.2 times
taller than they are wide. Most JPEG images created on other
machines will have square pixels. The '-a' option removes lines
from a JPEG file, so that the image will appear square on the
DCTV screen, instead of looking 1.2 times taller than it is wide.
Check the effect of the '-a' option on 'testimg.jpg'.
Updates from v. 0.3:
- added ability to save the created DCTV image; and
- added a command line option to deactivate auto-scaling. Instead,
'jpeg2dctv' will now take the center 736x482 from the JPEG file,
and output the center as a DCTV image. This was added because the
scaling algorithm is basic, and will cause jaggies if the JPEG
inputfile is only slightly bigger than 736 horizontally or 482
vertically.
Updates from v. 0.2:
- will scale down a JPEG file larger than the DCTV display
to fit on a DCTV screen; and
- task priority may be set with the '-p' command line switch
from -127 to 0 (default is -10). 'jpeg2dctv' is processor
intensive, and a priority of >0 makes my Amiga
appear to be frozen.
Updates from v. 0.1:
- added proper overscan support;
- now both 1.3 and 2.0 compatible;
- screen pops to front when finished decoding; and
- improved control-c handling
(will not break until after it is finished decoding).
-Benjamin Reich
Portal: Counsellor
BIX: ben_rich
Delphi: BEN_RICH
Usenet: Counsellor@cup.portal.com