-í
é¶<c       sl     d  Z    d k l Z l Z l Z 	 d k Z d k Z d k Z  d „  Z  d „  Z	 t e ƒ  d S(   s3   Simple test script for imgfile.c
   Roger E. Masse
(   s   verboses   unlinks   findfileNc      sm     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'   /usr/lib/python2.2/test/test_imgfile.pys   main s   c 	   s+     d k  }   d k } " d } % y ) t i |  ƒ } Wn™ * t i j
 o‡ , t d j o - | i	 d } n / | i t i } 1 | i | i ƒ } 2 |  | d <3 | i i | ƒ }  4 t i |  ƒ } n X5 t o 6 d |  t | ƒ f GHn < t i |  ƒ } C t o D d GHn E t i | | | d | d | d	 ƒ H t o I d
 |  t | ƒ f GHn V t o W d GHn X t i |  | d d	 | d d	 d d ƒ } ^ t o _ d GHn ` t i d ƒ b t o c d GHn d t i |  | d d	 | d d	 d d ƒ } e t o f d GHn g t i d ƒ i t o i d GHn j t i |  | d d	 | d d	 d ƒ } k t o k d GHn l t i |  | d d	 | d d	 d d ƒ } n t o o d GHn p t i | | | d d	 | d d	 | d	 ƒ r | 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   i   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
   outputfiles   imgfiles   getsizess   names   sizess   errors   __name__s   argvs   ournames   moduless   __file__s   splits   seps   partss   joins   verboses   strs   reads   images   writes
   readscaleds   simages   ttobs   unlink(	   s   names
   outputfiles   sizess   ournames   simages   images   syss   partss   os(    (    s'   /usr/lib/python2.2/test/test_imgfile.pys	   testimage sX   	

(

.

.

 +
 .
0(
   s   __doc__s   test_supports   verboses   unlinks   findfiles   imgfiles   uus   oss   mains	   testimage(   s	   testimages   mains   verboses   uus   imgfiles   unlinks   oss   findfile(    (    s'   /usr/lib/python2.2/test/test_imgfile.pys   ? s
   Z