Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 iaªã@sBdZddlmZmZddlmZGdd„dejƒZdd„ZdZ 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. é)ÚImageÚ ImageFile)Úi32lec@s$eZdZdZdZdd„Zdd„ZdS)Ú WalImageFileZWALzQuake2 TexturecCs’d|_|jjdƒ}t|dƒt|dƒf|_tj|jƒt|dƒ}|jj|ƒ|dd…j ddƒd |j d <|d d…j ddƒd }|rŽ||j d <dS)NÚPé éé é$é(óréÚnameé8Ú next_nameréXédr) ÚmodeÚfpÚreadÚi32Ú_sizerZ_decompression_bomb_checkÚsizeÚseekÚsplitÚinfo)ÚselfÚheaderÚoffsetr©rú1/tmp/tmp5hum_rxs/lib64/python/PIL/WalImageFile.pyÚ_open#s    zWalImageFile._opencCsZ|jr dStjj|j|jƒ|_|j|jj|jd|jdƒƒ|j t ƒtjj |ƒdS)Nr r) ZimrÚcoreÚnewrrÚ frombytesrrZ putpaletteÚ quake2paletteÚload)rrrr r&5s " zWalImageFile.loadN)Ú__name__Ú __module__Ú __qualname__ÚformatZformat_descriptionr!r&rrrr rsrcCst|ƒ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)Úfilenamerrr Úopen@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) Ú__doc__ÚrrZ_binaryrrrr,r%rrrr Ús  "