windows:

i686-w64-mingw32-gcc -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE winMain.o libtk86.a \
libtkstub86.a "/home/joye/saods9/tcl8.6.4/win/libtcl86.a" "/home/joye/saods9/tcl8.6.4/win/libtclstub86.a" -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 -lgdi32 -lcomdlg32 -limm32 -lcomctl32 -lshell32 -luuid -lole32 -loleaut32 \
wish.res.o -o wish86s.exe -mwindows -pipe -static-libgcc -municode

i686-w64-mingw32-gcc -sharded -o foo.dll foo.o bar.o "/home/joye/saods9/tcl8.6.4/win/libtclstub86.a" -static-libgcc

good
	tcl
	tk
	tkmpeg

bad
	tcliis
	tclcheckdns
	tkblt

Ports:
	kendall			MacOSX 10.8 Mountainlion (12.6.0)
	wonderland		MacOSX 10.9 Mavericks (13.4.0)
	riverside		MacOSX 10.10 Yosemite (14.3.0)
	bokhara			CentOS-6.x 64bit
	mond			CentOS-5.x 64bit
	quango			CentOS-5.x 32bit

Website:
	bokhara:/proj/web-ds9
	ds9:/var/log/httpd

Source:
	ast		http://starlink.eao.hawaii.edu/starlink/AST
	wcssubs		ftp://cfa-ftp.harvard.edu/pub/gsc/WCSTools
	wcslib		http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/
	funtools	/data/mmti/CVSROOT
	pcc		http://pcc.ludd.ltu.se/
			http://pcc.ludd.ltu.se/ftp/pub/pcc/
			http://pcc.ludd.ltu.se/ftp/pub/pcc-libs/
	tcc		http://bellard.org/tcc/

Build:
	# cvs- back out changes
	cvs update -j 1.5 -j 1.4 foo.c
	# reset sticky tag
	cvs update -A

HTML Comment: <!-- something -->
	
Future:
	Macosx printing
	Win32

	XPAInfo
	WCS Editor/Astrometry.net
	Documentation/Tutorials
	Catalog
	  To Image/3d cube
	  Editing (add/delete)

	GUI editor Button/Keystroke
	1D SpecFrame

	CDS HIPS
	VO Image Archive
	VO/Chandra Footprint server
	FOV (http://aladin.u-strasbg.fr/java/FOVs.xml)

	Illustrate mode
	Non-Model File Browser
	FITS structure viewer
	2D surface plot
	3D axis cut->new 2D image

List
	-7.4

	Jouni issue
	Milan issue
	fix blt line render proc
	mosaic iraf orientation pref (LSST)
	tile prefs
	  grid mode
	  grid direction

	ime
	  clear frame, load image
	  change 3d slice, update stats, hist, radial, plot2d
	  buttons (statscircle,etc)
	  change task, change cursor for all frames without data update

	  edit params dialog(s)

	xpa analysis regions
	  select task
	  select position
	  change params
	  dump text,plot

	-Users Requests

	Alexey- init file
	Alexey- redshift units (see email)
	Diab- bin center from data if no TLMIN/MAX
	Bringfried- RGB frame saveimage fits as fits data cube

	-Bugs

	[ds9|?]parser.Y allow 1e-01" and 1e-01' for vvalue
	toggle frame (with mosaics) infobox blinks out
	when rebin, update wcs param dialog
	Fix updating graphs while rotate/zoom/pan
	Panzoom- update dialog while rotate/zoom/pan
	small pixel problem (Alexander Menshchikov)
	make sure image server dialogs are below when saveas
	bin bin table 3d, smooth, rebin
	rgb, current blue, cut paste regions
	display header mosaic (one line if all the same)

	-3D

	regions
	  compass
	  arrows
	  numerics
	  fix
	    contours shift in magnifier
	  wcszoom for point regions
	Magnifier-  bitbit off by .5?
	magnifier cursor
	lock frame (pan problem)
	panner/widget blank issue while rotating: only at vp=0,0 and depth=1
	mosaics
	macros $url() | $image(3d)
	zoom[0]!=zoom[1]
	fix 3d play/next in wcs (3d-5.fits)
	cleanup frame.C vs frame3d.C

	-Analysis

	Imexam/FWHM/surface plot (Paul Weissman)
	return which button from xpa analysis message
	ProcessAnalysisCmd- tests/analysis.sh
	group macro expansion
	add/replace mouse button analysis bindings.
	$web(http:chandra-ed.harvard.edu/rebin.html?$XPA_METHOD)
	marker analysis support($region (select))
	sort param variables to fix $sub vs $subimage problem
	$(shell variable) macro

	-Backup

	restore from dss saved image
	enable regions with plot3d set
	masks (per context: filename,color,mark)
        problem alloc/channel/socket/var loads
	  mecube
	  mosaicimage iraf/wfpc2
	  mosaic iraf

	-Binning

	if no TLMIN/MAX, scan data
	3rd axis reset after apply
	dialog specify buffersize
	dialog specify weight col
	bin from dialog, option to ignore bin center (Diab)
	(disregard TDMIN/TDMAX checkbox) Diab
	binning center with bin<1
	DS9_BINKEY
	rm cols restriction or define DS9_FILTER
	bin data cube- auto title
	add file[bin][filter] (depth, function, block, etc)
	binning-- too many updateClip() calls
	why scan each time bin? can we save min/max?
	bin add x:diminsion,y:diminsion to parser (ciao like syntax)

	-Blink

	blink mode with fast flash
	select which frames to blink
	non-modal dialog (simular to ximtool)

	-Block
	  mecube
	  crop

        -Catalog

	NonFK5 sky_in sky_out ICRS Comments
	---    ------ ------- ---- --------
	NED    yes    yes     no
	SIMBAD yes    yes     yes
	CDS    yes    yes     no   (no ecl)
	CXC    no     no      no
	SKYBOT no     no      no

	match
	  unique closest
	  error cols
	histogram plot
	clear/delete frame, close all catalogs
	load catalog via stdin
	filter local catalog at load

	-Contours

	parser to handle \r\n from load dos files
	dashed for neg
	clip contours to mosaic segment
	clip overlay contours to image boundries

	-Crop

	recal LTM/V, DATASEC keywords
	crop in WCS (extract/resample)
	smooth over crop only
	regions over crop only
        fix -crop x y w h wcs galatic arcsec issue
        mosaics? dialog (for each mosaic)

	-Cube

	histogram per slice
	reorder mosaic cubes
	add slice
	  mosaicimagewcs
	  mosaicimageiraf
	  mosaicimagewfpc2
	  mosaicwcs
	  mosaiciraf
	  array
	  nrrd

	-CYGWIN

	compile warnings
	segv at startup without window adjust (in panner parser)
	startup window size changes
	tiff/jpeg/gif/png load
	iconify
	io.sh
	  photo (XPA Stdin/Stdout)
	  nrrd (XPA Stdout)
	  rgbarray (XPA Stdout)
	  cubearray (XPA Stdout)
	  array (XPA Stdout)
	iraf windows problem (return filename in cygwin format)
	fonts
	  fk5 unicode (lack of deep .ttf fonts?)
	  marker times italic (lack of .ttf font)

	-IExamine

	only works for files

	-Fits

	gzip/compress/pack- use magic number instead of file ext
	gzip fits in/out (buffer size?)
	hduname support
	TNULLn ascii/binary tables
	FITS compression long long

	Problem cfitio gz files
	img_20131103_210146_2_10.0s_c1.fits.fz rice ZTILE2>1

	-Graphs (Horz/Vert)

	horz/vert cut across mosaic
	MacOSX print
	Windows print
	postscript print
	set range limits
	don't clip numbers on ends
	large numbers (500000 verse 5e5)

	-Grid

	grid publication bug (Kshitiz Mallick)

	-GUI

	tcl var for each (like hv)
	  analysis
	  markers

	full frame view (short cut)?

	buttons reorder
	cursor-to dialog
	menus params via shortcuts
	language textvariable
	  color (plot.tcl)
	  dlabel,clabel,dist,system,sky,skyformat
	get panner to generate 'EnterPanner' events during blink
	annotate frames with user specified name
	prefs 2/3 button mouse

	-HV

	back goes to top of page
	upgrade tkhtml?
	meta http-equiv="refresh"
	http://tkhtml.tcl.tk/index.html
	history/clear history
	multipart mime-	push no terminating str
	ftp soft links
	textarea with scrollbars
	print

	-IRAF/IIS

	update iis.c (imexam, unix domain name)
	problem with 'display dev$pix 1 select_frame-'
	imexamine problem with frames 10-16

	-MacOSX

	compile warnings
	pcc
	  lion
	  mountainlion
	  mavericks
	  yosemite
	pcc upgrade to 1.0
	fix saveas image
	fix saveas mpeg
	native print
	  image
	  plot
	  text

	-Masks

	bin table: block in/out
	mosaicimagewfpc2
	photo

	-MPEG

	FFMpeg
	fix quality
	gcc mpeg -O segv's

        -NRRD

	hex
	ascii
	bz2
	wcs

	-Printing

	Annotate prints with title/footnotes

	-Plot

	crosshairs in plot display coord, value
	symbol size
	errorbar cap size
	bar
	  outline color
 	  width

	-Radio data

	BUNIT (JY/BEAM, MJy/sr?, K?, W/m^2-sr?)
	BMAJ-major
	BMIN-minor
	BPA-angle
	  or
        HISTORY AIPS CLEAN BMAJ=  1.2500E-02 BMIN=  1.2500E-02 BPA=   0.00  
	take average of 3rd axis/area=JY/BEAM
	  C2200P80.fits
	  CenA-13cm.fits
	  I2200P80.fits
	  m82rad.fits
	  nvss.fits
	  q128.fits
	  radio.fits
	  ~/3data/lofar/*

	-Regions

	compass region issue (Gabrial Bihanin)
	  scale compass with zoom
	  add compass length to dialog
	regions dialog default coord sys prefs (Warren)
	line/vector/projection/ruler- coordinates diffs,angle,length
	clip to image
	renderXText- clip to widget
	regions tests for -format/-system/-sky
	projection region- add bin size option
	new copy/paste regions: copy into tcl var (both physical and wcs)
	regions std dialog
	  send/receive samp votable
	votable- composite
	ds9parser-  parse (hh mm ss [+-]dd mm ss)
	projection
	  delete/composite undelete/desolve no update
	  default coordinate systems for plots
	  specify method
	  accross mosaics
	FITS Regions
	  add HDUCLAS1
	  add MFORM1 support
	  add WCS support
	  gz fits
	  use current properties
	XPA/SAMP control over existing regions
	  change colors/properties
	  change default shape sizes
	  return ids when create
	  select last region created
	  groups- new/delete
	xy,saoimage,ciao-- use current shape,color,properties
	Tests
	  point region # pointsize=
	  composite # composite = 1
	  text # textrotate = yes

	-Template
	  segv for dss images

	-SAOTK

	 fonts (colorbar, panner, frame)
	   Tk_PostscriptFont
	   TK_CONFIG_FONT
	 TEA
	   rm hardcoded X11INCLUDE
	   doc
	   tests

	-Save Fits

	crop
	Edit Keywords (crop)
	IRAF keywords

	-Scale

	Lupton (2004) (STIFF program within the ASTROMATIC package)

	-Structure

	update install page
	rm updatestatic?
	merge macosx/win into saotk
	cubes share wcs
	absolute dir for mount point
	  tcl/tk lib
	  encodings
	  help
	  fov
	  source ?.tcl (ds9.tcl)
	64 bit FITS Fitsy++ fits keywords (test64bit.fits)
	clean up configure mods (use autoreconf)
	  html
	  tclxml
	  tcllib
	move filter strings from file.C to fitsimage.C
	  image[ext][sec]
	  table[ext][filter][slicefilter]

	-TEA

	doc
	  tcliis
	  tclcheckdns
	  tkmpeg
	test
	  tcliis
	  tclcheckdns
	  tkmpeg

	-UNIX

	compile warnings
	vfs mount point /tmp?
	  (alexeys problem with ssh mounted disks, can we use /tmp?)

	-Windows (mingw32?)

	::ttk::checkbutton vo.tcl (tri state check)
	clip regions
	glob?
	screen aspect ratio
	print dpi (for text)
	variable dashed lines
	  display
	  print
	$ds9 -url 'ftp://sao-ftp/foo.fits'	
	analysis tasks will not abort
	start on other drives than C:/flash drives

	-WCS
	  ast
	    getWCScrpix
	    getWCScrval
	    getWCScdelt
	    getWCSrotation
	    getWCSorientation
	  
	  TAB WCS
	  add RADESYS: FK4-NO-E/GAPPT/SUPERGALACTIC/HELIOECLIPTIC menus
	  solar SOLX/SOLY,HPLN/HPLT,HGLN/HGLT,HRLN/HRLT
	  wcs editor-  astrometry.net

	header	     define	keywords
	-----	     ------	--------
	TAN	     old SCAMP	PVx_y
	TPV	     new SCAMP	PVx_y
	xxx	     generic	PVx_y
	xxx	     autoastrom	QVx_y
	ZPX	     IRAF	WATx_
	TNX	     IRAF	WATx_
	TAN-SIP	     SIP	A_x_y,B_x_y,AP_x_y,BP_x_y,A_ORDER,B_ORDER
		     		AP_ORDER,BP_ORDER,A_DMAX,B_DMAX
	TAN	     SAO Plate	COx_y

	Problem FITS WCS Files
	  wcssubs ast wcslib
	  ------- --- ------
	  COD/COE/COO/COP (bad, yes, yes)
	  HPX (HEALPix) (no, yes, yes)
	  DSS (SAO) (yes, yes, no)
	  TNX (NOAO TAN + params) (yes , yes, no)
	  ZPX (NOAO ZPN + params) (yes , yes, no)
	  TAN---RA-SIP (SIRTF) (yes, yes, no)
	  SCAMP (SAO TAN + PV) (yes, yes(PV->QV), no)
	  TPV (NOAO TAN + PV) (yes, yes(PV->QV), no)
	  AUTOASTROM (xxx + QV) (no, yes, no)
	  WCSDEP (yes, no, no)

	STScI DSS
	  wcen.fits.gz

	OLD SCAMP (PVx_30)
	  ac42227_00_01ww_tnx.fits
	  ngc6819.fits

	TAN+PV (PVx_20)
	  paucam_0_0_t7_0_science.fits

	TAN+ PV2_1=0 PV2_2=0
	  IC2395_ch1_merged.fits
	  IC2395_ch2_merged.fits
	  IC2395_ch3_merged.fits
	  IC2395_ch4_merged.fits
	  SAGE_LMC_MIPS24_E12.fits
	  g180p00r45b120pm.fits
	  a68.fits
	  n132d_s18_7_LL_Cont_15mic.fits

	ZPN+PV (PV2_1,PV2_3,PV2_5)
	  ABELL0586.0750.fits
	  D4.0705.fits
	  EGS1.1193.fits
	  LSSTtest.2124.fits
	  UKIDDS_K_3219_606_17_67_3.fits
	  rcs2_m3.2540.fits

	TNX (WATx_yyy)
	  30s_01.fits
	  cal000277b.fits
	  mscred.fits
	  obj094.fits
	  obj269z.fits
	  westphal_Rs.wcs.fits
        -bad 
	  badTNX.fits.gz

	ZPX (WATx_yyy)
	  E5.3090.fits
	  E5.3075.fits

	TAN-SIP (A_,B_,AP_,BP)
	  sst.fits
	  mos8.fits (no reverse)

	SAO PLT (COx_13)
	  ac.fits
	  crts_short.fits (bad?)

	WCSDEP
	  ngc6819.fits

	HPX
	  wmap_ilc_3yr_v2-HPX.fits

	TAB
	  sparse.fits

	GLON-ZEA
	  South_galactic.fits
	  g000p00r2.fits
	  North_galactic.fits
	-bad
	  SFD_dust_4096_ngp.fits

	RA-CAR
	  CAR_model.fits
	  car_01.fits
	-bad
	  CHIPASS_Equ.fits

	GLON-CAR
	  GLM_00350+0115_mosaic_I4_cutout_14706.fits
	  GLM_03350+0000_mosaic_I1_cutout_10617.fits
	  GP_343.5_+0.0_A.fits
	  fermi_counts_gps_bin_1.00.fits
	  gc_energybin07_fadapt10_smajor030.fits
	  gc_energybin07_fadapt10_smajor100.fits
	  msxmapA-1a.fits
	  msxmapA-2.fits

	  eta.fits
	  rmon_msxmapA.fits
    	  iras_hires_band3.fits
	  msx327p5.fits
	  msxmapA-1.fits
	-old style (linear wcs)
	  Wco_DHT2001.fits
	  total_hi.fits

	xLON/xLAT- bad
	  worldtopo.multi.fits 'TLON-CAR'

	IRAF
	  obj011.fits
	  oct12_096.4.fits

	CROTA1
	  AXJ165420_GAIA.fits

	SKYBOT
	  ggg.fits.gz

Languages:
	Dansk		Allan Hornstrup		allan@dsri.dk
	Español		Manuel Perez Torres	mpereztorres@cfa
	Portuguese	Alberto Krone-Martins	krone@obs.u-bordeaux1.fr
	Japanese	Masahiro Tsujimoto	tsujimot@astro.psu.edu
	Chinese		Junfeng Wang		jwang@head.cfa.harvard.edu
	Chinese		Albert Kong		akong@space.mit.edu
	Français (a-c)	Jean-Baptiste Marquette	marquett@iap.fr
	Français (d-h)	Jean-Francois Sygnet	sygnet@iap.fr
	Français (i-m)	Elaine Fortin 		elaine_fortin@harvard.edu
	Français (n-p)	Anne Lemiere 		alemiere@head.cfa.harvard.edu
	Français *(q-t)	Jean-Francois Sygnet	sygnet@iap.fr
	Français *(u-z)	Ilana Harrus  		imh@milkyway.gsfc.nasa.gov

Notes:
			run on
compiled on		10.6	10.7	10.8	10.9
10.6 (snowleopard)	yes	yes	yes	yes
10.7 (lion)		no	yes	yes	yes
10.8 (mountainlion)	no	no	yes	yes
10.9 (mavericks)	no	no	yes	yes

cygwin install req
	core
	X11
	Devel
	Editors
	Utils
	Archive
	lib/xslt-devel

macports-
  for build (installs cvs,autoconfig,automake,pkgconfig...)
      % sudo port install cvs

  for truetype fonts
      % PKG_CONFIG_PATH=$HOME/lib/pkgconfig:/opt/X11/lib/pkgconfig
      % cat > lib/pkgconfig/xft.pc
prefix=/opt/X11
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Xft
Description: X FreeType library
Version: 2.2.0
Requires: xproto, xrender, fontconfig, freetype2
Requires.private: xrender, fontconfig, freetype2
Cflags: -I${includedir}
Libs: -L${libdir} -lXft

 for lion,mountainlion,yosemite
      % sudo port install pkgconfig
      % sudo port install xft2

(ok) -gui TkDefaultFont
(ok) -ps size*parent->getDisplayRatio()
(ok) -saotk $ds9(times) $ds9(helvetica) $ds9(courier)
(  ) -blt $ds9(times) $ds9(helvetica) $ds9(courier)

	Types (*no save, **no save,no alloc)
	  fits
	  sfits**
	  rgbimage
	  rgbcube
	  srgbcube**
	  mecube
	  multiframe*
	  mosaicimagewcs
	  mosaicimageiraf*
	  mosaicimagewfpc*
	  mosaicwcs
	  mosaiciraf*
	  smosaicwcs**
	  smosaiciraf**
	  array
	  rgbarray
	  nrrd
	  gif
	  jpeg
	  tiff
	  png

	loadParam(file,type)
	  FITS
	    ARRAY

        loadParam(file,mode)
	  {}
	  {data cube}
	  {mosaic image iraf}
	  {mosaic image}
	  {mosaic image wcs}
	  {mosaic wcs}
	  {mosaic image wfpc2}
	  {rgb image}
	  {rgb cube}
  
        loadParam(load,type)
	  alloc
	  allocgz
	  channel
	  mmap
	  mmapincr
	  smmap
	  shared
	  sshared
	  socket
	  socketgz
	  var

	Fitsy++ Memory modes
		strm
			(alloc)
			allocgz
			channel
			(socket)
			socketgz

		map
			(mmap)
			share
			var

		smap
			smmap
			sshare

		mapincr
			mmapincr


	funtools
		LAUNCH_ROUTINE: V f|F p|P
		FILTER_PTYPE: c

	IRAF Keywords
	  ampsec/ampsize- ccd to amplifier 
	  atm/atv- ccd to amplifier
	  biassec- image
	  ccdsec/ccdsize- ccd
	  ccdsum- blocking factor
	  datasec- image coord
	  detsec/detsize- ccd to detector
	  dtm/dtv- ccd to dectector
	  ltm/ltv- ccd to image
	  origsec- ccd
	  trimsec- image

	IRAF Graphcap

	:DD=node!imtool,fifo\:/dev/imt1i\:/dev/imt1o,512,512:tc=iism70:
	:DD=node!imtool,inet\:5137,512,512:tc=iism70:
	:DD=node!imtool,unix\:/tmp/.IMT%d,512,512:tc=iism70:

	IRAF Colors:
		0 = background (white)
		1 - 200 data values (1 lowerlimit, 200 upperlimit)
		201 = cursor (white)

		202 = black
		203 = white
		204 = red
		205 = green
		206 = blue
		207 = yellow
		208 = cyan
		209 = magenta
		210 = coral (255 127 80)
		211 = maroon (176 48 96)
		212 = orange (255 165 0)
		213 = khaki (240 230 140)
		214 = orchid (218 112 214)
		215 = turquoise (64 224 208)
		216 = violet (238 130 238)
		217 = wheat (245 222 179)
		218-254 = reserved for use by other windows
		255 = black (sunview foreground color)

	Word Length

		***i386
		char 1
		short 2
		int 4
		long int 4
		long 4
		long long 8
		void* 4

		***x86_64
		char 1
		short 2
		int 4
		long int 8
		long 8
		long long 8
		void* 8

		***solaris
		char 1
		short 2
		int 4
		long int 4
		long 4
		long long 8
		void* 4

		***solaris64
		char 1
		short 2
		int 4
		long int 8
		long 8
		long long 8
		void* 8

		***ppc
		char 1
		short 2
		int 4
		long int 4
		long 4
		long long 8
		void* 4

		***pcc64
		char 1
		short 2
		int 4
		long int 8
		long 8
		long long 8
		void* 8

	WCS Keywords
		WCSNAME	WCSNAMEa	TWCSn	TWCSna

		CTYPEi	CTYPEia		TCTYPn	TCTYna
		CUNITi	CUNITia		TCUNIn	TCUNna
		CRPIXi	CRPIXia		TCRPXn	TCRPna
		CRVALi	CRVALia		TCRVLn	TCRVna
		CDELTi	CDELTia		TCDLTn	TCDEna
		CROTAi	CROTAia		TCROTn
		PCi_j	PCi_ja		TPn_k	TPn_ka
		CDi_j	CDi_ja		TCn_k	TCn_ka
		PVi_m	PVi_ma		TVn_m	TVn_ma
		PSi_m	PSi_ma		TSn_m	TSn_ma

MACOSX

install_name_tool -change /Library/Frameworks/Tk.framework/Versions/8.6/Tk @executable_path/../Frameworks//Tk.framework/Versions/8.6/Tk aa/Wish.app/Contents/MacOS/Wish
install_name_tool -change /Library/Frameworks/Tcl.framework/Versions/8.6/Tcl @executable_path/../Frameworks//Tcl.framework/Versions/8.6/Tcl aa/Wish.app/Contents/MacOS/Wish

gcc -Os -pipe -fvisibility=hidden      -prebind -headerpad_max_install_names -Wl,-search_paths_first  tkAppInit.o -F/Users/joye/aa/build/tk/Deployment -framework Tk -F/Users/joye/aa/build/tcl/Deployment -framework Tcl  -lpthread -framework CoreFoundation -framework Cocoa -framework Carbon -framework IOKit    -lz  -lpthread -framework CoreFoundation  -sectcreate __TEXT __info_plist Wish-Info.plist -o wish

enum {
  k1MonochromePixelFormat       = 0x00000001, /* 1 bit indexed*/
  k2IndexedPixelFormat          = 0x00000002, /* 2 bit indexed*/
  k4IndexedPixelFormat          = 0x00000004, /* 4 bit indexed*/
  k8IndexedPixelFormat          = 0x00000008, /* 8 bit indexed*/
  k16BE555PixelFormat           = 0x00000010, /* 16 bit BE rgb 555 (Mac)*/
  k24RGBPixelFormat             = 0x00000018, /* 24 bit rgb */
  k32ARGBPixelFormat            = 0x00000020, /* 32 bit argb    (Mac)*/
  k1IndexedGrayPixelFormat      = 0x00000021, /* 1 bit indexed gray*/
  k2IndexedGrayPixelFormat      = 0x00000022, /* 2 bit indexed gray*/
  k4IndexedGrayPixelFormat      = 0x00000024, /* 4 bit indexed gray*/
  k8IndexedGrayPixelFormat      = 0x00000028 /* 8 bit indexed gray*/
};

enum {
  k16LE555PixelFormat           = 'L555', /* 16 bit LE rgb 555 (PC)*/
  k16LE5551PixelFormat          = '5551', /* 16 bit LE rgb 5551*/
  k16BE565PixelFormat           = 'B565', /* 16 bit BE rgb 565*/
  k16LE565PixelFormat           = 'L565', /* 16 bit LE rgb 565*/
  k24BGRPixelFormat             = '24BG', /* 24 bit bgr */
  k32BGRAPixelFormat            = 'BGRA', /* 32 bit bgra    (Matrox)*/
  k32ABGRPixelFormat            = 'ABGR', /* 32 bit abgr    */
  k32RGBAPixelFormat            = 'RGBA', /* 32 bit rgba    */
  kYUVSPixelFormat              = 'yuvs', /* YUV 4:2:2 byte ordering 16-unsigned = 'YUY2'*/
  kYUVUPixelFormat              = 'yuvu', /* YUV 4:2:2 byte ordering 16-signed*/
  kYVU9PixelFormat              = 'YVU9', /* YVU9 Planar    9*/
  kYUV411PixelFormat            = 'Y411', /* YUV 4:1:1 Interleaved  16*/
  kYVYU422PixelFormat           = 'YVYU', /* YVYU 4:2:2 byte ordering   16*/
  kUYVY422PixelFormat           = 'UYVY', /* UYVY 4:2:2 byte ordering   16*/
  kYUV211PixelFormat            = 'Y211', /* YUV 2:1:1 Packed   8*/
  k2vuyPixelFormat              = '2vuy' /* UYVY 4:2:2 byte ordering   16*/
};

AST		David Berry		GPLv2
	http://starlink.jach.hawaii.edu/starlink/AST
BLT		George A Howlett	OpenSource
	www.sourceforge.net/projects/blt/files
CheckDNS	SAO			GPLv2
	http://hea-www.harvard.edu/RD/ds9/
FunTools	SAO			LGPLv2.1
	https://www.cfa.harvard.edu/~john/funtools/
HCompress	Richard White/STScI	OpenSource/NASA	
	http://www.stsci.edu/software/hcompress.html
HTMLWidget	D. Richard Hipp		GPLv2 
	http://www.hwaci.com/drh/
IIS		NOAO			OpenSource/IRAF
PLIO		NOAO			OpenSource/IRAF
RICE		Richard White/STScI	OpenSource/NASA
SAOtk		SAO			GPLv2	
	http://hea-www.harvard.edu/RD/ds9/
Signal_Ext	Michael Schwartz	OpenSource 
	http://www.nyx.net/~mschwart
Tcl	University of California/Sun Microsystems/Scripts	OpenSource 
	http://sourceforge.net/projects/tcl/files/Tcl/
Tcllib	Ajuba Solutions and other parties	OpenSource
	http://tcllib.sourceforge.net/
tclxml	ANU/CSIRO/Zveno Pty Ltd/Explain	OpenSource
	http://www.explain.com.au/
Tk	University of California/Sun Microsystems/Scripts	OpenSource 
	http://sourceforge.net/projects/tcl/files/Tk/
TkCon		Jeffrey Hobbs		OpenSource 
TKIMG		Various Authors		OpenSource	
	http://sourceforge.net/projects/tkimg/
ezMPEG		Ingo Oppermann		GPLv2 
tkmpeg 		SAO			GPLv2	
	http://hea-www.harvard.edu/RD/ds9/
TkTable		Jeffrey Hobbs		GPLv2	
	http://sourceforge.net/projects/tktable/
WCSTools	SAO			LGPLv2.1	
	http://tdc-www.cfa.harvard.edu/wcstools/
xmlrpc		Eric Yeh		GPLv2
xpa		SAO			LGPLv2.1 
	http://hea-www.harvard.edu/RD/ds9/
zlib	Jean-loup Gailly and Mark Adler OpenSource 
	http://zlib.net/
zvfs		Richard Hipp		OpenSource	
	http://www.hwaci.com/drh/

CYGWIN

$ gcc foo.c -o foo
__CYGWIN__

$ gcc -mno-win32 foo.c -o foo
__CYGWIN__

$ gcc -mwin32 foo.c -o foo
WIN32
_WIN32
__WIN32
__WIN32__
__CYGWIN__

$ x86_64-w64-mingw32-gcc foo.c -o foo
WIN32
_WIN32
__WIN32
__WIN32__

