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

POST_FILTER=pips-sc980
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=180x180
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 180 -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
			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 PMMATT -ql PHOTO" ;;
			*)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -mt FINE -ql STD" ;;
		esac ;;
	glossy)
		POST_FILTER_OPTS="$POST_FILTER_OPTS -mt GPAPER"
		case "$QUALITY" in
			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" ;;
			*)	RESOLUTION=360x360
				POST_FILTER_OPTS="$POST_FILTER_OPTS -re 360 -ql FINE" ;;
		esac ;;
	premium)
		RESOLUTION=720x720
		POST_FILTER_OPTS="$POST_FILTER_OPTS -mt GFILM -re 720"
		case "$QUALITY" in
			photo)	POST_FILTER_OPTS="$POST_FILTER_OPTS -ql SPHOTO" ;;
			*)	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
