%PDF- %PDF-
Direktori : /lib/python3/dist-packages/PIL/__pycache__/ |
Current File : //lib/python3/dist-packages/PIL/__pycache__/Hdf5StubImagePlugin.cpython-312.pyc |
� ��e5 � � � d dl mZ ddlmZmZ dad� Zd� Z G d� dej � Z d � Z ej e j e e� ej e j e � ej e j d dg� y)� )�annotations� )�Image� ImageFileNc � � | a y)z_ Install application-specific HDF5 image handler. :param handler: Handler object. N��_handler)�handlers �9/usr/lib/python3/dist-packages/PIL/Hdf5StubImagePlugin.py�register_handlerr s � � �H� c � � | d d dk( S )N� s �HDF � )�prefixs r �_acceptr s � ��"�1�:�-�-�-r c � � e Zd ZdZdZd� Zd� Zy)�HDF5StubImageFile�HDF5c �4 � | j j � }t | j j d� � s d}t |� �| j j |� d| _ d| _ | j � }|r|j | � y y )Nr zNot an HDF file�F)r r ) �fp�tellr �read�SyntaxError�seek�_mode�_size�_load�open)�self�offset�msg�loaders r �_openzHDF5StubImageFile._open( st � ���������t�w�w�|�|�A��'�#�C��c�"�"������V�� �� ��� ��������K�K��� r c � � t S )Nr )r! s r r zHDF5StubImageFile._load9 s � ��r N)�__name__� __module__�__qualname__�format�format_descriptionr% r r r r r r $ s � � �F����"r r c �x � t �t t d� s d}t |� �t j | ||� y )N�savezHDF5 save handler not installed)r �hasattr�OSErrorr- )�imr �filenamer# s r �_saver2 = s0 � ���w�x��8�/���c�l���M�M�"�b�(�#r z.h5z.hdf)� __future__r � r r r r r � StubImageFiler r2 � register_openr* � register_save�register_extensionsr r r �<module>r9 s� �� #� ����.�� �/�/� �2$� �� � �%�,�,�.?�� I� �� � �%�,�,�e� 4� �� � �+�2�2�U�F�O� Dr