%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/PIL/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/PIL/__pycache__/FliImagePlugin.cpython-312.pyc

�

��e����ddlmZddlZddlmZmZmZddlmZ	ddlm
ZddlmZd�Z
Gd	�d
ej
�Zejej ee
�ej"ej ddg�y)
�)�annotationsN�)�Image�	ImageFile�ImagePalette)�i16le)�i32le)�o8c�^�t|�dk\xrt|d�dvxrt|d�dvS)N��)��i��)r�)�len�i16)�prefixs �4/usr/lib/python3/dist-packages/PIL/FliImagePlugin.py�_acceptrs:���F��q��	&����N�.�.�	&����O�v�%��c�6�eZdZdZdZdZd�Zd�Zd�Zd�Z	d�Z
y	)
�FliImageFile�FLIzAutodesk FLI/FLC AnimationFc	�J�|jjd�}t|�r|dddk(s
d}t|��t	|d�|_|j
dkD|_d|_t	|d	�t	|d
�f|_t|d�}t	|d�}|d
k(r|dzdz}||jd<td�D�cgc]}|||f��	}}|jjd�}d|_t	|d�dk(r8|jt|�z|_|jjd�}t	|d�dk(r�t	|d�}d}t|�D]�}	|�-|jj|dz
tj�|jjd�}t	|d�}
|
dvr|j!||
dk(rdnd�nt|�}|r��n|D���
cgc])\}}}
t#|�t#|�zt#|
�z��+}}}}
t%j&ddj)|��|_d|_|j|_|jj1�|_|jd�ycc}wcc}
}}w)N���sznot an FLI/FLC filerr�P��
�r
ri��F�duration�i�i��)r
�r%�r�RGBr���)�fp�readr�SyntaxErrorr�n_frames�is_animated�_mode�_size�i32�info�range�_FliImageFile__offset�seek�os�SEEK_CUR�_paletter
r�raw�join�palette�_FliImageFile__frame�_fp�tell�_FliImageFile__rewind)�self�s�msgr#�magic�ar:�number_of_subchunks�
chunk_size�_�
chunk_type�r�g�bs              r�_openzFliImageFile._open0sN���G�G�L�L������
�q��B�x�;�6�'�C��c�"�"��A�q�	��
��=�=�1�,�����
���A�Y��A�r�
�*��
��q�"�:���A�q�	���F�?� �4��B�.�H� (��	�	�*��',�C�j�1��A�q�!�9�1��1��G�G�L�L������
��q�!�9��� �M�M�C��F�2�D�M������R� �A��q�!�9���"%�a��)���J��.�/�

���)��G�G�L�L��a�����=��G�G�L�L��O�� ��A�Y�
���(��M�M�'�
�b�0@�1�a�H�� ��V�
�!��

�;B�B�B�Y�a��A�2�a�5�2�a�5�=�2�a�5�(�B��B�#�'�'��s�x�x��/@�A�������7�7����������
��	�	�!���E2��6Cs�J�4.Jc��d}tt|jjd���D]�}|jjd�}||dz}|d}|dk(rd}|jj|dz�}tdt	|�d�D]-}|||z}||dz|z}||dz|z}	|||	f||<|dz
}�/��y)Nrr&rr$r)r2rr)r*r)
r?r:�shift�i�er@�nrHrIrJs
          rr7zFliImageFile._paletteks���
���s�4�7�7�<�<��?�+�,�	�A������Q��A��A�a�D��A��!��A��A�v��������Q��U�#�A��1�c�!�f�a�(�
���a�D�E�M���a�!�e�H��%���a�!�e�H��%����A�Y���
��Q���
�	rc���|j|�sy||jkr|jd�t|jdz|dz�D]}|j|��y)Nrr)�_seek_checkr;�_seekr2)r?�frame�fs   rr4zFliImageFile.seek}sX������&���4�<�<���J�J�q�M��t�|�|�a�'����3�	�A��J�J�q�M�	rc�<�|dk(r4d|_|jj|j�d|_n|j�||jdzk7rd|��}t
|��||_|j|_|jj|j�|jjd�}|s
d}t|��t|�}||_dd	|jz|jdfg|_
|xj|z
c_y)
Nrr(rrzcannot seek to frame r
zmissing frame size�fli)rr)r;r<r4r>r3�load�
ValueErrorr)r*�EOFErrorr0�decodermaxblock�size�tile)r?rTrAr@�	framesizes     rrSzFliImageFile._seek�s����A�:��D�L��H�H�M�M�$�-�-�(��D�M�
�I�I�K��D�L�L�1�$�$�)�%��1�C��S�/�!�����(�(��������T�]�]�#��G�G�L�L��O���&�C��3�-����F�	�(����V�d�i�i�/�����E�F��	��
�
��"�
rc��|jS)N)r;)r?s rr=zFliImageFile.tell�s���|�|�rN)�__name__�
__module__�__qualname__�format�format_description�!_close_exclusive_fp_after_loadingrKr7r4rSr=�rrrr+s-��
�F�5��(-�%�9�v�$�#�<rrz.fliz.flc)�
__future__rr5�rrr�_binaryrrr	r0r
rr�
register_openrc�register_extensionsrfrr�<module>rlso��"#�	�,�,�!�!���z�9�&�&�z�@����L�'�'��w�?�����,�-�-���/?�@r

Zerion Mini Shell 1.0