File: //home/arjun/projects/env/lib/python3.10/site-packages/PIL/__pycache__/GdImageFile.cpython-310.pyc
o
we0
� @ sP d Z ddlmZmZmZ ddlmZ ddlmZ G dd� dej�Z
ddd �Zd
S )a�
.. note::
This format cannot be automatically recognized, so the
class is not registered for use with :py:func:`PIL.Image.open()`. To open a
gd file, use the :py:func:`PIL.GdImageFile.open()` function instead.
.. warning::
THE GD FORMAT IS NOT DESIGNED FOR DATA INTERCHANGE. This
implementation is provided for convenience and demonstrational
purposes only.
� )� ImageFile�ImagePalette�UnidentifiedImageError)�i16be)�i32bec @ s e Zd ZdZdZdZdd� ZdS )�GdImageFilea%
Image plugin for the GD uncompressed format. Note that this format
is not supported by the standard :py:func:`PIL.Image.open()` function. To use
this plugin, you have to import the :py:mod:`PIL.GdImageFile` module and
use the :py:func:`PIL.GdImageFile.open()` function.
�GDzGD uncompressed imagesc C s� | j �d�}t|�dvrd}t|��d| _t|d�t|d�f| _|d }|r(dnd}t|d | �}|d
k r:|| jd<