-í
é¶<c       s‡     d  Z    d k l Z l Z 
 d k 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   unlinkNi   c  	  sx    t  i t d t i d ƒ d t i d ƒ  |  o'  t d t i d ƒ \ } } } n$  t
 d t i 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 t i d ƒ d  S(   Ns   testrgbs   uues   tests   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   oss   extseps
   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	   monoimages   images
   scaleimages
   grey4images
   grey2images   heights   widths
   videoimages	   greyimages   newimage(    (    s'   /usr/lib/python2.2/test/test_imageop.pys   main sd   /
'#
'
!












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   sizess   rgbimgs   image(    (    s'   /usr/lib/python2.2/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   sizess   images   imgfile(    (    s'   /usr/lib/python2.2/test/test_imageop.pys   getimageˆ s   
c    sÄ   š › œ d k  }  d k } ž | i } Ÿ y    | i i t ƒ g | } Wn ¡ t j
 o
 ¢ n X£ xJ | D£ ]? } ¤ | i i | |  ƒ } ¥ | i i
 | ƒ o ¦ | Sn qs W§ |  Sd S(   s%    return a more qualified path to nameN(   s   syss   oss   paths   dirnames   __file__s	   NameErrors   dirs   joins   names   fullnames   exists(   s   names   syss   paths   oss   fullnames   dir(    (    s'   /usr/lib/python2.2/test/test_imageop.pys   get_qualified_pathš s    
 	s
   use_rgbimg(   s   __doc__s   test_supports   verboses   unlinks   imageops   uus   oss   mains   getrgbimages   getimages   get_qualified_path(	   s   getimages   imageops   mains   verboses   getrgbimages   uus   unlinks   oss   get_qualified_path(    (    s'   /usr/lib/python2.2/test/test_imageop.pys   ? s   k