HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/PIL/__pycache__/WalImageFile.cpython-38.pyc
U

g�
^_�@s0ddlZddlmZddlmZdd�ZdZdS)�N�)�Image)�i32lec
CsFdd�}t|d�r||�St�|d��}||�W5QR�SQRXdS)a
    Load texture from a Quake2 WAL texture file.

    By default, a Quake2 standard palette is attached to the texture.
    To override the palette, use the <b>putpalette</b> method.

    :param filename: WAL file name, or an opened file handle.
    :returns: An image instance.
    c	Ss�|�d�}t|d�t|d�f}t|d�}|�|�t�|�t�d||�|d|d��}|�t�d|_d	|_	|dd��
d
d�d|jd<|dd
��
d
d�d}|r�||jd<|S)N�d� �$�(�PrrZWALzQuake2 Texture��name�8�X�	next_name)�read�i32�seekrZ_decompression_bomb_checkZ	frombytesZ
putpalette�
quake2palette�formatZformat_description�split�info)�fp�header�size�offsetZimr�r�2/usr/lib/python3/dist-packages/PIL/WalImageFile.py�imopen*s



 

zopen.<locals>.imopenr�rbN)�hasattr�builtins�open)�filenamerrrrrr s


r s"""&&&))),,,///222555777:::<<<$" 






##&""%" #!"  


-( )$'"%8.1),%& <07,3(-$("
10.,
*'
%!




)#'!& %#! 


&# 


3"5)&7/-95479:379046+14'.1"+/(,%* &
%"
 

,!!*)'&$"!




.0)-.'+,&**$()#''!&&$$""

0-,*(&$!




()8&'6%&4$$1""/ !-*'%!

/2)-0&+.$),!'*%(#&!%"



?<9 5#1#-#)?????9??1??*?? ???<?9?5?2?-=*;&9!742/-*'#=???

<.*6' 0!)<9772/1,(+&!0" )r�rZ_binaryrrr rrrrr�<module>s
.�