Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
ia3 ã @ sª d Z ddlZddlmZ ddlmZmZ ddlmZ dZ
dZdZd Z
d
ZdZdZd
ZdZd
ZdZdZdZdZdZdZdZdZdZdZdZdZd Z dZ!dZ"dZ#e Z$e"Z%e"eB Z&e#Z'e#eB Z(eZ)e!Z*eeB e
B eB Z+eZ,eZ-eZ.eZ/eZ0e
Z1eZ2eeB Z3eZ4eeB Z5eeB Z6eeB Z7eeB Z8eeB Z9eeB Z:dZ;dZdZ?dZ@dZAd ZBd!ZCd"ZDd#ZEd$ZFG d%d&„ d&ejƒZGd'd(„ ZHd)d*„ ZIejJeGjKeGeIƒ ejLeGjKeHƒ ejMeGjKd+ƒ dS ),aŠ
A Pillow loader for .dds files (S3TC-compressed aka DXTC)
Jerome Leclanche
Documentation:
https://web.archive.org/web/20170802060935/http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_compression_s3tc.txt
The contents of this file are hereby released in the public domain (CC0)
Full text of the CC0 license:
https://creativecommons.org/publicdomain/zero/1.0/
é N)ÚBytesIOé )ÚImageÚ ImageFile)Úo32leiDDS é é é i i i i € i @ i i i i i @ i € i é é@ iDXT1iDXT3iDXT5é é é éR éS éT éa éb éc c @ s$ e Zd ZdZdZdd„ Zdd„ ZdS )ÚDdsImageFileZDDSzDirectDraw Surfacec C s" t jd| jjdƒƒ\}}|dkr2tdt|ƒ› �ƒ‚| jj|d ƒ}t|ƒdkrbtdt|ƒ› d�ƒ‚t|ƒ}t jd |jd
ƒƒ\}}}||f| _d| _ t jd |jd
ƒƒ\}} }
t jd|jd
ƒƒ t jd|jdƒƒ\}}|jdƒ}
t jd|jdƒƒ\}t jd|jdƒƒ}|t
@ �r†dd„ t|ƒD ƒ}d}|dk�r:||d 7 }nd| _ ||d |d |d 7 }dd3| j d|d d d4… ddffg| _
�n˜|d }d}|
dk�rªd| _d}�nX|
d k�rÂd!| _d"}�n@|
d#k�rÚd$| _d%}�n(|
d&k�rød'| _d(}d| _ �n
|
d)k�rð|d*7 }t jd| jjdƒƒ\}| jjdƒ |ttfk�rLd+| _d(}d| _ n¢|tk�rhd'| _d(}d| _ n†|ttfk�r‚d,| _d-}nl|tk�r¢d,| _d5| jd/<