# $ApsCVS: src/apsfilter/driver/cdj970,v 1.1 2001/11/17 15:21:54 andreas Exp $

case "$QUALITY" in
	low|draft)	RESOLUTION="150x150"
			GS_FEATURES="$GS_FEATURES -dQuality=-1" ;;
	medium)		RESOLUTION="300x300"
			GS_FEATURES="$GS_FEATURES -dQuality=0" ;;
	high|photo)	RESOLUTION="600x600"
			GS_FEATURES="$GS_FEATURES -dQuality=1" ;;
esac

case "$COLOR" in
	full)	GS_FEATURES="$GS_FEATURES -dBitsPerPixel=32" ;;
	gray)	GS_FEATURES="$GS_FEATURES -dBitsPerPixel=8" ;;
	mono)	GS_FEATURES="$GS_FEATURES -dBitsPerPixel=1" ;;
esac

case "$MEDIA" in
	coated)	GS_FEATURES="$GS_FEATURES -dPapertype=2" ;;
	trans)	GS_FEATURES="$GS_FEATURES -dPapertype=4" ;;
	plain)	GS_FEATURES="$GS_FEATURES -dPapertype=0" ;;
	*)	GS_FEATURES="$GS_FEATURES -dPapertype=3" ;;
esac

if [ -n "$DUPLEX" -a -n "$HARDWARE_DUPLEX" ]; then
	if [ "$BINDING" = short ]; then
		GS_FEATURES="$GS_FEATURES -dDuplex=1"
	else
		GS_FEATURES="$GS_FEATURES -dDuplex=2"
	fi
else
	GS_FEATURES="$GS_FEATURES -dDuplex=0"
fi
