U
    e                     @  sd   d dl mZ ddlmZmZ ddlmZ dd ZG dd dejZ	e
e	je	e ee	jd	 d
S )    )annotations   )Image	ImageFile)i16lec                 C  s   | d d dkS )N   s      )prefixr   r   V/var/www/html/StaffProfile/newvenv/lib/python3.8/site-packages/PIL/PixarImagePlugin.py_accept   s    r   c                   @  s   e Zd ZdZdZdd ZdS )PixarImageFileZPIXARzPIXAR raster imagec                 C  s   | j d}t|s d}t||| j d }t|dt|df| _t|dt|df}|dkrhd	| _d
d| j d| jddffg| _	d S )Nr   znot a PIXAR filei  i  i  i  i  )      RGBraw)r   r   i   r   r   )
fpreadr   SyntaxErrori16_size_modesizemodeZtile)selfsmsgr   r   r   r
   _open*   s    zPixarImageFile._openN)__name__
__module____qualname__formatformat_descriptionr   r   r   r   r
   r   &   s   r   z.pxrN)
__future__r    r   r   _binaryr   r   r   r   Zregister_openr    Zregister_extensionr   r   r   r
   <module>   s   