o
    Ȑi                     @   s   d dl mZmZmZ d dlmZ dZdZedD ]*Z	edD ]#Z
edD ]Zeee	d d ee
d d  eed d	   Zq$qqd
d ZG dd dejZeejee dS )   )Image	ImageFileImagePalette)o8s   P7 332                   c                 C   s   | d d t kS )N   )_MAGIC)prefix r   e/var/www/html/eduruby.in/lip-sync/lip-sync-env/lib/python3.10/site-packages/PIL/XVThumbImagePlugin.py_accept#   s   r   c                   @   s   e Zd ZdZdZdd ZdS )XVThumbImageFileZXVThumbzXV thumbnail imagec                 C   s   t | jdsd}t|| j  	 | j }|s!d}t||d dkr(nq|  }d| _t|d t|d f| _	t
d	t| _d
d| j | j | jddffg| _d S )Nr   znot an XV thumbnail fileTz(Unexpected EOF reading XV thumbnail file    #   Pr   RGBraw)r   r   )r   fpreadSyntaxErrorreadlinestripsplit_modeint_sizer   r   PALETTEpalettesizetellmodeZtile)selfmsgsr   r   r   _open/   s"   

	(zXVThumbImageFile._openN)__name__
__module____qualname__formatformat_descriptionr)   r   r   r   r   r   +   s    r   N) r   r   r   _binaryr   r   r!   rangergbr   r   Zregister_openr-   r   r   r   r   <module>   s   .#