Sindbad~EG File Manager
�
&ٜgH � �~ � d Z ddlmZ ddlmZ ddlmZmZ ddlm Z
ddlmZ G d� d ej � Z
d
d
�ZdZy)a�
This reader is based on the specification available from:
https://www.flipcode.com/archives/Quake_2_BSP_File_Format.shtml
and has been tested with a few sample files found using google.
.. note::
This format cannot be automatically recognized, so the reader
is not registered for use with :py:func:`PIL.Image.open()`.
To open a WAL file, use the :py:func:`PIL.WalImageFile.open()` function instead.
� )�annotations)�IO� )�Image� ImageFile)�i32le)�StrOrBytesPathc �$ � e Zd ZdZdZdd�Zdd�Zy)�WalImageFile�WALzQuake2 Texturec � � d| _ | j j d� }t |d� t |d� f| _ t j | j � t |d� }| j j |� |d d j dd� d | j d <