‡Æ
gNö9c       sc   d  Z  d k l Z l 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   unlinkNc  	  s¨  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 | | | ƒ } 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 ƒ 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˜   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   rgbimgs   sizess   images.   /mit/python/lib/python2.0/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   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 Xx@ | d r6 } | i i | |  ƒ } | i i
 | ƒ o | Sn qW 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			