Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/test/test_imgfile.pyo
mò ‚=5Dc @ sW d Z d k l Z l Z l Z d k Z d k Z d k Z d „ Z d „ Z e ƒ d S( s3 Simple test script for imgfile.c Roger E. Masse ( s verboses unlinks findfileNc C sX 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( t uut decodet findfilet testimaget unlink( ( ( t' /usr/lib/python2.4/test/test_imgfile.pyt main s c C s¤ d k } d k } d } y t i | ƒ } Wn t i j or t d j o | i d } n | i t i } | i | i ƒ } | | d <| i i | ƒ } t i | ƒ } n Xt o d | t | ƒ f GHn t i | ƒ } t o d GHn t i | | | d | d | d ƒ t o d | t | ƒ f GHn t o d GHn t i | | d d | d d d d ƒ } t o d GHn t i d ƒ t o d GHn t i | | d d | d d d d ƒ } t o d GHn t i d ƒ t o d GHn t i | | d d | d d d ƒ } t o d GHn t i | | d d | d d d d ƒ } t o d GHn t i | | | d d | d d | d ƒ | i | ƒ d S( s^ Run through the imgfile's battery of possible methods on the image passed in name. Ns /tmp/deletemet __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"t impulsef2.0s Switching to X compatibilitys Filtering with "triangle"t trianglef3.0s# Switching back to SGI compatibilitys Filtering with "quadratic"t quadratics Filtering with "gaussian"t gaussianf1.0( t syst ost outputfilet imgfilet getsizest namet sizest errort __name__t argvt ournamet modulest __file__t splitt sept partst joint verboset strt readt imaget writet readscaledt simaget ttobR ( R R R R R# R R R R ( ( R R sX % + + ( + -( t __doc__t test.test_supportR R R R R R R R ( R R R R R R R R ( ( R t ? s Z