Dec 082017
 
Display v1.60 - DOS program that allows you to read, write, and display various graphics formats (includes special effects like rotation and dithering).
File DISP160.ZIP from The Programmer’s Corner in
Category Printer + Display Graphics
Display v1.60 – DOS program that allows you to read, write, and display various graphics formats (includes special effects like rotation and dithering).
File Name File Size Zip Size Zip Type
CHANGE 13422 4473 deflated
CONFIG.DIS 7388 2823 deflated
COPYING.CB 4360 1747 deflated
COPYING.DJ 2648 1083 deflated
COPYING.GNU 12737 4815 deflated
DISPLAY.EXE 720184 284780 deflated
DRIVER 0 0 stored
DRIVER.TXT 4099 2011 deflated
ACUMOS.GRN 522 401 deflated
AHEADA.GRD 287 238 deflated
AHEADB.GRD 267 216 deflated
ATI.GRD 375 273 deflated
ATIGUPRO.GRN 513 393 deflated
ATIULTRA.GRN 1162 833 deflated
ATIVGA.GRN 565 428 deflated
CHIPS.GRD 282 229 deflated
CIRRUS54.GRN 700 515 deflated
ET3000.GRN 530 399 deflated
ET4000.GRN 884 597 deflated
EVEREX.GRD 311 261 deflated
GENOA.GRD 285 228 deflated
NEWSS24X.GRN 668 491 deflated
OAK.GRN 499 375 deflated
PARADISE.GRD 263 208 deflated
REALTEK.GRN 577 428 deflated
SPARADIS.GRN 549 410 deflated
SS24X.GRN 1041 710 deflated
STDVGA.GRN 502 370 deflated
STEALTH.GRN 617 460 deflated
TR8900.GRN 578 434 deflated
VESANEW.GRN 1055 707 deflated
VIDEO7.GRD 331 279 deflated
WD90C3X.GRN 624 467 deflated
WDVANILA.GRN 609 450 deflated
DRVSRC 0 0 stored
ACUMOS.ASM 13844 3971 deflated
AHEADA.ASM 4253 1574 deflated
AHEADB.ASM 4055 1498 deflated
ATI.ASM 7493 1935 deflated
ATIGUPRO.ASM 11534 3746 deflated
ATIULTRA.ASM 12617 4021 deflated
ATIVGA.ASM 11803 3764 deflated
CHIPS.ASM 4243 1556 deflated
CIRRUS54.ASM 15716 4544 deflated
ET3000.ASM 11034 3555 deflated
ET4000.ASM 14743 4249 deflated
EVEREX.ASM 4289 1582 deflated
GENOA.ASM 5667 1680 deflated
GRDRIVER.INC 2654 1122 deflated
IBM8514A.C 6278 2443 deflated
MAKEFILE 974 415 deflated
NEWSS24X.ASM 14618 4236 deflated
OAKGRN.ASM 11181 3581 deflated
PARADISE.ASM 4038 1479 deflated
REALTEK.ASM 12455 3924 deflated
REG8514A.H 9126 2709 deflated
SPARADIS.ASM 8462 2805 deflated
SS24X.ASM 14861 4281 deflated
STDVGA.ASM 11376 3604 deflated
STEALTH.ASM 12631 3924 deflated
TR8900.ASM 11363 3628 deflated
VESANEW.ASM 16485 5106 deflated
VIDEO7.ASM 4426 1595 deflated
EMU387 42766 17285 deflated
FAQ 1041 473 deflated
FONTS 0 0 stored
COUR11.FNT 2858 1319 deflated
COUR11B.FNT 2856 1330 deflated
COUR11BI.FNT 2856 1374 deflated
COUR11I.FNT 2858 1364 deflated
COUR12.FNT 2948 1375 deflated
COUR12B.FNT 2946 1408 deflated
COUR12BI.FNT 4086 1600 deflated
COUR12I.FNT 2948 1435 deflated
COUR14.FNT 3145 1445 deflated
COUR14B.FNT 3144 1479 deflated
COUR14BI.FNT 4473 1751 deflated
COUR14I.FNT 4475 1643 deflated
COUR16.FNT 4855 1677 deflated
COUR16B.FNT 4853 1672 deflated
COUR16BI.FNT 4853 1822 deflated
COUR16I.FNT 4855 1775 deflated
COUR20.FNT 5609 1813 deflated
COUR20B.FNT 5614 1931 deflated
COUR20BI.FNT 5614 2131 deflated
COUR20I.FNT 5609 1951 deflated
COUR25.FNT 6559 2081 deflated
COUR25B.FNT 6564 2246 deflated
COUR25BI.FNT 8939 2539 deflated
COUR25I.FNT 8934 2313 deflated
COUR34.FNT 11533 2698 deflated
COUR34B.FNT 11531 2940 deflated
COUR34BI.FNT 14761 3544 deflated
COUR34I.FNT 11533 2923 deflated
PC6X14.FNT 3640 1135 deflated
PC6X8.FNT 2104 962 deflated
PC8X14.FNT 3640 1349 deflated
PC8X14T.FNT 3640 1289 deflated
PC8X16.FNT 4152 1312 deflated
PC8X8.FNT 2104 1096 deflated
PC8X8T.FNT 2104 1148 deflated
XM10X17.FNT 3286 777 deflated
XM10X17B.FNT 3286 867 deflated
XM10X20.FNT 3856 776 deflated
XM10X20B.FNT 3856 861 deflated
XM12X20.FNT 3856 912 deflated
XM12X20B.FNT 3856 990 deflated
XM16X25.FNT 4806 1580 deflated
XM16X25B.FNT 4806 1520 deflated
XM16X25I.FNT 4806 1760 deflated
XM4X5.FNT 531 259 deflated
XM4X6.FNT 1489 782 deflated
XM5X8.FNT 1679 860 deflated
XM6X10.FNT 1871 932 deflated
XM6X10B.FNT 1869 934 deflated
XM6X12.FNT 2061 946 deflated
XM6X12B.FNT 2059 945 deflated
XM6X12I.FNT 2061 1017 deflated
XM7X13.FNT 1591 817 deflated
XM7X13B.FNT 1589 786 deflated
XM8X12.FNT 2061 990 deflated
XM8X12B.FNT 2059 995 deflated
XM8X16.FNT 2441 1044 deflated
XM8X16B.FNT 2439 1057 deflated
XM8X16I.FNT 1576 705 deflated
XM9X15.FNT 3771 1125 deflated
XM9X15B.FNT 3769 1140 deflated
FORMAT.TXT 201 133 deflated
GO32.EXE 57068 31113 deflated
MATCH.DOC 2646 1236 deflated
READ.ME 14346 5642 deflated
RUNME.BAT 768 389 deflated
VESAINFO.C 7136 2106 deflated
VESAINFO.COM 7406 5016 deflated

Download File DISP160.ZIP Here

Contents of the READ.ME file


****** You can distribute this program freely for non-commercial use.
****** There is no warranty. The author is not responsible for any
damage caused by this program.


(1) Introduction:
This program can let you READ, WRITE and DISPLAY images/movies with different
formats. It also let you do some special effects(rotation, dithering ...)
on image.
Features:
Include simple file management system.
Support 'slide show'.
Support 'batch conversion'.
There is NO LIMIT on image size.
This program supports 8, 15, 16, 24 bits display.
Support movie files(DL,FLI/FLC,RAW,MPEG,AVI).
Support mouse.
Support contact sheet making.

The official site is NCTUCCCA.edu.tw:/PC/graphics/disp.
IP address is 140.111.1.10 or 192.83.166.10

(2) Hardware Requirement:
PC 386 or better. MSDOS 3.3 or higher.
I recommend min 8M bytes for better performance.
Hard disk for swapping(virtual memory).

The following description is borrowed from DJGPP.

Supported Wares:

* Up to 128M of extended memory (expanded under VCPI)
* Up to 128M of disk space used for swapping
* SuperVGA 256-color mode up to 1024x768
* 80387
* XMS & VDISK memory allocation strategies
* VCPI programs, such as QEMM, DESQview, and 386MAX

Unsupported:

* DPMI (Although go32 support DMPI. DISPLAY can't run under DPMI)
* Microsoft Windows

Features: 80387 emulator, 32-bit unix-ish environment, flat memory
model, SVGA graphics.


(3) Installation:

Video drivers, emu387 and go32.exe are borrowed from DJGPP.
This go32.exe(from DJGPP 1.10) is a modified version.

*** If this go32.exe is not compatible with other DJGPP program
in your system, DON'T put go32.exe within search path.

*** Please use RUNME.BAT to run this program.
*** Please use text editor to modify the configuration file, CONFIG.DIS.

If you choose xxxxx.grn as video driver. add 'driver xxxxx.grn' to GO32.
For example, go32=driver x:/xxxxx/xxxxx.grn

If you don't have 80x87, add 'emu x:/xxxxx/emu387' to environment GO32.
For example, go32=driver x:/xxxxx/xxxxx.grd emu x:/xxxxx/emu387

If you use VESANEW.GRN, there are three options for you :(These three
options have no effect on other video drivers)
'real' : Do bank switching in real mode (Recommended).
'prot' : Do bank switching in protected mode.
'none' : Let DISPLAY do bank switching for you (Always work).

For example, go32=real driver ............

If your memory manager supports DPMI, then you must add 'nodpmi' to GO32.

If you have video card with more than 1M bytes memory, add 'lvram' to GO32.

Notes:
1. I only test tr8900.grn, et4000.grn and vesanew.grn. Other drivers are
not tested.
2. I have modified et4000.grn to support 8, 15, 16, 24 bits display. You
don't need to use vesa driver.
If et4000.grn doesn't work, please try vesanew.grn.
3. For those who want to use HiColor or TrueColor display,
please use vesanew.grn(except et4000 users).
You can find vesa BIOS driver from :
wuarchive.wustl.edu: /mirrors/msdos/graphics
godzilla.cgl.rmit.oz.au: /kjb/MGL


(4) Command Line Switch:

Usage :
display [-d|--display initial_display_type] [-s|--sort sort_method]
[-f config_file] [-a] [--slide] [-n l|g] [-h|-?]
[image_file(s) | @response_file]

for command-line batch conversion :
display (--batch | -b) output_format [--bw|--grey|--color|--true]
[--dialog | -g]
(file | file dir | file1 file2 | files dir)

Display type: 8(SVGA,default), 15, 16(HiColor), 24(TrueColor)
Sort method: 'name', 'ext'
-a: Always set to highest display type
-f: Read user specified config file only.
-n: Don't read Local or Global config file.
--slide: Do slide show for listed file(s).
output_format : Standard extensions. Like gif, bmp ... (see section (7))
default color type for batch conversion is Full color(8 bits).


(5) Function Key:

F1 : Print READ.ME.

F9 : For those who can't remember all commands of DISPLAY.

F2 : Change disk drive.

CTRL-A -- CTRL-Z : change disk drive.

F3 : Change filename mask. (See match.doc)

F4 : Change parameters.

F5 : Some effects on picture, eg. flip, rotate ....

F7 : Make Directory.

t,T : Tag file.(Can untag tagged files)

+ : Tag group files. (See match.doc)
When image is shown, '+' can change to next resolution.

ALT-T : Tag all files.

u,U : Untag file.

- : Untag group files. (See match.doc)
When image is shown, '-' can change to previuos resolution.

ALT-U : Untag all files.

Ins : Change display type (8,15,16,24).

F6,m,M : Move file(s).

ALT-M : Move single file(ignore tag).

F8,d,D : Delete file(s).

ALT-D : Delete single file(ignore tag).

r,R : Rename file.

c,C : Copy File(s).

ALT-C : Copy single file(ignore tag).

z,Z : Display first 10 bytes in Ascii, Hex and Dec modes.

f,F : Display disk free space.

Page Up/Down : Move one page.

TAB : Change processing target.

Arrow keys, Home, End, Page Up, Page Down: Scroll image.
Home: Left Most.
End: Right Most.
Page Up: Top Most.
Page Down: Bottom Most.
in 'screen' & 'effect' menu :
Left,Right arrow: Change display type(8, 15, 16, 24 bits).

CTRL-Arrow keys : Crop image by one line(in graphics mode).
CTRL-SHIFT-Arrow keys : Big Crop.(Controlled by 'big_crop_step').

s,S : Slide Show(show tagged files). ESCAPE to terminate.

b,B : Batch conversion(convert tagged files to single format).
You can perform up to 8 special operations.
Each is independent of others.

e,E : Contact sheet making.

w,W : Wait/Pause in slide show.

q,Q : Accumulation color quantization.
Find a best palette set for group of files.
Very useful for producing animation pictures.

l,L : List available graphic/text modes.

o,O : Display font.

ALT-X : Quit program without prompting.

ALT-A : Reread directory.

ALT-S : Save config file.

0..9 :
SHIFT-A..Z : Jump to first file whose name starts with this character.

F1 .. F8 : Gamma correction in graphic mode.
F1,F3,F5,F7: decrease Red,Green,Blue,All.
F2,F4,F6,F8: increase Red,Green,Blue,All.

F9,F10 : Zoom Out/In in graphic mode.

BACKSPACE : Go up one level of directory tree.

Escape : Abort function and return.


(6) Mouse Buttons:

MIDDLE button and CTRL-RIGHT button always mean ESCAPE.

in read/write menu:
single-click LEFT or RIGHT button = 'move select bar'.
double-click LEFT button = RETURN.
double-click RIGHT button = SPACE.
CTRL-LEFT button = Tag.

in other text menus:
RIGHT button means SPACE.
single-click LEFT button = 'move select bar'.
double-click LEFT button = RETURN.

in contact sheet preview:
RIGHT = show/hide mouse cursor.
LEFT = if (mouse cursor shown) move contact sheet.
else leave graphic mode.
CTRL-LEFT = move image piece.

in image display screen:
RIGHT = show/hide mouse cursor.
LEFT = if (mouse cursor shown) move image around screen.
else leave graphic mode.
CTRL-LEFT = move one page.
SHIFT-LEFT = show information box.
You can move this box around screen by click and drag.

In some text regions the mouse cursor will change. Press LEFT button
to do that function.


(7) Support Format:

+ Read: GIF(.gif), Japan MAG(.mag), Japan PIC(.jpc), Sun Raster(.ras),
Jpeg(.jpg), XBM(.xbm), Utah RLE(.rle), PBM(.pbm), PGM(.pgm),
PPM(.ppm), PM(.pm), PCX(.pcx), Japan MKI(.mki), Tiff(.tif),
Targa(.tga), XPM(.xpm), Mac Paint(.mac), GEM/IMG(.img),
IFF/ILBM(.iff,.lbm), Window BMP(.bmp), QRT ray tracing(.qrt),
Mac PICT(.pct), VIS(.vis), PDS(.pds), VIKING(.vik), VICAR(.vic),
FITS(.fit), Usenix FACE(.fac), IRIS(.sgi), YUV(.yuv), RAW,
+ PCPAINT/Pictor(.pic,.clp).

DL(.dl), FLI(.fli), FLC(.flc), RAW(.raw, produced by DMPEG),
+ MPEG(.mpg), AVI(.avi), GL(.gl).

the extensions in () are standard extensions.

Write: GIF, Sun Raster, Jpeg, XBM, PBM, PGM, PPM, PM, Tiff, Targa,
XPM, Mac Paint, Ascii, Laser Jet, IFF/ILBM, Window BMP,
Mac PICT, VIS, FITS, FACE, PCX, GEM/IMG, IRIS, YUV, RAW.

All Read/Write support full color(8 bits), grey scale, b/w dither,
and 24 bits image, if allowed for that format.


(8) Detail:

Initialization:
Set default display type to highest display type.
Find allowable screen resolution(for .grn video driver only).
Read configuration file(Global and Local).
Global: where DISPLAY.EXE stays. Local: Where you are.
Process command line options.

1. When you run this program, you will enter 'read' menu. Whthin this
menu you can press any function key. If you move or copy
files, you will enter 'write' menu. the 'write' menu is much like
'read' menu, but only allow you to change directory.
The header line in 'read' menu includes "(d:xx,f:xx,t:xx)".
d : display type. f: number of files. t: number of tagged files.
pressing SPACE in 'read' menu will let you select which format to use
for reading current file.
pressing RETURN in 'read' menu will let you reading current file. This
program will automatically determine which format this file is.
The procedure is: First, check magic number. If fail, check
standard extension. Still fail, report error.
pressing s or S in 'read' menu will do 'Slide Show'.
If delay time is 0, program will wait until you hit a key
(except ESCAPE).
If any error occurs, program will make a beep.
'w' or 'W' to pause, any key to continue.
ESCAPE to terminate.
pressing b or B to do 'Batch Conversion'.
pressing Ins in 'read' menu will change display type.
pressing ALT-X in 'read' menu will quit program without prompting.
pressing F5 will turn on 'effect' menu.

2. Once image file is successfully read, you will enter 'screen' menu.
You can do special effect on image.

If you select a movie file, commands are the followings:
SPACE : pause playing. If you press 'w' or 'W', this program will
write current frame to file. After writing, screen will pause
at next frame.
ESCAPE : Terminate playing.

pressing RETURN: show image.
in graphic mode, press RETURN, SPACE or ESCAPE to return to text
mode.
press '+' and '-' to change screen resolution.
pressing TAB: change processing target. This program allows you to do
special effects on 8-bit or 24-bit image.
pressing Left,Right arrow: change display type. 8, 15, 16, 24 bits.
pressing SPACE: save current image to file.
B/W Dither: save as black/white image(1 bit).
Grey Scale: save as grey image(8 bits).
Full Color: save as color image(8 bits).
True Color: save as 24-bit image.

This program will ask you some questions if you want to write image
to file. Some questions are format-dependent. Finally This program
will prompt you a filename. If you want to save file under another
directory other than current directory, please press SPACE. after
pressing SPACE, you will enter 'write2' menu. You can change
directory to what you want. Then,

pressing SPACE: this program will prompt you 'original' filename.
pressing RETURN: this program will prompt you 'selected' filename
(filename under bar).


3. This program supports 8, 15, 16, 24 bits display.

4. This Program is MEMORY GREEDY. If you don't have enough memory,
the performance is poor.

5. If you want to save 8 bits image :
try GIF then TIFF(LZW) then TARGA then Sun Raster then BMP then ...

If you want to save 24 bits image (lossless):
try TIFF(LZW) or TARGA or ILBM or Sun Raster
(No one is better for true 24bits image)

6. I recommend Jpeg for storing 24 bits images, even 8 bits images.

7. Not all subroutines are fully tested

8. This document is not well written. If you have any PROBLEM, SUGGESTION,
COMMENT about this program,
Please send to [email protected] (140.113.11.13).
I need your suggestions to improve this program.
(There is NO anonymous ftp on this site)


(9) Tech. information:
Program (user interface and some subroutines) written by Jih-Shin Ho.
Some subroutines are borrowed from XV(2.21) and PBMPLUS(dec 91).
JPEG is based on the library by Independent JPEG Group.
Tiff(V3.2) reading/writing are through Tiff library (from ftp.sgi.com).
DL is based on xdl.c & Xanim260.
FLI/FLC is based on the article in DDJ (Mar. 1993).
MPEG is based on Berkeley mpeg_play 2.0.
AVI is based on Xanim260 by Mark Podlipec.
Compiled with DJGPP.
You can get whole DJGPP package from :
omnigate.clarkson.edu: /pub/msdos/djgpp


(10) For Thoese who want to modify video driver:
1. For HiColor and TrueColor, Please reference ET4000.ASM:


Acknowledgment:
I would like to thank the authors of XV and PBMPLUS for their permission
to let me use their subroutines.
Also I will thank the authors who write Tiff and Jpeg libraries.
Thank DJ. Without DJGPP I can't do any thing on PC.
The author would like to thank Olivier Dumas, Ben Jos Walbeehm,
Bryan Woodworth and other users for their advices and suggestions.
The author would like to thank NCTUCCCA for offering a place for DISP.


Jih-Shin Ho
[email protected]


 December 8, 2017  Add comments

Leave a Reply