‡Æ
hNö9c       sW   d  Z  d k l Z l Z l Z d k Z d k Z d k Z d „  Z d „  Z	 e ƒ  d S(   s3   Simple test script for imgfile.c
   Roger E. Masse
(   s   verboses   unlinks   findfileNc      sX   t  i t d ƒ d ƒ t  i t d ƒ d ƒ t d ƒ t d ƒ t d ƒ t d ƒ d  S(   Ns   testrgb.uues   test.rgbs   greyrgb.uues   greytest.rgb(   s   uus   decodes   findfiles	   testimages   unlink(    s.   /mit/python/lib/python2.0/test/test_imgfile.pys   main s    


c 
   s´  d k  } d k } d k } d } y t i |  ƒ } Wnˆ t i j
 oy t	 d j o | i
 d } n | i t	 i } | i | | i ƒ } |  | d <| i | | i ƒ }  t i |  ƒ } n Xt o d |  t | ƒ f GHn t i |  ƒ } t o	 d GHn t i | | | d | d | d ƒ t o d	 |  t | ƒ f GHn t o	 d
 GHn t i |  | d d | d d d d ƒ }	 t o	 d GHn t i d ƒ t o	 d GHn t i |  | d d | d d d d ƒ }	 t o	 d GHn t i d ƒ t o	 d GHn t i |  | d d | d d d ƒ }	 t o	 d GHn t i |  | d d | d d d d ƒ }	 t o	 d GHn t i | |	 | d d | d d | d ƒ | i | ƒ d S(   s^   Run through the imgfile's battery of possible methods
       on the image passed in name.
    Ns   /tmp/deletemes   __main__i    i   s!   Opening test image: %s, sizes: %ss   Writing output filei   s(   Opening scaled test image: %s, sizes: %ss   Filtering with "impulse"s   impulsef2.0s   Switching to X compatibilitys   Filtering with "triangle"s   trianglef3.0s#   Switching back to SGI compatibilitys   Filtering with "quadratic"s	   quadratics   Filtering with "gaussian"s   gaussianf1.0(   s   syss   oss   strings
   outputfiles   imgfiles   getsizess   names   sizess   errors   __name__s   argvs   ournames   moduless   __file__s   splitfieldss   seps   partss
   joinfieldss   verboses   strs   reads   images   writes
   readscaleds   simages   ttobs   unlink(
   s   names   syss   oss   strings
   outputfiles   sizess   ournames   partss   images   simages.   /mit/python/lib/python2.0/test/test_imgfile.pys	   testimage sZ     				%	+		+	 	( 	+	-(
   s   __doc__s   test_supports   verboses   unlinks   findfiles   imgfiles   uus   oss   mains	   testimage(    s.   /mit/python/lib/python2.0/test/test_imgfile.pys   ? s
   		[