Ë
    Eü´j{  ã                   óx   — 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«       y)zCExample plugin. You can use this as a template for your own plugin.é    Né   )Úformats)ÚFormatc                   óp   — e Zd ZdZd„ Zd„ Z G d„ dej                  «      Z G d„ dej                  «      Zy)	Ú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                 ó6   — |j                   | j                  v ryy ©NT©Ú	extensionÚ
extensions©ÚselfÚrequests     úU/root/workspace/ytshorts/venv/lib/python3.12/site-packages/imageio/plugins/example.pyÚ	_can_readzDummyFormat._can_read   s   € ð, ×Ñ §¡Ñ/Øð 0ó    c                 ó6   — |j                   | j                  v ryy r	   r
   r   s     r   Ú
_can_writezDummyFormat._can_write7   s   € ð ×Ñ §¡Ñ/Øð 0r   c                   ó,   — e Zd Zdd„Zd„ Zd„ Zd„ Zd„ Zy)úDummyFormat.Readerc                 ó^   — | j                   j                  «       | _        || _        d | _        y ©N)r   Úget_fileÚ_fpÚ_lengthÚ_data)r   Úsome_optionÚlengths      r   Ú_openzDummyFormat.Reader._openF   s&   € ð —|‘|×,Ñ,Ó.ˆDŒHØ!ˆDŒLØˆD�Jr   c                  ó   — y r   © ©r   s    r   Ú_closezDummyFormat.Reader._closeR   ó   € ð r   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                  j	                  «       | _        t        j                  | j                  d«      }t        |«      df|_        |i fS )NzImage index %i > %iÚuint8é   )	r   Ú
IndexErrorr   r   ÚreadÚnpÚ
frombufferÚlenÚshape)r   ÚindexÚims      r   Ú	_get_datazDummyFormat.Reader._get_data[   so   € à˜Ÿ™Ò$Ü Ð!6¸%ÀÇÁÐ9NÑ!NÓOÐOà�z‰zÐ!Ø!ŸX™XŸ]™]›_�”
ä—‘˜tŸz™z¨7Ó3ˆBÜ˜2“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   s   „ ó
	ò	ò
	 ò	ó	r   r8   c                   ó&   — e Zd Zdd„Zd„ Zd„ Zd„ Zy)úDummyFormat.Writerc                 óB   — | j                   j                  «       | _        y r   )r   r   r   )r   Úflagss     r   r   zDummyFormat.Writer._openp   s   € ð —|‘|×,Ñ,Ó.ˆD�Hr   c                  ó   — y 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Ð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ÐJr   N)r   )r5   r6   r7   r   r#   rB   rD   r!   r   r   ÚWriterr:   o   s   „ ó	/ò	ò
	Ló	Kr   rE   N)	r5   r6   r7   Ú__doc__r   r   r   r8   rE   r!   r   r   r   r      s4   „ ñò"ò2
ô&�—‘ô &ôT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      sO   ðñ Jã å Ý ôzK�&ô zKñ| 
ØØ*ØØó	
€ð €× Ñ �6Õ r   