§
    2?Äj{  ã                   ó‚   — d Z ddlZddlmZ ddlmZ  G d„ de¦  «        Z edd	d
d¦  «        Z ej	        e¦  «         dS )zCExample plugin. You can use this as a template for your own plugin.é    Né   )Úformats)ÚFormatc                   ój   — e Zd ZdZd„ Zd„ Z G d„ dej        ¦  «        Z G d„ dej        ¦  «        ZdS )	ÚDummyFormata  The dummy format is an example format that does nothing.
    It will never indicate that it can read or write a file. When
    explicitly asked to read, it will simply read the bytes. When
    explicitly asked to write, it will raise an error.

    This documentation is shown when the user does ``help('thisformat')``.

    Parameters for reading
    ----------------------
    Specify arguments in numpy doc style here.

    Parameters for saving
    ---------------------
    Specify arguments in numpy doc style here.

    c                 ó&   — |j         | j        v rdS d S ©NT©Ú	extensionÚ
extensions©ÚselfÚrequests     úHC:\Projects\Historical\venv\Lib\site-packages\imageio/plugins/example.pyÚ	_can_readzDummyFormat._can_read   s!   € ð, Ô ¤Ð/Ð/Ø�4ð 0Ð/ó    c                 ó&   — |j         | j        v rdS d S r	   r
   r   s     r   Ú
_can_writezDummyFormat._can_write7   s!   € ð Ô ¤Ð/Ð/Ø�4ð 0Ð/r   c                   ó.   — e Zd Zd	d„Zd„ Zd„ Zd„ Zd„ ZdS )
úDummyFormat.ReaderFé   c                 ó^   — | j                              ¦   «         | _        || _        d | _        d S ©N)r   Úget_fileÚ_fpÚ_lengthÚ_data)r   Úsome_optionÚlengths      r   Ú_openzDummyFormat.Reader._openF   s+   € ð ”|×,Ò,Ñ.Ô.ˆDŒHØ!ˆDŒLØˆDŒJˆJˆJr   c                 ó   — d S r   © ©r   s    r   Ú_closezDummyFormat.Reader._closeR   ó	   € ð ˆDr   c                 ó   — | j         S r   )r   r#   s    r   Ú_get_lengthzDummyFormat.Reader._get_lengthW   s
   € à”<Ðr   c                 óü   — || j         k    rt          d|| j         fz  ¦  «        ‚| j        €| j                             ¦   «         | _        t          j        | j        d¦  «        }t          |¦  «        df|_        |i fS )NzImage index %i > %iÚuint8r   )	r   Ú
IndexErrorr   r   ÚreadÚnpÚ
frombufferÚlenÚshape)r   ÚindexÚims      r   Ú	_get_datazDummyFormat.Reader._get_data[   sp   € à˜œÒ$Ð$Ý Ð!6¸%ÀÄÐ9NÑ!NÑOÔOÐOàŒzÐ!Ø!œXŸ]š]™_œ_�”
å”˜tœz¨7Ñ3Ô3ˆBÝ˜2‘w”w �zˆBŒHà�r�6ˆMr   c                 ó   — i S r   r"   )r   r0   s     r   Ú_get_meta_dataz!DummyFormat.Reader._get_meta_datah   s	   € ð ˆIr   N)Fr   )Ú__name__Ú
__module__Ú__qualname__r    r$   r'   r2   r4   r"   r   r   ÚReaderr   E   sd   € € € € € ð
	ð 
	ð 
	ð 
	ð	ð 	ð 	ð
	 ð 	 ð 	 ð	ð 	ð 	ð	ð 	ð 	ð 	ð 	r   r8   c                   ó(   — e Zd Zdd„Zd„ Zd„ Zd„ ZdS )úDummyFormat.Writerr   c                 óB   — | j                              ¦   «         | _        d S r   )r   r   r   )r   Úflagss     r   r    zDummyFormat.Writer._openp   s   € ð ”|×,Ò,Ñ.Ô.ˆDŒHˆHˆHr   c                 ó   — d S r   r"   r#   s    r   r$   zDummyFormat.Writer._closez   r%   r   c                 ó    — t          d¦  «        ‚)Nz)The dummy format cannot write image data.©ÚRuntimeError)r   r1   Úmetas      r   Ú_append_datazDummyFormat.Writer._append_data   s   € åÐJÑKÔKÐKr   c                 ó    — t          d¦  «        ‚)Nz(The dummy format cannot write meta data.r?   )r   rA   s     r   Úset_meta_dataz DummyFormat.Writer.set_meta_dataƒ   s   € õ ÐIÑJÔJÐJr   N)r   )r5   r6   r7   r    r$   rB   rD   r"   r   r   ÚWriterr:   o   s]   € € € € € ð	/ð 	/ð 	/ð 	/ð	ð 	ð 	ð
	Lð 	Lð 	Lð	Kð 	Kð 	Kð 	Kð 	Kr   rE   N)	r5   r6   r7   Ú__doc__r   r   r   r8   rE   r"   r   r   r   r      sŸ   € € € € € ðð ð"ð ð ð2
ð 
ð 
ð&ð &ð &ð &ð &�”ñ &ô &ð &ðTKð Kð Kð Kð K�”ñ Kô Kð Kð Kð Kr   r   Údummyz$An example format that does nothing.z.foobar .nonexistentextÚiI)
rF   Únumpyr,   Ú r   Úcorer   r   ÚformatÚ
add_formatr"   r   r   ú<module>rN      s³   ðð JÐ Ià Ð Ð Ð à Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð ðzKð zKð zKð zKð zK�&ñ zKô zKð zKð| 
ˆØØ*ØØñ	
ô 
€ð €Ô �6Ñ Ô Ð Ð Ð r   