1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Ë
³òúhµãó~—dZddlmZddlmZddlmZmZddlm    Z
ddl m Z Gd„d    ej«Z d d
„Zd Zy )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ó$—eZdZdZdZdd„Zdd„Zy)Ú WalImageFileÚWALzQuake2 Texturecó¬—d|_|jjd«}t|d«t|d«f|_t j |j«t|d«}|jj|«|ddjdd«d|jd    <|d
d jdd«dx}r||jd <yy) NÚPédé é$é(órrÚnameé8éXÚ    next_name) Ú_modeÚfpÚreadÚi32Ú_sizerÚ_decompression_bomb_checkÚsizeÚseekÚsplitÚinfo)ÚselfÚheaderÚoffsetrs    úCH:\Change_password\venv_build\Lib\site-packages\PIL/WalImageFile.pyÚ_openzWalImageFile._open&sŀ؈Œ
ð—‘—‘Ð/Ó0ˆÜ˜ “_¤c¨&°"£oÐ5ˆŒ
Ü ×'Ñ'¨¯    ©    Ô2ôV˜R“ˆØ ‰ ‰ VÔð# 3 B˜K×-Ñ-¨e°QÓ7¸Ñ:ˆ    ‰    &ÑØ˜r GÐ,×2Ñ2°5¸!Ó<¸QÑ?Ð ?ˆ9Ð ?Ø%.ˆDI‰IkÒ "ð @ócó‚—|j€•tjj|j|j
«|_|j|jj|j
d|j
dz««|jt«tjj|«S)Nrr) Ú_imrÚcoreÚnewÚmoderÚimÚ    frombytesrrÚ
putpaletteÚ quake2paletteÚload)r"s r%r1zWalImageFile.load7sy€Ø 8‰8Ð Ü—j‘j—n‘n T§Y¡Y°·    ±    Ó:ˆDŒGØ N‰N˜4Ÿ7™7Ÿ<™<¨¯    ©    °!© °t·y±yÀ±|Ñ(CÓDÔ EØ O‰OœMÔ *܏{‰{×Ñ Ó%Ð%r'N)ÚreturnÚNone)r2zImage.core.PixelAccess | None)Ú__name__Ú
__module__Ú __qualname__ÚformatÚformat_descriptionr&r1©r'r%r r "s„Ø €FØ)Ðó/ô"&r'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 )Úfilenames r%Úopenr<?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" N)r;zStrOrBytesPath | IO[bytes]r2r )Ú__doc__Ú
__future__rÚtypingrÚrrÚ_binaryrrÚ_typingr    r r<r0r9r'r%ú<module>rCs=ðñ    õ#åçÝ!Ý#ô&9×&Ñ&ô&ó:
"ð/Hñr'