# $ApsCVS: src/apsfilter/driver/pips/sc680_777,v 1.1 2001/11/17 15:22:00 andreas Exp $

POST_FILTER=pips-sc680_777
POST_FILTER_OPTS="$POST_FILTER_OPTS -ui C"

case "$MEDIA" in
	plain)
		POST_FILTER_OPTS="$POST_FILTER_OPTS -mt PLAIN"
		case "$QUALITY" in
			draft)	RESOLUTION=120x120
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 120 -ql DRAFT" ;;
			low)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql STD" ;;
			medium)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql FINE" ;;
			high)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql SFINE" ;;
			photo)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql PHOTO" ;;
		esac ;;
	coated)
		case "$QUALITY" in
			draft)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -mt FINE -ql STD" ;;
			low)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -mt SFINE -ql STD" ;;
			medium)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -mt SFINE -ql FINE" ;;
			high)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -mt SFINE -ql FINE" ;;
			photo)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -mt SFINE -ql PHOTO" ;;
		esac ;;
	glossy)
		POST_FILTER_OPTS="$POST_FILTER_OPTS -mt GPAPER"
		case "$QUALITY" in
			draft)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql STD" ;;
			low)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql FINE" ;;
			medium)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql FINE" ;;
			high)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql PHOTO" ;;
			photo)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql SPHOTO" ;;
		esac ;;
	premium)
		POST_FILTER_OPTS="$POST_FILTER_OPTS -mt PMPHOTO -re 720"
		case "$QUALITY" in
			high|photo)
				RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -ql SPHOTO" ;;
			*)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -ql PHOTO" ;;
		esac ;;
	trans)
		RESOLUTION=360x360
		POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -mt OHP -ql STD" ;;
esac

case "$COLOR" in
	full)	PRINTER=png16m
		POST_FILTER_OPTS="$POST_FILTER_OPTS -in COLOR" ;;
	gray)	PRINTER=pnggray
		POST_FILTER_OPTS="$POST_FILTER_OPTS -in MONO" ;;
	mono)	PRINTER=pngmono
		POST_FILTER_OPTS="$POST_FILTER_OPTS -in MONO" ;;
esac

case "$PAPERSIZE" in
	a4)	POST_FILTER_OPTS="$POST_FILTER_OPTS -ms A4" ;;
	letter)	POST_FILTER_OPTS="$POST_FILTER_OPTS -ms LT" ;;
	legal)	POST_FILTER_OPTS="$POST_FILTER_OPTS -ms LGL" ;;
esac
