U
    ?h                     @  sl   d dl mZ ddlmZmZ ddlmZ ddddd	ZG d
d dejZ	e
e	je	e ee	jd dS )    )annotations   )Image	ImageFile)i16lebytesbool)prefixreturnc                 C  s   | d d dkS )N   s      )r	   r   r   F/var/www/html/venv/lib/python3.8/site-packages/PIL/PixarImagePlugin.py_accept   s    r   c                   @  s"   e Zd ZdZdZddddZdS )PixarImageFileZPIXARzPIXAR raster imageNone)r
   c                 C  s   | j d k	st| j d}t|s.d}t||| j d }t|dt|df| _t|dt|df}|dkrvd	| _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AssertionError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    