intellecton/venv/lib/python3.12/site-packages/PIL/__pycache__/WalImageFile.cpython-312.pyc

54 lines
4.1 KiB
Text
Raw Normal View History

<EFBFBD>
߼j<><00><01>~<00>dZddlmZddlmZddlmZmZddlm Z
ddl m Z Gd<08>d ej<00>Z d d
<EFBFBD>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.
<EFBFBD>)<01> annotations)<01>IO<49>)<02>Image<67> ImageFile)<01>i32le)<01>StrOrBytesPathc<01>$<00>eZdZdZdZdd<03>Zdd<04>Zy)<08> WalImageFile<6C>WALzQuake2 Texturec<01><><00>d|_|j<00>J<00>|jjd<02>}t|d<03>t|d<04>f|_t j |j<00>t|d<05>}|jj|<02>|ddjdd<07>d|jd <|d
d jdd<07>dx}r||jd <yy) 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>offsetrs <20>S/home/antigravity/intellecton/venv/lib/python3.12/site-packages/PIL/WalImageFile.py<70>_openzWalImageFile._open's<><00><00><18><04>
<EFBFBD><14>w<EFBFBD>w<EFBFBD>"<22>"<22>"<22><15><17><17><1C><1C>/<2F>0<><06><18><16><12>_<EFBFBD>c<EFBFBD>&<26>"<22>o<EFBFBD>5<><04>
<EFBFBD> <0A>'<27>'<27><04> <09> <09>2<><15>V<EFBFBD>R<EFBFBD><1F><06> <0C><07><07> <0C> <0C>V<EFBFBD><1C>#<23>3<EFBFBD>B<EFBFBD>K<EFBFBD>-<2D>-<2D>e<EFBFBD>Q<EFBFBD>7<><01>:<3A><04> <09> <09>&<26><19><1E>r<EFBFBD>G<EFBFBD>,<2C>2<>2<>5<EFBFBD>!<21><<3C>Q<EFBFBD>?<3F> ?<3F>9<EFBFBD> ?<3F>%.<2E>D<EFBFBD>I<EFBFBD>I<EFBFBD>k<EFBFBD> "<22> @<01>c<01><><00>|j<00><>|j<00>J<00>tjj |j
|j <00>|_|j|jj|j d|j dz<00><00>|jt<00>tjj|<00>S)Nrr) <0A>_imrr<00>core<72>new<65>moder<00>im<69> frombytesr<00>
putpalette<EFBFBD> quake2palette<74>load)r"s r%r1zWalImageFile.load9s<><00><00> <0F>8<EFBFBD>8<EFBFBD> <1B><17>7<EFBFBD>7<EFBFBD>&<26> &<26>&<26><1B>j<EFBFBD>j<EFBFBD>n<EFBFBD>n<EFBFBD>T<EFBFBD>Y<EFBFBD>Y<EFBFBD><04> <09> <09>:<3A>D<EFBFBD>G<EFBFBD> <10>N<EFBFBD>N<EFBFBD>4<EFBFBD>7<EFBFBD>7<EFBFBD><<3C><<3C><04> <09> <09>!<21> <0C>t<EFBFBD>y<EFBFBD>y<EFBFBD><11>|<7C>(C<>D<> E<> <10>O<EFBFBD>O<EFBFBD>M<EFBFBD> *<2A><14>{<7B>{<7B><1F><1F><04>%<25>%r'N)<02>return<72>None)r2zImage.core.PixelAccess | None)<07>__name__<5F>
__module__<EFBFBD> __qualname__<5F>format<61>format_descriptionr&r1<00>r'r%r r #s<00><00> <12>F<EFBFBD>)<29><16>/<2F>$&r'r c<01><00>t|<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>filenames r%<00>openr<Bs<00><00> <18><08> !<21>!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 )<10>__doc__<5F>
__future__r<00>typingr<00>rr<00>_binaryrr<00>_typingr r r<r0r9r'r%<00><module>rCs=<00><01> <04>#<23><15><1E>!<21>#<23>&<26>9<EFBFBD>&<26>&<26>&<26>>
"<22>/H<01>r'