
    :h                        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                $    | j                  d      S )Ns     )
startswith)prefixs    R/var/www/urcfiles/bundle/venv/lib/python3.12/site-packages/PIL/PixarImagePlugin.py_acceptr      s    01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	| _        t        j                  d
d| j                  z   d| j                        g| _        y )N   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    ww"""GGLLOqz$Cc"" S!!C[#a+-
 1c{C3K'7?DJ __UFTYY,>diiPQ	r   N)returnNone)__name__
__module____qualname__formatformat_descriptionr$    r   r   r   r   &   s    F-Rr   r   z.pxrN)r
   bytesr%   bool)
__future__r    r   r   _binaryr   r   r   r   register_openr*   register_extensionr,   r   r   <module>r4      s^   * #  !2RY(( R@   N))>7 C   .. 7r   