
    zvg                        d dl mZ ddlmZmZ ddlmZ dd	Z G d
 dej                  Z	 ej
        e	j        e	e            ej        e	j        d           dS )    )annotations   )Image	ImageFile)i16leprefixbytesreturnboolc                    | d d         dk    S )N   s      )r   s    Q/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/PIL/PixarImagePlugin.py_acceptr      s    "1":,,,    c                      e Zd ZdZdZddZdS )PixarImageFilePIXARzPIXAR raster imager
   Nonec                   | j         J | j                             d          }t          |          sd}t          |          || j                             d          z   }t	          |d          t	          |d          f| _        t	          |d          t	          |d          f}|dk    rd	| _        t          j        d
d| j	        z   d| j
                  g| _        d S )Nr   znot a PIXAR filei  i  i  i  i  )      RGBraw)r   r   i   )fpreadr   SyntaxErrori16_size_moder   _Tilesizemodetile)selfsmsgr#   s       r   _openzPixarImageFile._open*   s    w"""GLLOOqzz 	#$Cc""" S!!!C[[#a++-
 1c{{C3KK'7??DJ _UFTY,>diPPQ			r   N)r
   r   )__name__
__module____qualname__formatformat_descriptionr(   r   r   r   r   r   &   s9        F-R R R R R Rr   r   z.pxrN)r   r	   r
   r   )
__future__r    r   r   _binaryr   r   r   r   register_openr,   register_extensionr   r   r   <module>r3      s   * # " " " " "         ! ! ! ! ! !- - - -R R R R RY( R R R@  N)>7 C C C  . 7 7 7 7 7r   