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

POST_FILTER=pips-sc580
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=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql PHOTO" ;;
			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=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -mt SFINE -ql STD" ;;
			high)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -mt SFINE -ql FINE" ;;
			photo)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -mt SFINE -ql FINE" ;;
		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=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -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 FINE" ;;
			photo)	RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -ql PHOTO" ;;
		esac ;;
	premium)
		POST_FILTER_OPTS="$POST_FILTER_OPTS -mt GFILM"
		case "$QUALITY" in
			draft|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|photo)
				RESOLUTION=720x720
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 720 -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
