+
    JV-j‚  ã                  ó„   € R t ^ RIHt ^ RIHt ^RIHtHt ^RIH	t
 ^RIHt  ! R R]P                  4      tR R	 ltR
tR# )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                  ó6   € ] tR t^#tRtRtR R ltR R ltRtR# )	ÚWalImageFileÚWALzQuake2 Texturec               ó   € V ^8„  d   QhRR/# )é   ÚreturnÚNone© )Úformats   "Úa/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/PIL/WalImageFile.pyÚ__annotate__ÚWalImageFile.__annotate__'   s   € ÷ /ñ /�tñ /ó    c                	óô  € R V n         V P                  f   Q hV P                  P                  ^d4      p\        V^ 4      \        V^$4      3V n        \
        P                  ! V P                  4       \        V^(4      pV P                  P                  V4       VR,          P                  R^4      ^ ,          V P                  R&   V^8^X P                  R^4      ^ ,          ;p'       d   W0P                  R&   R# R# )ÚPN:Né    Nó    ÚnameÚ	next_name)Ú_modeÚfpÚreadÚi32Ú_sizer   Ú_decompression_bomb_checkÚsizeÚseekÚsplitÚinfo)ÚselfÚheaderÚoffsetr   s   &   r   Ú_openÚWalImageFile._open'   sÑ   € ØˆŒ
ð �w‰wÒ"Ð"Ð"Ø—‘—‘Ð/Ó0ˆÜ˜ “_¤c¨&°"£oÐ5ˆŒ
Ü×'Ò'¨¯	©	Ô2ô �V˜R“ˆØ�‰�‰�VÔð # 3�K×-Ñ-¨e°QÓ7¸Õ:ˆ�	‰	�&ÑØ˜r GÐ,×2Ñ2°5¸!Ó<¸QÕ?Ð?ˆ9Ö?Ø%.�I‰I�kÓ"ñ @r   c               ó   € V ^8„  d   QhRR/# )r   r   zImage.core.PixelAccess | Noner   )r   s   "r   r   r   9   s   € ÷ &ñ &Ð3ñ &r   c                	ó¾  € V P                   f²   V P                  f   Q h\        P                  P	                  V P
                  V P                  4      V n        V P                  V P                  P                  V P                  ^ ,          V P                  ^,          ,          4      4       V P                  \        4       \        P                  P                  V 4      # )N)Ú_imr   r   ÚcoreÚnewÚmoder!   ÚimÚ	frombytesr   Ú
putpaletteÚquake2paletteÚload)r%   s   &r   r4   ÚWalImageFile.load9   s‰   € Ø�8‰8ÒØ—7‘7Ò&Ð&Ð&Ü—j‘j—n‘n T§Y¡Y°·	±	Ó:ˆDŒGØ�N‰N˜4Ÿ7™7Ÿ<™<¨¯	©	°!­°t·y±yÀµ|Õ(CÓDÔEØ�O‰OœMÔ*Ü�{‰{×Ñ Ó%Ð%r   )r   r   r0   N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   Úformat_descriptionr(   r4   Ú__static_attributes__r   r   r   r	   r	   #   s   † Ø€FØ)Ðõ/÷$&ñ &r   r	   c               ó    € V ^8„  d   QhRRRR/# )r   ÚfilenamezStrOrBytesPath | IO[bytes]r   r	   r   )r   s   "r   r   r   B   s   € ÷ 
"ñ 
"Ð-ð 
"°,ñ 
"r   c                ó   € \        V 4      # )a  
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?   B   s   € ô ˜Ó!Ð!r   s   """&&&))),,,///222555777:::<<<$" 


##&""%" #!"  -( )$'"%8.1),%& <07,3(-$("
10.,*'
%!


)#'!& %#! 

&# 

3"5)&7/-95479:379046+14'.1"+/(,%* &%"
 
,!!*)'&$"!


.0)-.'+,&**$()#''!&&$$""
0-,*(&$!



()8&'6%&4$$1""/ !-*'%!
/2)-0&+.$),!'*%(#&!%"

?<9 5#1#-#)?????9??1??*?? ???<?9?5?2?-=*;&9!742/-*'#=???<.*6' 0!)<9772/1,(+&!0" N)Ú__doc__Ú
__future__r   Útypingr   Ú r   r   Ú_binaryr   r   Ú_typingr   r	   r?   r3   r   r   r   Ú<module>rF      s=   ðñ	õ #å ç Ý !Ý #ô&�9×&Ñ&ô &õ>
"ð/Hò r   