Files
serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/__pycache__/WalImageFile.cpython-310.pyc

61 lines
3.1 KiB
Plaintext
Raw Normal View History

o
<00>Q<EFBFBD>j<EFBFBD><00>@shdZddlmZddlmZddlmZmZddlm Z
ddl m Z Gdd <09>d ej<07>Z dd d<0E>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.
<EFBFBD>)<01> annotations)<01>IO<49>)<02>Image<67> ImageFile)<01>i32le)<01>StrOrBytesPathc@s(eZdZdZdZd dd<06>Zd dd <09>Zd
S) <0A> WalImageFile<6C>WALzQuake2 Texture<72>return<72>NonecCs<>d|_|jdus
J<00>|j<01>d<02>}t|d<03>t|d<04>f|_t<05>|j<07>t|d<05>}|j<01>|<02>|dd<03><00> dd<07>d|j
d <|d
d <0B><00> dd<07>d}rP||j
d <dSdS) N<>P<>d<00> <00>$<00>(<00>rr<00>name<6D>8<00>X<00> next_name) <0B>_mode<64>fp<66>read<61>i32<33>_sizer<00>_decompression_bomb_check<63>size<7A>seek<65>split<69>info)<04>self<6C>header<65>offsetr<00>r$<00>s/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/WalImageFile.py<70>_open's  
 <04>zWalImageFile._open<65>Image.core.PixelAccess | NonecCsd|jdur,|jdus J<00>tj<03>|j|j<06>|_|<00>|j<01> |jd|jd<00><01>|<00>
t <0B>tj<02> |<00>S)Nrr) <0A>_imrr<00>core<72>new<65>moder<00>im<69> frombytesr<00>
putpalette<EFBFBD> quake2palette<74>load)r!r$r$r%r09s
"
 zWalImageFile.loadN)r r )r r')<07>__name__<5F>
__module__<EFBFBD> __qualname__<5F>format<61>format_descriptionr&r0r$r$r$r%r #s

r <00>filename<6D>StrOrBytesPath | IO[bytes]r cCst|<00>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 )r6r$r$r%<00>openBs
r8s """&&&))),,,///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)r6r7r r )<10>__doc__<5F>
__future__r<00>typingr<00>rr<00>_binaryrr<00>_typingrr r8r/r$r$r$r%<00><module>s   
<06>