Files
old-saburly-wagtail-web/env/lib/python3.10/site-packages/PIL/__pycache__/WalImageFile.cpython-310.pyc

62 lines
2.9 KiB
Plaintext
Raw Normal View History

2024-08-27 20:33:44 +02:00
o
<00><><EFBFBD>f<EFBFBD><00>@sNdZddlmZddlmZmZddlmZGdd<07>dej<05>Z dd <09>Z
d
Z d S) 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<6E>)<02>Image<67> ImageFile)<01>i32lec@s&eZdZdZdZd
dd<06>Zdd<08>Zd S) <0B> WalImageFile<6C>WALzQuake2 Texture<72>return<72>NonecCs<>d|_|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}|rI||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>R/home/amir/Desktop/saburlyweb/env/lib/python3.10/site-packages/PIL/WalImageFile.py<70>_open#s  
 <04>zWalImageFile._opencCsR|js#tj<02>|j|j<05>|_|<00>|j<07>|jd|jd<00><01>|<00> t
<EFBFBD>tj<01> |<00>S)Nrr) <0C>imr<00>core<72>new<65>moder<00> frombytesrr<00>
putpalette<EFBFBD> quake2palette<74>load)rr"r"r#r,5s
"
 zWalImageFile.loadN)r r
)<07>__name__<5F>
__module__<EFBFBD> __qualname__<5F>format<61>format_descriptionr$r,r"r"r"r#rs

 rcCst|<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)<01>filenamer"r"r#<00>open=s
r3s """&&&))),,,///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) <0C>__doc__<5F>
__future__r<00>rr<00>_binaryrrrr3r+r"r"r"r#<00><module>s
 <06>