403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /tmp/calpy/PIL/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /tmp/calpy/PIL/__pycache__/WalImageFile.cpython-311.pyc
�

Υ=j���|�dZddlmZddlmZddlmZmZddlm	Z
ddlmZGd�d	ej��Z
dd
�ZdZdS)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�&�eZdZdZdZd	d�Zd
d�ZdS)�WalImageFile�WALzQuake2 Texture�return�Nonec���d|_|j�J�|j�d��}t|d��t|d��f|_tj|j��t|d��}|j�|��|dd��	dd��d|j
d	<|d
d��	dd��dx}r||j
d<dSdS)
N�P�d� �$�(�rr�name�8�X�	next_name)�_mode�fp�read�i32�_sizer�_decompression_bomb_check�size�seek�split�info)�self�header�offsetrs    �C/tmp/claude-1015/pip-target-jmvfl800/lib/python/PIL/WalImageFile.py�_openzWalImageFile._open's�����
��w�"�"�"�����/�0�0�����_�_�c�&�"�o�o�5��
�
�'��	�2�2�2��V�R��������V����#�3�B�3�K�-�-�e�Q�7�7��:��	�&���r�G�|�,�2�2�5�!�<�<�Q�?�?�9�	/�%.�D�I�k�"�"�"�	/�	/��Image.core.PixelAccess | Nonec�~�|j��|j�J�tj�|j|j��|_|�|j�	|jd|jdz����|�
t��tj�|��S)Nrr)
�_imrr�core�new�moder �im�	frombytesr�
putpalette�
quake2palette�load)r$s r'r4zWalImageFile.load9s����8���7�&�&�&��j�n�n�T�Y��	�:�:�D�G��N�N�4�7�<�<��	�!��t�y��|�(C�D�D�E�E�E��O�O�M�*�*�*��{����%�%�%r)N)r
r)r
r*)�__name__�
__module__�__qualname__�format�format_descriptionr(r4�r)r'rr#sG������
�F�)��/�/�/�/�$&�&�&�&�&�&r)r�filename�StrOrBytesPath | IO[bytes]r
c� �t|��S)a2
    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 :py:func:`PIL.Image.Image.putpalette()` method.

    :param filename: WAL file name, or an opened file handle.
    :returns: An image instance.
    )r)r;s r'�openr>Bs����!�!�!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" N)r;r<r
r)�__doc__�
__future__r�typingr�rr�_binaryrr�_typingr	rr>r3r:r)r'�<module>rEs���	�	�#�"�"�"�"�"���������������!�!�!�!�!�!�#�#�#�#�#�#�&�&�&�&�&�9�&�&�&�&�>
"�
"�
"�
"�/H��
�
r)

Youez - 2016 - github.com/yon3zu
LinuXploit