Revision History
----------------

Rev: 4/28/92    (version 2.21)
-----------------------------
Since XDestroyImage() seems to fail to destroy the actual image data on
	some systems, I've replaced all calls to XDestroyImage() with
	xvDestroyImage(), which explicitly kills both the image data and
	the image structure.

Added '-close' option (and 'autoClose' boolean resource) to toggle the
	"automatically close all windows when you iconify the image window"
	behavior.  By default, this behavior is turned *on*.

You can now specify just a width *or* a height in the '-geometry' spec.
	The other dimension will be calculated to preserve the aspect ratio.

Makefile.std was *not* up to date.

Various prototype fixes, Imakefile changed, etc.
				(David Brooks  (dbrooks@osf.org))

Conflict with constant 'BITS' (defined in xvgifwr.c) on some systems.
			(Bernd Mohr (mohr@immd7.informatik.uni-erlangen.de))

'xwd.c' seems to have snuck into the 2.20 distribution.  It has been excised.

The '-expand' option didn't work with negative numbers, as it should.  Also,
	'-e' didn't work, even though there are no other '-e*' options.
				(Marcel Wijkstra  (wijkstra@fwi.uva.nl))

Minor AIX tweakage

Some calls to rd_str() should have been rd_str_cl(), and other minor probs.
				(Andreas Stolcke  (stolcke@icsi.berkeley.edu))


Rev: 4/24/92    (version 2.20)
-----------------------------
Enhancement:  In the color editor, you can now 'Set' the 'Reset' button,
	as well as presets 1-4.  This is useful if you've like to temporarily
	set your 'default' settings for the remainder of the current XV
	session, without having to play around with 'xrdb'.  For example,
	you might temporarily be using XV on a monitor with different 
	color characteristics than the one you normally use.  You could 
	deal with this problem by playing with the r,g,b graphs, and then,
	once the image looks 'right' again, setting the 'Reset' button, so
	that all subsequent images will have this same modification applied 
	to them.

Enhancement:  The '-wait' option works better.  It now waits until the
	image has been fully drawn before starting the timer.  Now, you're
	guaranteed that your images will be up at least as long as you
	specify with the '-wait' option (plus whatever time it takes to
	load and prepare the next image for display).

	Also, you can now specify '-wait 0' to mean 'as fast as possible'.
	Handy if you're doing the weather map trick described below.

Enhancement:  The '-visual' option seems to actually *work* now.  It only
	'theoretically' worked before (read: "didn't work at all"), as my 
	X server only supports one visual, making testing impossible.
	Since then I've gotten my hands on a DecStation, which has an X 
	server that supports several different 8-bit visuals.  It should
	work with visuals of different depths, as well, but it might
	not.

Enhancement:  All places in the code that were hard-coded to use the directory
	"/tmp" (when creating temp files) now use the value of the environment
	variable TMPDIR, if defined, and "/tmp" if not.

Added Feature: '-loadclear' command-line option (and 'clearOnLoad' boolean
	resource) lets you turn on the clearing of the image window
	(or root window) done whenever you load an image on a PseudoColor
	(or Grayscale) display.  This clearing USED to be done by default, 
	to hide	the temporary 'rainbow' effect caused when colormap 
	entries are freed and reallocated.  This is no longer the case.
	I've decided that I find the effect vaguely entertaining (something
	to look at while waiting for the next image to load), and more 
	importantly, if you have a series of images that use the same 
	colors, you can now use	XV to animate them (albeit no faster than 
	a frame every 1-2 seconds).

	Ferinstance, get the satallite radar images from vmd.cso.uiuc.edu,
	(in the directory 'phil.515'), and run 'xv -wait 0 -wloop SA*'.
	Just like the evening news!

Added Feature: There's now a 'compressed' checkbox in the Postscript window.
	When enabled, XV will generate RLE-compressed Postscript files.  Also,
	the images will be written as 8-bit data with a colormap.  The
	practical upshot is that color PS files can now be *much* smaller.
	(Resource name: 'pscompress', type: boolean)

	One note:  Compressed images may take considerably longer to print
	than uncompressed images.  As an example, the default XV pic took
	(on a LaserWriter II NTX):
		Color, Compressed:	(87k)	4:00  (4 minutes, not hours!)
		Color, Uncompressed:	(391k)	2:30
		Gray,  Compressed:	(85k)	1:40
		Gray,  Uncompressed:	(130k)	 :20

	The lesson is: unless you're printing to a color printer, you're
	probably best off sending uncompressed grayscale Postscript.

Added Feature: whizzo new 'Grab' command.  Lets you grab any
	rectangular section of the screen into XV.  To use, click on
	the Grab button (or type ctrl-G).  The display will beep, and
	the cursor will change.  Press the LEFT mouse button and draw
	a rectangle, or press the RIGHT mouse button to abort the
	grab.  The grabbed portion of screen will be automatically
	loaded into XV for manipulation.

	Alternately, you can click the MIDDLE mouse button on a window.
	The window (and its frame) will be snarfed into XV.

	Used in conjunction with XV's extensive color manipulation thingys,
	you can now figure out the 'perfect' colors for your xterms, icons,
	xclocks, or any other thing you can get up on your X display.  Finally,
	a replacement for the program 'pikapix' from the ol' X10 days!

	For what it's worth, the Grab command doesn't work on Mac's
	running MacX in a 'rootless' mode, for semi-obvious reasons.
		(idea from: Arvind Sabharwal (arvind@brutus.ct.gmr.com))

Added Feature:  XV can now read RLE files (Utah Raster Toolkit format).

Added Feature:  'HistEQ' button in Color Editor window.  Performs 
	intensity histogram equalization on the CURRENTLY VIEWED
	PORTION OF THE IMAGE.  Occurs between the colormap editor and the 
	HSV modifier (in terms of the color editor data flow).  This
	command has the general effect of balancing the overall contrast
	of the image (increasing contrast on washed-out images, and 
	decreasing the contrast	on overly-sharp images, so to speak...)  
	It works best on grayscale images.  

	The keyboard equivalent is 'H' (capital 'h').

Change:	The 'MaxCn' (maximum contrast) button has been changed to a 
	'Norm' (normalize) button.  It expands the intensity range of
	an image so that the darkest pixels will be have an intensity
	of '0' and the brightest pixels will have an intensity of '255'.
	
	This is *almost*, but not quite, what it used to do.
	The keyboard equivalent is now 'N' (capital 'n').

Added Feature: You can now Load files from a pipe by having the first 
	character in the Load box filename thingy be a '!' (or a '|').
	For example, you can Load "! bggen -s 400 -w 400 0 0 255".  
	XV will run the	specified command, saving its standard output to 
	a file, and then load this file.  (The stdout produced must still 
	be in one of the recognized image formats.)  You could use this get 
	an image from a	video digitizer or scanner, assuming you have the 
	appropriate filter program written.

	You can pipe multiple commands together, as well.  For example, 
	you can Load "! xwd | xwdtopnm" to take a snapshot of a window
	and display it, though given the new Grab command, this isn't
	such a great example...

Change:	The 'Save to pipe' feature is now specified by starting the 
	filename with *either* a '!' or a '|' character, to 
	be consistent with the 'Load from pipe' command.


Added Feature: exciting new 'zoom' and 'unzoom' commands!  To use
	them, hold down the 'control' key, and move the mouse into the
	image window.  A Left click will zoom in by a factor of two,
	centered on the mouse position.  A right click will zoom out
	by a factor of two (if possible), centered around the
	currently displayed subimage.  These commands can easily
	replace the Crop/UnCrop commands for casual users.
			(idea from: Dan Zehme  (dan@mordor.webo.dg.com))

Added Feature:  'include preview' check box added to postscript dialog
	box.  Let's you write ps files without the preview, to save
	some space.  (resource name: 'pspreview', type boolean)
	
Added Feature:  all xv windows are closed if you iconify the image window
	(or the controls window if you're in a 'root' display mode).
	All closed windows will be reopened when you deiconify the image
	window (or controls window).  One misfeature:  only the 'main'
	xv windows (image, controls, info and color editor) will retain their
	screen position.  The various 'pop-up' windows will not.  To be
	dealt with at a later time.

Enhancement: Support for 4" x 5" and 35mm postscript film recorders added

Enhancement: Increased size of control window to make room for 
	'24-bit conversion' menu button.  List now displays 11 names
	instead of 9.

Enhancement: Hooked in the new version (3.0) of the TIFF library.

Bug fix:  more bug fixes to the 'slow' 24-to-8 algorithm

Bug fix:  if loading a truncated interlaced GIF file (not that I recommend it),
	XV will no longer clear from the 'current line' to the bottom of the
	image, which would overwrite valid image data
				(Dean Elhard  (elhard@system-m.za05.bull.com))

Bug fix:  memory leak in the '-slow24' code discovered and fixed.
				(Dean Elhard  (elhard@system-m.za05.bull.com))



Rev: 3/17/92    (version 2.12)
-----------------------------
Added Feature: 'save at normal size' checkbox in save window.  When
	turned on, images will be saved at their normal, unexpanded
	(and *unshrunk*) size, subject to the current cropping and
	rotation.  Note: The Dither and Smooth commands operate on
	expanded images.  (In fact running Smooth on a 1:1 image
	should have no effect.)  AS SUCH, images saved at 'normal size' 
	will be saved 'Raw'.  (Resource name: saveNormal  type: boolean)

Added Feature:  You can now change 24-to-8-bit algorithms 
	(ie, quick24, slow24, best24) while running the program 
	(via a pop-up menu button).

Added Feature: '-nolimits' option (and 'nolimits' resource).  If set, there 
	are no limits on the size of the image (beyond the X-imposed 64K 
	by 64K).  WARNING:  Be *very* careful when using this option and 
	playing	with cropping, as it's dangerously easy to accidentally 
	generate a HUGE image, and crash XV, the host machine, your X server, 
	or all three.  USE AT YOUR OWN RISK!
				(Tero Kivinen  (kivinen@joker.cs.hut.fi))

Enhancement: X images (on 8-bit displays) are now generated so that
	scanlines are a multiple of 32 bits long.  This should avoid 
	problems with certain broken X libraries and/or servers that 
	weren't doing the image format translation correctly.
		 		(Jeff Coffler  (coffler@jeck.amherst.nh.us))

Enhancement: Changed scrollbar behavior: Now, when you drag the
	indicator, the list that the scrollbar controls is updated
	while you drag.

Enhancement: when choosing a new directory (in the save menu), xv now remembers
	the 'suggested' filename to save under, instead of clearing the 
	text entry doodad.

Enhancement: Upped maximum number of files in control window list (and
	therefore, on the command line) to 4096 (from 1024).

Enhancement: Hooked in the new version (3.0) of the JPEG libraries.  Most
	relevant change: when loading JPEG files ONLY, the 'quick' and
	'slow' 24-to-8	algorithms are now performed by the JPEG
	software.  They seem to be every bit as good or better than
	the XV algorithms.  The 'best' algorithm still falls through
	to using the ppmquant-based algorithm in XV.
				(Tom Lane	 (Tom.Lane@g.gp.cs.cmu.edu))
				

Change:	by default, the 'keepAround' flag is now set to 'true'.
	Now, xv will hang around if you delete the last file in the
	controls list.  (-keeparound toggles this flag on and off, and
	the keepAround resource still behaves the same way.)


Bug fix:  Compound resources (eg 'xv.preset1.satval') weren't getting properly
	set on certain systems.
				(Dean Elhard  (elhard@system-m.za05.bull.com))
				
Bug fix: XV will now (potentially) run 'better' under DXWM.

Bug fix: 'Reduced Color' images weren't saving as such in either the
	PPM or TIFF formats.  (They won't in JPEG, either, but trust
	me, you don't want to save reduced color images in the JPEG
	format...)

Bug Fix:  numerical inaccuracies in HSV modification part of color
	editor were causing certain colors to be lost  (eg, an input of
	(254,254,254) was coming out (253,253,253), even when everything 
	was set up to do a 1:1 mapping.)

Bug Fix:  minor memory leak in KillOldRootInfo() fixed.



Rev: 3/4/92    (version 2.11)
-----------------------------
Problems with Imakefile fixed.		(David Brooks  (dbrooks@osf.org))

Problems with SetISTR() function declaration fixed.
					(David Brooks  (dbrooks@osf.org))

Compiler noise shut up		(Phil Karlton  (karlton@fudge.asd.sgi.com))


Rev: 2/26/92   (version 2.10)
-----------------------------
Generate updated documentation, this time on a Mac running System 7.  The
	generated postscript *may* be cleaner.  I hope...

Incorporated Anthony Datri's PDS/VICAR file reading code

Added '-rv' option (and 'reverse' resource).  Displays 'negative' images
	(white becomes black, black becomes white, and colors do 
	interesting things).  

Bug fix:  shifted arrow keys (for adjusting cropping rectangle size) didn't
	work on Sparcstations running OpenWindows.



Rev: 2/22/92   (version 2.06)
-----------------------------
Added whizzo new colormap editing feature.  Click on a color cell with the 
	left mouse button.  Now click on another color cell with the middle
	mouse button.  All colorcells in between these two colorcells will
	be interpolated between these two colors.

	For example, view the 'default' image by just running 'xv' without
	any options.  Open the color editor window, left-click on the first
	colorcell, and turn it 'red'.  Left-click on the 64th colorcell
	(the rightmost cell on the last complete line of the colorcell grid),
	and turn this colorcell yellow.  Now, middle click on the first
	colorcell.  Voila!  Niftily interpolated reddish yellows.  Neato!

Added 'reload on signal' feature.  If you send the XV process a 'QUIT' signal
	('kill -QUIT <pid>', or 'kill -3 <pid>' on most systems), the program
	will reload the currently selected file.  (The one that is currently
	highlighted in the xv controls window filename list.)  This behavior
	is exactly the same as hitting '<return>' in the xv controls window.
	If XV is currently in a state where hitting '<return>' in the 
	controls window won't load an image (ie, some pop-up dialog box is
	grabbing all such events), then sending this signal won't work either.

	Note:  it also won't work if the current file was read from <stdin>

Changed way 'uncrop' works to limit 'drifting' of windows when cropping and
	uncropping.  Also, puts window back where it belongs when you load
	a new image.

When cropping, Raw/Dithered/Smooth status of image will remain the same.
	When uncropping, however, it will revert to 'raw', given how long
	the dither/smooth operations can take on a potentially large image.

Now tracks x,y coordinates of handles in the 'graph' windows of the color
	editor window, for precise placement.  Also, you can now move a
	handle through all 256 x and y positions, not just the 'even' values.

Bug fix to 24-to-8 code.  (Would crash on a 1-bit display.)




Rev: 2/13/92   (version 2.04)
-----------------------------
tracked pixel values strings are now put in the 'cut buffer' with a trailing 
	'\n' character

'-black' and '-white' options now affect how all 1-bit b/w images are 
	displayed, no longer just used in conjunction with '-ncols 0'

Added command line options '-quick24', '-slow24', and '-best24' to select
	different 24-to-8 conversion algorithms.  'slow24' is the default.
	(Also, 'quick24' and 'best24' boolean resources)

Added the 'ppmquant' 24-to-8 bit algorithm ('-best24' option).  Note that 
	this algorithm is *much* slower than the so-called '-slow24' algorithm.
	The major difference is that this algorithm will produce good-looking
	undithered images, whereas the 'slow24' algorithm dithers.

Fixed various bugs in the '-slow24' 24-to-8 bit algorithm.

Added '-cecmap' option (and 'ceditColorMap' resource) to specify whether or 
	not to install the image's colormap in the color editor window

TIFF i/o routines added		(Sam Leffler  (sam@sgi.com))

Added a 'browse' button in the Load window.  Lets you change the 'browse mode'
	interactively, while the program is running.  (See '-browse' option
	below.)

Added 'autoApply', 'displayMods' and 'autoReset' resources to control initial
	settings of respective checkboxes in the color editor window.

Program is less likely to gratuitously clear the image/root window if you are
	on a non-PseudoColor/GrayScale display

increased size of 'OutCode[]' array in gif reader.
				(Rolf Mayer  (rz90@rz.uni-karlsruhe.de))

load/save window used to crash if you had a directory with 'too many' files
				(Craig McGregor (CRAIG@csdvax.csd.unsw.EDU.AU))


Rev: 1/24/92  (version 2.01)
-----------------------------
Added '-crop' option (and 'autoCrop' resource) to do the 'autocrop' command
	automatically whenever an image is loaded.

Added '-browse' option (and browseMode resource).  Keeps the Load window
	from being closed after succesfully loading a file.  

Added '-nostat' option (and 'nostat' resource) to speed up Load/Save
	windows.  Prevents the program from doing 'stat()' calls when you
	change directories.  (Useful for systems with a lot of remote
	files, where doing the stat() calls takes 'too long')
	Downside:  it won't be able to mark directories with a 'folder'
	icon, as it won't *know* that they're directories.

added '-noresetroot' option (and 'resetroot' resource).  Let you turn off
	the 'clear the root when switching from a root mode back to 
	window mode in the display modes menu' behavior.  Useful for checking
	your cropping, if you're working on a 'mirrored' root background
	(or something)		(David Elliot  (dce@smsc.sony.com))

added a 'rescan' button in the Load and Save windows.  Rescans the current
	directory.

fixed up GIF89 parsing somewhat.

fixed bugs in xvAllocColor() that would show up if running XV on a TrueColor
	display.

PostScript files written in B/W Stipple weren't correct
			(Peter Glassenbury  (pete@cosc.canterbury.ac.nz))

SortColormap() function in xvcolor.c sped up 
			(Dave Jones  (jonesd@kcgl1.eng.ohio-state.edu))

fixed problem with 'cropping rectangle' not being drawn correctly.

Loads current directory only when opening the Load/Save windows, not 
	when the program starts up.  This is to improve startup time.

Reloads current directory when you do a 'Delete file' command, just in
	case you deleted a file in the current directory.

'hints' handling improved.  When controls/info/coledit windows are closed
	and reopened, they reappear where they *were*, not where the 
	original geometry spec put them.

FREAD and FWRITE macros in jinclude.h renamed, to avoid conflicts.

problems with 'XLookupString()' on VMS and AIX fixed
				(Dave Jones  (jonesd@kcgl1.eng.ohio-state.edu))

patches for Sequent machines	(Scott Erickson (sources@sherlock.ics.uci.edu))

Added 'fsQuick' code.  Dithers (on 1-bit displays) 2 to 3 times faster
	than the old code.  Looks about as good.
				(David B. Rosen  (rosen@cns.bu.edu))

code for 2-bit displays (so to speak :-) added
				(Marc Kossa  (M.Kossa@frec.bull.fr))

bug in parsing '-dither'/'-display' fixed
				(Nigel Pearson  (nigel@socs.uts.edu.au))

Fixed crash if you hit 'return' while xv was running with no file names.

fixed potential memory leak on systems where XDestroyImage() doesn't
	free the image data, only the structure.

fixed '-fixed' option

fixed bogus Macintosh prolog file in PS documentation.

8-bit characters in PS documentation turned into properly-escaped
	7-bit characters.	(Reg Clemens  (clemens@plk.af.mil))

minor mods for RS6000		(Tom McConnel  (tmcconne@sedona.intel.com))

new (still unsupported) version of VICAR/PDS file handler added to 
	unsupt/ directory	(Anthony Datri  (datri@concave.convex.com)

fixed segmentation fault in openPic()	(Jimmy Aitken  (jimmy@pyra.co.uk))

fixes for Pyramid BSD machines		(Jimmy Aitken  (jimmy@pyra.co.uk))

fixed 'tolower' bug in lower_str function (Rich Thomson (rthomson@dsd.es.com))

patches for AUX systems

some ANSI C complaints quieted 	   	(Jamie Zawinski (jwz@lucid.com))

fixed WM_DELETE property problems  	(Jamie Zawinski (jwz@lucid.com))

Changed occurrences of string 'basename' to 'basefname' to avoid conflict on
	certain systems, and fixed a bug in rd_int()
					(David Elliot  (dce@smsc.sony.com))

fixed bug that could cause window to move bizarrely on a 'Max Size' command

make 'clean' dependancy added to Imakefile  
			(Rainer Klute (klute@irb.informatik.uni-dortmund.de))




Rev: 1/2/92  (version 2.00)
-----------------------------
*** SUN Rasterfile support         (Dave Heath  (heath@cs.jhu.edu))

fixed unclosed comment in xv.h	   (Paul Close (pdc@sgi.com))

fixed infinite loop in Imakefile   (Kjetil Jorgensen  (jorgens@lise.unit.no)

fixed problems in Imakefile (bitmaps.h wasn't being rebuilt)
				(Jonathan Kamens  (jik@pit-manager.mit.edu))

additional bug fixes/workarounds for 24/32-bit TrueColor displays
				(Dave Gregorich (dtg@csula-ps.calstatela.edu))

include string.h or strings.h based on 'SYSV' flag
				(Kevin Brown  (brown@hpbsm15.boi.hp.com))

bogus command line parsing ('-autogamma' wouldn't work)
				(Doug Washburn  (washburn@hpmpea2.cup.hp.com))

fixed 4-bit X code to work on MSBFirst machines
				(Stefan Esser  (se@ikp.Uni-Koeln.DE))

mods for HPUX 7.0		(Jan D.  (jhd@irfu.se))

added window classes 'XVroot', 'XVcontrols', 'XVdir', 'XVinfo', and 'XVcedit',
	so Motif users can do things like this:

	Mwm*XVroot*clientDecoration:            none
	Mwm*XVcontrols*clientDecoration:        -resizeh
	Mwm*XVdir*clientDecoration:            -resizeh -maximize
	Mwm*XVcedit*clientDecoration:           -resizeh -maximize
	Mwm*XVinfo*clientDecoration:            -resizeh -maximize

	Also, WM_DELETE_WINDOW is now set up in the WM_PROTOCOLS 
	property, allowing the 'close' menu selection under MWM to
	close an XV window without terminating the application.
				(Jan D.  (jhd@irfu.se))

slow 24-to-8 conversion was moving the image down 1 scan-line
				(Satoshi Asami  (asami@is.s.u-tokyo.ac.jp))

mods for MIPS machines	  (David Boulware  (dgb@landau.phys.washington.edu))

Ability to LOAD pictures that weren't specified on the command line

fixed bug in CheckForConfig()

twm workaround from patchlevel 2 now only turned on if '-twmkludge' option is
	specified.  Was causing problems on OpenLook 2.0 systems

directories and symbolic links are now sorted together at the top of
	the 'xv directory' list

fixed crashes when 'AutoCropping' in conjunction with '-root' option

file format/color buttons in Directory window are now set whenever an image
	is loaded.  (Set to the format/color of the loaded image.)

clicking anywhere inside the Info box will now close it

added support for up/down arrows, page up/down, home, and end keys when
	mouse is in control window or directory window (for operating
	the scrollable list thingy)

changed 'Return' key binding to mean 'display currently selected picture'
	rather than 'Next'

added binding of Tab key to 'Next' function

'-wait' now waits until picture is fully up on screen before starting timer

'-wloop' option added.  Causes '-wait' slideshow to loop at end

added 'hagan-style' tiling on the root window.  '-root', '-center', and
	'-rpat 0'  (the default) will now draw an image centered on the
	root window, with images going off the screen in all 4 directions

	(Unlike 'normal' ('-root' only) tiling, which has one image
	pinned in the top-left corner of the screen, and subsequent
	images going off the screen ONLY on the bottom and right sides)

added '-maxpect' option.  (An abbreviation for '-center -fixed -max')
	makes the image as large as possible, without changing the
	aspect ratio.  Only relevant when used in conjunction with 
	'-root'.  (When not using '-root', both '-max' and '-maxpect' do
	the same thing (as large as possible without changing the aspect).
	When USING '-root', '-max' makes the image the size of the screen,
	in all likelyhood changing the aspect ratio)

added '-olwm' option (and xv.olwm resource) for people using Sun's OpenLook
	window manager.  Makes the window behave correctly when resized via
	any of the xv resizing commands.

added new, slicker-looking icon.  The old one was outside Motif's accepted
	range of icon sizes.

SMOOTHING controls (Smooth, Dither, and Raw buttons) added

added '-cursor' option (and xv.cursor resource).  Allows you to pick a 
	different cursor for the image window (instead of the 
	default crosshair cursor)

various modifications to work somewhat better with tvtwm (or other
	virtual window managers)
		Hitoshi Saji	saji@is.s.u-tokyo.ac.jp
		Tetsuya Ikeda	tetsuya@is.s.u-tokyo.ac.jp
		Satoshi Asami	asami@is.s.u-tokyo.ac.jp

fixed up some multiple-redraw bugs, for improved speed

Added spiffy 'hue' and 'saturation' dials to cedit box

New format for '-GAMMA' command line option and gamma resources.  Fully
	specifies state of gamma controls, including 'lines/spline' and
	'rgb/hsv' modes

Improved 'undo' handling in Gamma box.

Added 'reduced' color save.  Used in conjunction with the '-nc' command
	line option.  Saves the image more-or-less 'as shown', rather than
	"as it's supposed to be".  For example, you can now save bizarrely
	stippled pictures by doing something like '-nc 0 -wh red -bl blue'
	on the command line, and then saving the image in 'reduced color'.


added '-adither', '-asmooth' options (and 'xv.autoDither', 'xv.autoSmooth'
	resources) to automatically dither or smooth the image upon 
	loading it.  Mainly for use the case where you want XV to 
	load an image onto the root window and go away without any user
	intervention.  (Like you might put in a startup script.)

added some X error handling so that XV doesn't blow up (ungraciously) when
	you're using '-root' on an X terminal that doesn't have enough
	memory to do a full-screen root image

code reorganization:  xv.c and xvmisc.c have been split into (xv.c, xvevent.c,
	xvroot.c) and (xvmisc.c, xvimage.c, xvcolor.c, xvsmooth.c) 
	respectively.  The files were getting annoyingly large.

added colormap editing capabilities to the gamma box
	Colors can be edited in either HSV mode or RGB mode
	You are modifying the original colormap of the image, BEFORE
		the '-mono' or '-rv' options are applied, BEFORE
		any GAMMA correction is applied, and before it's
		determined how to get the image on the screen.
		As a result, it's best to edit colors when the GAMMA
		controls are set to 'Linear'
	You can select the color to be edited by clicking in the colormap
		area of the GAMMA box, or by clicking in the image window
		(in which case the color selected will match the last pixel
		value you displayed)
	Using '-rw' mode will generally speed things up, but isn't
		necessary.

added colormap 'grouping'.  Use Button3 to add/delete color cells from the
		current group.  Hold shift key down and the image regeneration
		will be delayed until you let go of the shift key.  (normally
		the image would be redrawn every time you released Button3.)
		This allows you you quickly group multiple pixels.

added 'cut buffer' usage.  Whenever you track pixel values (by clicking the
	left button in the image window), the last pixel values are put in 
	the X cut buffer, so that you can paste them into your own program,
	an xterm window, or whatever.  Useful if you're using XV to choose
	'points-of-interest' to be used as input to another program.

	Also, if you click on the gamma values (above the graph in the 
	gamma window), those values will be put in the cut buffer as well.
	(Handy for setting default values for the Gamma resources.)

added a slightly-improved 'cropping' rectangle.  Should show up better on some
	pictures.

added hsv pixel display.  When tracking pixel values in the image window
	(with the left mouse button), the values will either be displayed
	as R,G,B components (0-255), or as HSV components (0-359, 0-100, 0-100)
	This is based on the setting of the HSV/RGB switch in the Gamma box.

added a 'Randomize Colors' button.  (keyboard equiv: 'R').
	Causes the entire colormap of the current picture to be
	randomized.  Groupings *will* be respected, however.  (ie, all pixels
	in a group will still have the same color, albeit a new one).  For
	amusing effects, do some by-hand color reduction (by grouping all
	similar colors), then do the randomize function.  

added an 'Undo All' button in the Gamma box.  Undoes all changes made to the
	image's colormap and clears all groupings.

added '-hsv' and '-rgb' switches (and xv.hsvmode resource (boolean)) to
	allow user to set initial hsv/rgb mode.  By default, program uses
	RGB.

fixed 'shift key' bug with regards to entering filenames in dir window

'enter' in file i/o window now opens the currently selected directory

fixed bugs on 1-bit displays (fish cursor didn't flap during re-ditherization,
	CMap wasn't properly refreshed after loading new pic)

Smooth/Dither now sets 'Current Size' RButt in file i/o box.  (Need to save
	at current size to save 'smoothed' picture.)

BadAccess errors cause by XFreeColors are now ignored, as this is simply a 
	sign of a busted X server, and happens when multiply-allocated 
	colors are freed more than once.  (like they're supposed to be)
	Should make '-bfc' option obsolete.

Current Size RButt ripped out.  (Always saves at current size)

flapping fish cursor added during PBM/PGM/PPM file i/o

created GRAF type

MASSIVE modifications to GAMMA box

Gamma box renamed 'Color Editor' box ('cedit')

Added direct numeric gamma input to GRAF boxes

Created HDIAL controls

Changed non-range HDIAL to be a hue/saturation control

Created CBUTT check boxes

Added 'drag the whole range around' feature in range HDIALs

Added -nopos, -fgeom, and -fmap command line options (and resources)

Fixed 'crop near corner' graphics bug

Fixed multiple redraw bug, with any luck.

Added '-2xlimit' option and resource.  Allows the image window to be larger
	than the screen (up to 2x).  *NOT* recommended unless your WM
	is capable of operating windows without visible borders.  (ie, you'll
	need some meta-mouse-button action, ala twm/uwm...)

Added rudimentary GIF89 reading.  (Jon Brinkmann, jvb7u@astro.Virginia.Edu)

Changed ISTR_INFO to be more to Hagan's liking.  
	(eg  "320x200 GIF87.  Got all 37 colors.")

Fixed some probs in xvsunras.c
	(didn't understand RT_FORMAT_RGB, and RT_BYTE_ENCODED 8-bit
	 rasterfiles didn't load correctly, nor did it handle odd-width
	 24-bit images correctly)

Added POSTSCRIPT OUTPUT and PostScript Box  (7/6/91)
	Drag the image window around on the page with the mouse.  The scale
	controls are used for stretching.  Note:  if you use the arrow keys
	(regular and shifted), you can get precise positioning control.

Added GIF89 aspect ratio handling, warning message about skipped extensions,
	PlainText block handling (doesn't do anything with it)

Ripped out the '-fish' option and related code.  Never worked right anyway.

Added ability to type long strings in 'filename' field of dir box.

Split 'file i/o' button into two buttons 'Load' and 'Save'.  Directory box
	is now either a 'Load box' or a 'Save box', depending.  (^L and ^S
	are the accelerators).

Added ability to type pathnames in 'filename' field.  And 'cd-ing' to different
	directories directly without going through pesky UI.

Added 'popup' windows.  (The computer seems to be on fire.  <Ok> )

Stretched ctrlW so that 'helvetica' font would still fit (Ultrix 4.2 doesn't
	include 'lucida' still...)

Added 'close' (via mwm menu) handling to PostScript window and PopUp window.

Added wait cursor during directory-reading (whenever you change directories)

Fixed PostScript file output (to have correct comments)

Added 'maxpect' button in PS window.

Hooked up remaining buttons in ColEdit window  (undo, redo, 
	brite, dim, sharp, dull)

Got rid of 'recolor' operations when non-visible changes made to Graf's
	(changes of less than '2' aren't visible due to coordinate halving)

Added 'max contrast' button to gamma window

Added 'C' and 'R' keyboard equivs for 'MaxCnt' and 'Reset' respectively

Added 'default' picture (xvdflt.c)

Added 'Flip H' and 'Flip V' buttons ('h' and 'v' keyboard equivs)

Redesigned ctrl window somewhat

When you 'Load' files (via the Load dialog box), the file names are stuck
	in the 'ctrlW' list for E-Z Re-Viewing...

Added ability to 'reload' current picture (by double clicking on its entry
	int the ctrl window list)

Added 'Delete' command.  ('^D' keyboard equiv)

Mods to work (better) on Apollo systems
				(Robert Goodwill (robert@earth.cs.jcu.edu.au))

Added support for 16-bit displays
				(David Elliot    (dce@smsc.sony.com))

Improved 24-to-8 color compression routines
				(Tom Lane	 (Tom.Lane@g.gp.cs.cmu.edu))

Improved color selection algorithm
				(Tom Lane	 (Tom.Lane@g.gp.cs.cmu.edu))

Flag resources now accept 'on', '1', 'true', 'yes' in either u/l case
				(Chris Weikart   (weikart@prl.dec.com))

Fixed potential overflow bug in linear interpolation code
				(Chris Weikart   (weikart@prl.dec.com))

Added Motif-Style 3-d buttons

Added 'Auto-Reset' check box in ColEdit window

Optimization to ColEdit:  if changing a control hasn't actually
	affected the 'desired colormap', don't bother applying the change

Changed 'graf' controls:  you can now hold down the shift key and modify them
	to your hearts content.  The image is not actually recomputed until
	you let go of the shift key.

Added '-hi' and '-lo' options ('highcolor' and 'lowcolor' resources) for 
	setting the 'other' two colors on the buttons.

Added '-v' option ('visual' resource) to allow the user to force XV to use a
	specific visual type, rather than the server default.

Added gamma resources.  Hooked up 'Get Resources' button (copies current
	gamma settings into the cut buffer)

Ripped out '-tile', '-center', and '-rpat' options.  Replaced them with 
	'-rmode' option ('rootMode' resource)

Added mirrored tiling and integer mirrored tiling root modes.

PopUp window now pops up with the right-most button centered under the mouse,
	rather than in the middle of the screen.

Added '^D' accellerator key (for 'Disk File') in the 'Delete What' PopUp box.

Changed '-asmooth' and '-adither' to '-smooth' and '-dither', respectively.

Added stricter command line argument matching.  '-snausage' no longer would
	match the '-s' flag.

Changed way '-expand' (and 'expand' resource) works.  Now takes floating
	point number.  For backwards compatibility, negative numbers are 
	still treated as reciprocals.  (ie, both '-2' and '.5' will halve 
	the image)

Created 'MBUTT' pop-up menu widget.

Added 'Display Modes' popup button.

Fixed bug when using '-perfect'.  The XCopyColormapAndFree() function had the
	rather undesirable side effect of getting rid of the allocated
	colors used for the various windows, etc. (ie, more than the
	image colors)

Made 'Hagan-Style' tiling (aka, Centered Tiling) much more efficient
				(Robert Potter  (rpotter@grip.cis.upenn.edu))

Made the 'directory' listing in the load/save box use an MBUTT.

Added JPEG support.		(Markus Baur  (s_baur@iravcl.ira.uka.de))
				(and, of course, the Independent JPEG Group)

Added '-keeparound' flag (and 'keepAround' resource).  By default, if you
	'delete' the last file remaining in the ctrl window list, 
	the program will auto-exit.  This option overrides that behavior.

Ripped out '-fgeom' and '-fmap' options (and 'fileGeometry' resource).
	Load/Save boxes now come up wherever the mouse is.

Wrote OpenOutFile() and CloseOutFile() routines to unify redundant code
	in 'DoSave()' and 'writePS()'

Added 'piped' output.  (ie, save file "| lpr")

Added 'Alert' boxes (button-less PopUp's)

Bug fixes when loading/saving '~' files

Fixed PS output to be Encapsulated PostScript compatible

Added a faked 'colorimage' procedure for grayscale PS printers.
	(Color postscript files will print on non-color printers, albeit in
	 grayscale.)

New Window positioning code.  Should work for (nearly) all WMs.
				(Matthew Stier  (matthew@sunpix.East.Sun.COM))

Automatically smooths images that were 'shrunk' (2x, 4x, etc...)

Bug fixes to the JPEG i/o code.	(Tom Lane  (Tom_Lane@G.GP.CS.CMU.EDU))

Fixed problem in xv24to8.c with the Floyd-Steinberg dithering code.
				(Charles Hannum  (mycroft@gnu.ai.mit.edu))

Modified 'Delete' behavior.  Only loads an image if you deleted the
	currently-viewed image.

Changes the suffix of the filename in the 'save window' when you change 
	file formats.

Got rid of 'Quit XV' buttons in load and save windows

Added extra verbiage to JPEG save window.

Dicked around some more with window positioning code.  Seems to work
	correctly in TWM and MWM.  Hopefully, it'll work in OLWM as well.

Added Makefile options and xv.h #ifdefs for Encore's UMAX 
	version of Unix System V.	(Drew Watson  (dwatson@encore.com))

Added '-owncmap' option (and 'ownCmap' resource) to make XV *always*
	use/install its own colormap.	(Bill Turner  (bturner@cv.hp.com))


Rev: 11/29/90  (version 1, patchlevel 3)
-----------------------------

Changed 'CCOPTIONS' to 'DEFINES' in Imakefile

Fixes for use with virtual root window managers (ie, tvtwm)
	(only cares about virtual root when using '-root' option,
	 negative geometry's correctly handled.)
			(Andreas Stolcke   (stolcke@ICSI.Berkeley.EDU))

Modifications for Sequent machines (no 'mem*() routines)
			(Daniel Pommert    (daniel@ux1.cso.uiuc.edu))

Modifications to avoid bug in certain optimizers, most notably the default
optimization (-O) in Sun's C compiler.  (Incorrectly handles lines of the
sort "*p = array[*p]")

Modification to get around 'when I shift my arrow keys (to adjust the
cropping rectangle), my keyboard generates numbers instead' problem
			(Mark Horstman     (mh2620@sarek.sbc.com)

Modification to allow 'xsetroot' and 'xloadimage' to cleanup any
xv-displayed images in the root window, and vice-versa.
			(Richard Bingle    (bingle@cs.purdue.edu))



Rev: 11/26/90  (version 1, patchlevel 2)
-----------------------------
added workaround for 'X Protocol Errors' on broken servers (XFreeColors())
	(see the '-bfc' option)
fixed core dump when cropping on certain displays
misc. #ifdefs for HPs
fixed problem with fish cursor remaining around too long
more SVR4 #ifdefs			(David Elliott,  dce@smsc.sony.com)
fixed bug in tracking pixel values	(Bob Finch,      bob@gli.com)
misc #ifdefs for ISC 386/ix 2.0.2	(Mark Snitily    mark@zok.uucp)
misc #ifdefs for AT&T machines	 	(Eric Raymond   eric@snark.thyrsus.com)
misc #ifdefs for Silicon Graphics       (Paul Close     pdc@lunch.wpd.sgi.com)
Added POSIX signal handling		(Mike Patnode   (mikep@sco.com))
Port to SCO UNIX/ODT			(Mike Patnode   (mikep@sco.com))

fixed problem with using '-max' and '-fixed' at same time
			(Greg Spencer   greg@longs.lance.colostate.edu)
modification to work with Virtual Root Windows (ala swm and tvtwm)
			(Bill Kucharski  kucharsk@solbourne.com)

the 'save-as' filename is now set to the 'current' filename

Also, if you double click on 'plain' files in the directory box,
	it will set the 'save-as' filename accordingly.

Added ability to view images centered on the root window, without
	any tiling.  Added associated options ('-center', '-rfg', '-rbg',
	and '-rpat')

Workaround for twm 'No title bars' bug  
			 (Steve Swales  steve@bat.lle.rochester.edu)

Bidirectional Rotate commands added

Maxpect command added:  (Maximum size, but preserve aspect ratio)

AutoCrop command added:  (Crops out solid borders.)

Potential support for 32-bit displays.  (Hasn't been tested.  Don't have one.)


Rev: 10/17/90   (version 1, patchlevel 1)
------------------------------
Imakefile added			(David Elliot    (dce@smsc.sony.com))
System V release 4 mods		(David Elliot    (dce@smsc.sony.com))
Bug in 'quick check' fixed	(Arthur Olson    (ado@elsie.nci.nih.gov))
Mods for Convex machines	(Anthony Datri   (datri@convex.com))
'vprintf' module added 		(Jonathan Kamens (jik@pit-manager.mit.edu))
window creation bug fixed
added icon
fixed 'Input Focus' probs
added '-w' flag to bggen
various cleanups to shut up 'noisy' compilers


Rev: 10/9/90    (version 1, patchlevel 0  -  initial release)

