# Frame buffer library table for handling file types not in the frame
# PRISMS buffer library
# Each line must contain 3 strings seperated by white space:
#  file_extension read_command write_command
# The read_command must be able to read from a named file and write
#	prisms format to stdout
# The write_command must be able to read prisms format on stdin and write
#	to a named file
# Use %s in the command strings to designate the named file.

.qtl  "cp %s /tmp/qtl$$.yuv ; icp /tmp/qtl$$.yuv stdout; rm -f /tmp/qtl$$.yuv" ""

# SGI FIT files
.fit   "imgcopy -f SGI -Crgba %s /tmp/$$.sgi 2>/dev/null ; icp /tmp/$$.sgi stdout ; exec rm -f /tmp/$$.sgi" "icp stdin /tmp/$$.sgi ; imgcopy -f FIT /tmp/$$.sgi %s 2>/dev/null ; exec rm -f /tmp/$$.sgi"

# GIF Files (using the Image Vision Library)
.gif   "imgcopy -f SGI -Crgba %s /tmp/$$.sgi 2>/dev/null ; icp /tmp/$$.sgi stdout ; exec rm -f /tmp/$$.sgi" "icp stdin /tmp/$$.sgi ; imgcopy -f GIF /tmp/$$.sgi %s 2>/dev/null ; exec rm -f /tmp/$$.sgi"
.gif89   "imgcopy -f SGI -Crgba %s /tmp/$$.sgi 2>/dev/null ; icp /tmp/$$.sgi stdout ; exec rm -f /tmp/$$.sgi" "icp stdin /tmp/$$.sgi ; imgcopy -f GIF /tmp/$$.sgi %s 2>/dev/null ; exec rm -f /tmp/$$.sgi"
.GIF   "imgcopy -f SGI -Crgba %s /tmp/$$.sgi 2>/dev/null ; icp /tmp/$$.sgi stdout ; exec rm -f /tmp/$$.sgi" "icp stdin /tmp/$$.sgi ; imgcopy -f GIF /tmp/$$.sgi %s 2>/dev/null ; exec rm -f /tmp/$$.sgi"
.GIF89   "imgcopy -f SGI -Crgba %s /tmp/$$.sgi 2>/dev/null ; icp /tmp/$$.sgi stdout ; exec rm -f /tmp/$$.sgi" "icp stdin /tmp/$$.sgi ; imgcopy -f GIF /tmp/$$.sgi %s 2>/dev/null ; exec rm -f /tmp/$$.sgi"

#
#  RenderMan Texture Maps
#
.tx "sho -dspy tiff -dspyfile /tmp/$$.tif %s 2>/dev/null ; icp /tmp/$$.tif stdout ; exec rm -f /tmp/$$.tif" "icp stdin /tmp/$$.tif ; txmake -mode clamp /tmp/$$.tif %s ; exec rm -f /tmp/$$.tif"

.acc    "$HFS/houdini/sbin/fromaccom %s" "$HFS/houdini/sbin/toaccom %s"
.accom  "$HFS/houdini/sbin/fromaccom %s" "$HFS/houdini/sbin/toaccom %s"

# Obsolete formats
# .mat  "exec ilava -w 128 -h 128 %s stdout" ""
# .ice  "exec icing  %s stdout" ""
