File: //lib/python3/dist-packages/PIL/__pycache__/WebPImagePlugin.cpython-310.pyc
o
Z#�aN* � @ s� d dl mZ ddlmZmZ z
ddlmZ dZW n ey# dZY nw dddd�Zddd�Z d d
d
d�Z
dd
� ZG dd� dej�Zdd� Z
dd� Ze�ejee� erue�eje� ejree�eje
� e�ejd� e�ejd� dS dS )� )�BytesIO� )�Image� ImageFile)�_webpTF)�RGBX�RGBA�RGB)r r r r )s VP8 s VP8Xs VP8Lc C sV | d d� dk}| dd� dk}| dd� t v }|r%|r'|r)ts# dS dS d S d S d S ) N� s RIFF� � s WEBP� zEimage file could not be identified because WEBP support not installedT)�_VP8_MODES_BY_IDENTIFIER� SUPPORTED)�prefix�is_riff_file_format�is_webp_file�is_valid_vp8_mode� r �5/usr/lib/python3/dist-packages/PIL/WebPImagePlugin.py�_accept s ��r c sj e Zd ZdZdZdZdZdd� Zdd� Zdd � Z ddd�Z
d
d� Zdd� Z� fdd�Z
� fdd�Z� ZS )�
WebPImageFile�WEBPz
WebP imager c C s� t js>t �| j�� �\}}}| _}}|r|| jd<