Ńņ
n+Oc           @   s[   d  Z  d d k Z d d k Z d e i f d     YZ e i d e  e i d d  d S(   s   0.1i’’’’Nt   PcdImageFilec           B   s&   e  Z d  Z d Z d   Z d   Z RS(   t   PCDs   Kodak PhotoCDc         C   s½   |  i  i d  |  i  i d  } | d  d j o t d  n t | d  d @} | d j o d |  _ n | d j o d	 |  _ n d
 |  _ d |  _ d d |  i d d  f g |  _	 d  S(   Ni   i   t   PCD_s   not a PCD filei  i   i   iZ   i¦’’’t   RGBi   i   t   pcdi    i`   (   i   i   (   i    i    i   (
   t   fpt   seekt   readt   SyntaxErrort   ordt   tile_post_rotatet   modet   sizet   Nonet   tile(   t   selft   st   orientation(    (    s<   /usr/local/lib/python2.6/dist-packages/PIL/PcdImagePlugin.pyt   _open!   s    		c   	      C   sĢ   t  |  i  d j o d  S|  i d \ } } } } | ou t |  i d | d |  i d | d  } xE d d f d d f d d	 f g D] \ } } | | j o Pq q Wn | | | | f g |  _ |  S(
   Ni   i    i   i   i   i`   i    i    i   (   t   lenR   t   maxR   (	   R   R   R   t   dt   et   ot   at   scaleR   (    (    s<   /usr/local/lib/python2.6/dist-packages/PIL/PcdImagePlugin.pyt   draft4   s    -" (   t   __name__t
   __module__t   formatt   format_descriptionR   R   (    (    (    s<   /usr/local/lib/python2.6/dist-packages/PIL/PcdImagePlugin.pyR       s   	R   s   .pcd(   t   __version__t   Imaget	   ImageFileR    t   register_opent   register_extension(    (    (    s<   /usr/local/lib/python2.6/dist-packages/PIL/PcdImagePlugin.pyt   <module>   s   .