
    g                        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       y	)    )annotations   )Image	ImageFile)i16lec                    | d d dk(  S )N   s      )prefixs    I/var/www/openai/venv/lib/python3.12/site-packages/PIL/PixarImagePlugin.py_acceptr      s    "1:,,,    c                      e Zd ZdZdZddZy)PixarImageFilePIXARzPIXAR raster imagec                   | j                   J | j                   j                  d      }t        |      sd}t        |      || j                   j                  d      z   }t	        |d      t	        |d      f| _        t	        |d      t	        |d      f}|dk(  rd	| _        d
d| j                  z   d| j                  ddffg| _	        y )Nr	   znot a PIXAR filei  i  i  i  i  )      RGBraw)r   r   i   r   r   )
fpreadr   SyntaxErrori16_size_modesizemodetile)selfsmsgr   s       r   _openzPixarImageFile._open*   s    ww"""GGLLOqz$Cc"" S!!C[#a+-
 1c{C3K'7?DJ Vdii/		1a7HIJ	r   N)returnNone)__name__
__module____qualname__formatformat_descriptionr#   r
   r   r   r   r   &   s    F-Kr   r   z.pxrN)r   bytesr$   bool)
__future__r    r   r   _binaryr   r   r   r   register_openr)   register_extensionr
   r   r   <module>r2      s^   * #  !-KY(( K@   N))>7 C   .. 7r   