î
úÙ Xq  ã               @   sÅ   d  d l  m Z m Z e e k r= d d „  Z d d „  Z n d d „  Z d d „  Z d  d d	 „ Z d  d
 d „ Z d  d d „ Z	 d  d d „ Z
 d d „  Z d d „  Z d d „  Z d d „  Z d S)é    )ÚunpackÚpackc             C   s
   t  |  ƒ S)N)Úord)Úc© r   úH/home/ubuntu/projects/ifolica/lib/python3.4/site-packages/PIL/_binary.pyÚi8   s    r   c             C   s   t  |  d @ƒ S)Néÿ   )Úchr)Úir   r   r   Úo8   s    r   c             C   s   |  j  t k r |  S|  d S)Nr   )Ú	__class__Úint)r   r   r   r   r      s    c             C   s   t  |  d @f ƒ S)Nr	   )Úbytes)r   r   r   r   r      s    c             C   s   t  d |  | | d … ƒ d S)z“
    Converts a 2-bytes (16 bits) string to an integer.

    c: string containing bytes to convert
    o: offset of bytes to convert in string
    z<Hé   r   )r   )r   Úor   r   r   Úi16le    s    r   c             C   s   t  d |  | | d … ƒ d S)z“
    Converts a 4-bytes (32 bits) string to an integer.

    c: string containing bytes to convert
    o: offset of bytes to convert in string
    z<Ié   r   )r   )r   r   r   r   r   Úi32le*   s    r   c             C   s   t  d |  | | d … ƒ d S)Nz>Hr   r   )r   )r   r   r   r   r   Úi16be4   s    r   c             C   s   t  d |  | | d … ƒ d S)Nz>Ir   r   )r   )r   r   r   r   r   Úi32be8   s    r   c             C   s   t  d |  ƒ S)Nz<H)r   )r   r   r   r   Úo16le=   s    r   c             C   s   t  d |  ƒ S)Nz<I)r   )r   r   r   r   Úo32leA   s    r   c             C   s   t  d |  ƒ S)Nz>H)r   )r   r   r   r   Úo16beE   s    r   c             C   s   t  d |  ƒ S)Nz>I)r   )r   r   r   r   Úo32beI   s    r   N)Ústructr   r   r   Ústrr   r   r   r   r   r   r   r   r   r   r   r   r   r   Ú<module>   s   

