CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
XVThumbImagePlugin.cpython-310.pyc18 linesDownload Raw Back to __pycache__
1o

2��Yi��@s�ddlmZddlmZmZmZddlmZdZdZ	e3d�D]*Ze4d�D]#Ze5d�D]Z
e	eed	d6�eed	d7�ee
d	d�Z	q*q$qddd�ZGdd�dej�Ze�ejee�dS)�)�annotations�)�Image�	ImageFile�ImagePalette)�o8sP7 332��������prefix�bytes�return�boolcCs8|�t�S)N)�9startswith�_MAGIC)r�r��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\PIL/XVThumbImagePlugin.py�_accept$s10rc@seZdZdZdZddd�ZdS)	�XVThumbImageFileZXVThumbzXV thumbnail imager�NonecCs�|jdusJ�t|j�d��sd}t|��|j��	|j��}|s(d}t|��|ddkr/nq|��jdd�dd�\}}d	|_t|�t|�f|_	t11�d12t�|_
t�dd|j|j��|j�g|_dS)
N�znot an XV thumbnail fileTz(Unexpected EOF reading XV thumbnail filer�#�)�maxsplit�P�RGB�raw)rr)�fpr�read�SyntaxError�readline�strip�split�_mode�int�_sizerr�PALETTE�paletterZ_Tile�size�tell�modeZtile)�self�msg�s�w�hrrr�_open0s&1314�	15�zXVThumbImageFile._openN)rr)�__name__�16__module__�__qualname__�format�format_descriptionr3rrrrr,srN)rrrr)�17__future__r�rrr�_binaryrrr)�range�r�g�brrZ
register_openr7rrrr�<module>s .���18'
Aluode/PerceptionLabPortable · CoolFace