Sindbad~EG File Manager
�
&ٜg�
� � � d Z ddlmZ ddlmZ ddlmZmZmZ ddl m
Z ddl mZ
ddlmZ G d � d
ej � Zd
dd�Zy)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.
� )�annotations)�IO� )� ImageFile�ImagePalette�UnidentifiedImageError)�i16be)�i32be)�StrOrBytesPathc � � e Zd ZdZdZdZdd�Zy)�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 �� � | j �J �| j j d� }t |� dvr
d}t |� �d| _ t |d� t |d� f| _ |d }|rdnd}t
|d |z � }|d
k r|| j d<