‡Æ
gNö9c       s~     d  Z    d k l Z l Z 
 d k Z d k Z  d d „ Z w d „  Z ˆ d „  Z š d „  Z	 « e d d ƒ d S(	   s„   Test script for the imageop module.  This has the side
   effect of partially testing the imgfile module as well.
   Roger E. Masse
(   s   verboses   unlinkNc  	  sA    t  i t d ƒ d ƒ  |  o  t d ƒ \ } } } n  t d ƒ \ } } }  t	 o  d GHn  t
 i | d | | d d d d ƒ }   t	 o ! d GHn " t
 i | d | | d d ƒ } ( t	 o ) d GHn * t
 i | d | | ƒ } - t	 o . d	 GHn / t
 i | | | ƒ } 2 t	 o 3 d
 GHn 4 t
 i | | | ƒ } 7 t	 o 8 d GHn 9 t
 i | | | ƒ } < t	 o = d GHn > t
 i | | | ƒ } C t	 o D d GHn E t
 i | | | d ƒ } M t	 o N d GHn O t
 i | | | d d ƒ } S t	 o T d GHn U t
 i | | | ƒ } Y t	 o Z d GHn [ t
 i | | | ƒ }	 _ t	 o ` d GHn a t
 i | | | ƒ }
 f t	 o g d GHn h t
 i | | | ƒ }
 k t	 o l d GHn m t
 i |	 | | ƒ } p t	 o q d GHn r t
 i  |
 | | ƒ } u t! d ƒ d  S(   Ns   testrgb.uues   test.rgbs   cropi   i    i   s   scales   tovideos   rgb2rgb8s   rgb82rgbs   rgb2greys   grey2rgbs	   grey2monos	   mono2greyiÿ   s   dither2monos
   grey2grey4s
   grey2grey2s   dither2grey2s
   grey42greys
   grey22grey("   s   uus   decodes   get_qualified_paths
   use_rgbimgs   getrgbimages   images   widths   heights   getimages   verboses   imageops   crops   newimages   scales
   scaleimages   tovideos
   videoimages   rgb2rgb8s	   greyimages   rgb82rgbs   rgb2greys   grey2rgbs	   grey2monos	   monoimages	   mono2greys   dither2monos
   grey2grey4s
   grey4images
   grey2grey2s
   grey2images   dither2grey2s
   grey42greys
   grey22greys   unlink(   s
   use_rgbimgs   images   widths   heights   newimages
   scaleimages
   videoimages	   greyimages	   monoimages
   grey4images
   grey2images.   /mit/python/lib/python2.0/test/test_imageop.pys   main sd   

'
!












i   c    s¼   w y { d k  } } y ~ | i |  ƒ } Wn:  | i j
 o( € t |  ƒ }   | i |  ƒ } n X‚ t o ƒ d |  t | ƒ f GHn … | i |  ƒ } † | | d | d f Sd S(   sf   return a tuple consisting of image (in 'imgfile' format but
    using rgbimg instead) width and heightNs(   rgbimg opening test image: %s, sizes: %si    i   (
   s   rgbimgs   sizeofimages   names   sizess   errors   get_qualified_paths   verboses   strs   longimagedatas   image(   s   names   rgbimgs   sizess   images.   /mit/python/lib/python2.0/test/test_imageop.pys   getrgbimagew s   
c    s¼   ˆ ‹  d k  }  y  | i |  ƒ } Wn: ‘ | i j
 o( ’ t |  ƒ }  “ | i |  ƒ } n X” t o • d |  t | ƒ f GHn — | i |  ƒ } ˜ | | d | d f Sd S(   sU   return a tuple consisting of
       image (in 'imgfile' format) width and height
    Ns)   imgfile opening test image: %s, sizes: %si    i   (
   s   imgfiles   getsizess   names   sizess   errors   get_qualified_paths   verboses   strs   reads   image(   s   names   imgfiles   sizess   images.   /mit/python/lib/python2.0/test/test_imageop.pys   getimageˆ s   
c    sÆ   š › œ d k  }  d k } ž | i } Ÿ y    | i i t ƒ g | } Wn ¡ t j
 o
 ¢ n X£ xL | d £ r? } ¤ | i i | |  ƒ } ¥ | i i
 | ƒ o ¦ | Sn qu W§ |  Sd S(   s%    return a more qualified path to nameNi    (   s   syss   oss   paths   dirnames   __file__s	   NameErrors   dirs   joins   names   fullnames   exists(   s   names   syss   oss   paths   dirs   fullnames.   /mit/python/lib/python2.0/test/test_imageop.pys   get_qualified_pathš s     	s
   use_rgbimg(
   s   __doc__s   test_supports   verboses   unlinks   imageops   uus   mains   getrgbimages   getimages   get_qualified_path(    s.   /mit/python/lib/python2.0/test/test_imageop.pys   ? s   k