-í
é¶<c       sl   d  Z  d k l Z l Z d k Z d k Z d k Z d d „ Z 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  	  sß  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 | | | ƒ }	 t o	 d GHn t i |	 | | ƒ } t o	 d GHn t i | | | ƒ }	 t o	 d GHn t i |	 | | ƒ } t o	 d GHn t i |	 | | d ƒ } t o	 d GHn t i | | | d d ƒ }	 t o	 d GHn t i |	 | | ƒ } t o	 d GHn t i |	 | | ƒ } t o	 d GHn t i |	 | | ƒ } t o	 d GHn t i  |	 | | ƒ } t o	 d GHn t i! | | | ƒ }	 t o	 d GHn t i" | | | ƒ } 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˜   d k  } y | i |  ƒ } Wn1 | i j
 o" t |  ƒ }  | i |  ƒ } n Xt 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 |  ƒ } Wn1 | i j
 o" t |  ƒ }  | i |  ƒ } n Xt 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 Xx> | D]6 } | i i | |  ƒ } | i i
 | ƒ o | Sn qU 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			