Ë
    Eü´j5O  ã                   ó  — d dl Z ddlmZ  G d„ d«      Z e«       Z eddd¬	«      ed<    ed
dd¬	«      ed
<    eddd¬	«      ed<    eddd¬	«      ed<    eddd¬	«      ed<    eddd¬	«      ed<    edddddddd d!œ¬"«      ed<   g d#¢ZeD ]D  \  ZZZ	Z
 eej                  «       d$z   e
d%dded&z   e	e
d'k(  rd(nd)ed*œ¬"«      Zeeej                  <   ŒF  ed+d,d-dd.d/d0d1d!œ¬"«      ed+<    ed2d3d4dd5d6d7d d!œ¬"«      ed2<    ed8d9d:dd;d<d=d d!œ¬"«      ed8<    ed>d?d@ddAdBdCdDgdEd!œ¬"«      ed><    edFdGdHddIdJdKd d!œ¬"«      edF<    edLdMdNddOdPdQd d!œ¬"«      edL<    edRdSdTddUdVdWj                  dX«      d d!œ¬"«      edR<    edYdZd[dd\d]d^d d!œ¬"«      edY<    ed_d`daddbdcddd1d!œ¬"«      ed_<    ededfdgdddhg d)d!œ¬"«      ede<    edidjdgdddkg d)d!œ¬"«      edi<   g dl¢ZeD ]7  \  ZZZ	ZZ
 eej                  «       e
dmddnee	ed!œ¬"«      Zeeej                  <   Œ9 g do¢ZeD ]=  \  ZZZZ	ZZ
Z eej                  «       dpz   e
eddqee	eedrœ¬"«      Zeeej                  <   Œ? ej+                  «       D � �cg c]  \  } }|j,                  sŒ| ‘Œ c}} Zyc c}} w )sé    Né   ©ÚLegacyPluginc                   óB   — e Zd ZdZdddddœd„Zed„ «       Zed„ «       Zy)ÚPluginConfiga¤  Plugin Configuration Metadata

    This class holds the information needed to lazy-import plugins.

    Parameters
    ----------
    name : str
        The name of the plugin.
    class_name : str
        The name of the plugin class inside the plugin module.
    module_name : str
        The name of the module/package from which to import the plugin.
    is_legacy : bool
        If True, this plugin is a v2 plugin and will be wrapped in a
        LegacyPlugin. Default: False.
    package_name : str
        If the given module name points to a relative module, then the package
        name determines the package it is relative to.
    install_name : str
        The name of the optional dependency that can be used to install this
        plugin if it is missing.
    legacy_args : Dict
        A dictionary of kwargs to pass to the v2 plugin (Format) upon construction.

    Examples
    --------
    >>> PluginConfig(
            name="TIFF",
            class_name="TiffFormat",
            module_name="imageio.plugins.tifffile",
            is_legacy=True,
            install_name="tifffile",
            legacy_args={
                "description": "TIFF format",
                "extensions": ".tif .tiff .stk .lsm",
                "modes": "iIvV",
            },
        )
    >>> PluginConfig(
            name="pillow",
            class_name="PillowPlugin",
            module_name="imageio.plugins.pillow"
        )

    FN)Ú	is_legacyÚpackage_nameÚinstall_nameÚlegacy_argsc                óÚ   — |xs
 t        «       }|| _        || _        || _        || _        || _        |xs | j                  | _        |ddœ| _        | j                  j                  |«       y )NzA legacy plugin)ÚnameÚdescription)	Údictr   Ú
class_nameÚmodule_namer	   r   r
   r   Úupdate)Úselfr   r   r   r   r	   r
   r   s           úT/root/workspace/ytshorts/venv/lib/python3.12/site-packages/imageio/config/plugins.pyÚ__init__zPluginConfig.__init__5   sh   € ð "Ò+¤T£VˆàˆŒ	Ø$ˆŒØ&ˆÔØ(ˆÔà"ˆŒØ(Ò5¨D¯I©IˆÔØ$(Ð9JÑKˆÔØ×Ñ×Ñ Õ,ó    c                 óÔ   — | j                   st        d«      ‚t        j                  | j                  | j
                  «      }t        || j                  «      } |di | j                  ¤ŽS )z\For backwards compatibility with FormatManager

        Delete when migrating to v3
        z'Can only get format for legacy plugins.© )	r   ÚRuntimeErrorÚ	importlibÚimport_moduler   r	   Úgetattrr   r   )r   ÚmoduleÚclazzs      r   ÚformatzPluginConfig.formatL   sY   € ð �~Š~ÜÐHÓIÐIä×(Ñ(¨×)9Ñ)9¸4×;LÑ;LÓMˆÜ˜ §¡Ó0ˆÙÑ(�t×'Ñ'Ñ(Ð(r   c                 óÒ   ‡— t        j                  | j                  | j                  «      }t	        || j
                  «      }| j                  r |di | j                  ¤ŽŠˆfd„}|}|S )z¬Get the plugin class (import if needed)

        Returns
        -------
        plugin_class : Any
            The class that can be used to instantiate plugins.

        c                 ó   •— t        | ‰«      S )Nr   )ÚrequestÚlegacy_plugins    €r   Úpartial_legacy_pluginz8PluginConfig.plugin_class.<locals>.partial_legacy_pluginj   s   ø€ Ü# G¨]Ó;Ð;r   r   )r   r   r   r	   r   r   r   r   )r   r   r   r$   r#   s       @r   Úplugin_classzPluginConfig.plugin_classY   s^   ø€ ô ×(Ñ(¨×)9Ñ)9¸4×;LÑ;LÓMˆÜ˜ §¡Ó0ˆà�>Š>Ù!Ñ5 D×$4Ñ$4Ñ5ˆMô<ð *ˆEàˆr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   r%   r   r   r   r   r      sC   „ ñ,ðh ØØØô-ð. ñ
)ó ð
)ð ñó ñr   r   ÚpillowÚPillowPluginzimageio.plugins.pillow)r   r   r   ÚpyavÚ
PyAVPluginzimageio.plugins.pyavÚopencvÚOpenCVPluginzimageio.plugins.opencvÚtifffileÚTifffilePluginzimageio.plugins.tifffile_v3ÚspeÚ	SpePluginzimageio.plugins.speÚSPEÚrawpyÚRawPyPluginzimageio.plugins.rawpyÚTIFFÚ
TiffFormatzimageio.plugins.tifffileTzTIFF formatz.tif .tiff .stk .lsmÚiIvV)r   Ú
extensionsÚmodes)r   r   r   r   r
   r   )))ÚBMPúWindows Bitmapú.bmpÚPillowFormat)ÚBUFRrA   z.bufrr@   )ÚCURzWindows Cursorz.curr@   )ÚDCXz	Intel DCXz.dcxr@   )ÚDDSzDirectDraw Surfaceú.ddsr@   )ÚDIBr>   Ú r@   )ÚEPSzEncapsulated Postscriptz.ps .epsr@   )ÚFITSrI   z
.fit .fitsr@   )ÚFLIzAutodesk FLI/FLC Animationz	.fli .flcr@   )ÚFPXÚFlashPixz.fpxr@   )ÚFTEXzTexture File Format (IW2:EOC)z	.ftc .ftur@   )ÚGBRzGIMP brush filez.gbrr@   )ÚGIFzCompuserve GIFú.gifÚ	GIFFormat)ÚGRIBrR   z.gribr@   )ÚHDF5rS   z.h5 .hdfr@   )ÚICNSzMac OS icns resourcez.icnsr@   )ÚICOúWindows Iconú.icor@   )ÚIMzIFUNC Image Memoryz.imr@   )ÚIMTzIM ToolsrG   r@   )ÚIPTCzIPTC/NAAz.iimr@   )ÚJPEGzJPEG (ISO 10918)z.jfif .jpe .jpg .jpegÚ
JPEGFormat)ÚJPEG2000zJPEG 2000 (ISO 15444)z.jp2 .j2k .jpc .jpf .jpx .j2cÚJPEG2000Format)ÚMCIDASzMcIdas area filerG   r@   )ÚMICzMicrosoft Image Composerz.micr@   )ÚMPOzMPO (CIPA DC-007)z.mpor@   )ÚMSPzWindows Paintz.mspr@   )ÚPCDúKodak PhotoCDú.pcdr@   )ÚPCXÚ
Paintbrushú.pcxr@   )ÚPIXARzPIXAR raster imagez.pxrr@   )ÚPNGzPortable network graphicsú.pngÚ	PNGFormat)ÚPPMzPbmplus imagez.pbm .pgm .ppmr@   )ÚPSDúAdobe Photoshopú.psdr@   )ÚSGIzSGI Image File Formatz.bw .rgb .rgba .sgir@   )ÚSPIDERzSpider 2D imagerG   r@   )ÚSUNzSun Raster Fileú.rasr@   )ÚTGAÚTargaz.tgar@   )r8   z
Adobe TIFFú
.tif .tiffÚ
TIFFFormat)ÚWMFzWindows Metafilez	.wmf .emfr@   )ÚXBMz
X11 Bitmapú.xbmr@   )ÚXPMzX11 Pixel Mapú.xpmr@   )ÚXVTHUMBzXV thumbnail imagerG   r@   z-PILzimageio.plugins.pillow_legacyz via PillowrQ   ÚiIÚi)r   r;   r<   Ú	plugin_idÚFFMPEGÚFfmpegFormatzimageio.plugins.ffmpegÚffmpegz+Many video formats and cameras (via ffmpeg)z/.mov .avi .mpg .mpeg .mp4 .mkv .webm .wmv .h264ÚIÚBSDFÚ
BsdfFormatzimageio.plugins.bsdfÚbsdfz1Format based on the Binary Structured Data Formatz.bsdfÚDICOMÚDicomFormatzimageio.plugins.dicomÚdicomz.Digital Imaging and Communications in Medicinez.dcm .ct .mriÚFEIÚFEISEMFormatzimageio.plugins.feisemÚfeisemzFEI-SEM TIFF formatú.tifú.tiffÚivrI   Ú
FitsFormatzimageio.plugins.fitsÚfitsz-Flexible Image Transport System (FITS) formatz.fits .fit .fts .fzÚGDALÚ
GdalFormatzimageio.plugins.gdalÚgdalz#Geospatial Data Abstraction Libraryz .tiff  .tif .img .ecw .jpg .jpegÚITKÚ	ItkFormatzimageio.plugins.simpleitkÚ	simpleitkz:Insight Segmentation and Registration Toolkit (ITK) formatú )z.giplz.iplz.mhaz.mhdz.nhdrz.niaú.hdrz.nrrdz.niiz.nii.gzz.imgz.img.gzz.vtkz.hdf5z.lsmú.mncz.mnc2z.mghrœ   z.picr?   z.jpegz.jpgrk   r�   r�   z.dicomz.dcmz.gdcmÚNPZÚ	NpzFormatzimageio.plugins.npzÚnumpyzNumpy's compressed array formatz.npzÚSWFÚ	SWFFormatzimageio.plugins.swfÚswfzShockwave flashz.swfÚ
SCREENGRABÚScreenGrabFormatzimageio.plugins.grabz(Grab screenshots (Windows and OS X only)ÚCLIPBOARDGRABÚClipboardGrabFormatz"Grab from clipboard (Windows only)))z	lytro-lfrzLytro Illum lfr image filez.lfrr€   ÚLytroLfrFormat)zlytro-illum-rawzLytro Illum raw image fileú.rawr€   ÚLytroIllumRawFormat)z	lytro-lfpzLytro F01 lfp image filez.lfpr€   ÚLytroLfpFormat)zlytro-f01-rawzLytro F01 raw image filer¨   r€   ÚLytroF01RawFormatzimageio.plugins.lytroÚlytro)$)r=   r   zWindows or OS/2 Bitmapr?   r€   ÚFreeimageBmpFormatúimageio.plugins.freeimage)ÚCUTé   zDr. Haloz.cutr€   ÚFreeimageFormatr®   )rD   é   zDirectX SurfacerE   r€   r±   r®   )ÚEXRé   zILM OpenEXRz.exrr€   r±   r®   )ÚG3é   zRaw fax format CCITT G.3z.g3r€   r±   r®   )rO   é   z#Static and animated gif (FreeImage)rP   r   Ú	GifFormatúimageio.plugins.freeimagemulti)ÚHDRé   zHigh Dynamic Range Imager›   r€   r±   r®   )rU   é   rV   rW   r   Ú	IcoFormatr¹   )ÚIFFé   zIFF Interleaved Bitmapz	.iff .lbmr€   r±   r®   )ÚJ2Ké   zJPEG-2000 codestreamz	.j2k .j2cr€   r±   r®   )ÚJNGé   zJPEG Network Graphicsz.jngr€   r±   r®   )ÚJP2é   zJPEG-2000 File Formatz.jp2r€   r±   r®   )r[   r   zJPEG - JFIF Compliantz.jpg .jif .jpeg .jper€   ÚFreeimageJpegFormatr®   )zJPEG-XRé$   zJPEG XR image formatz.jxr .wdp .hdpr€   r±   r®   )ÚKOALAé   zC64 Koala Graphicsz.koar€   r±   r®   )ÚPBMé   zPortable Bitmap (ASCII)ú.pbmr€   r±   r®   )ÚPBMRAWé   zPortable Bitmap (RAW)rÌ   r€   r±   r®   )rc   é	   rd   re   r€   r±   r®   )rf   é
   zZsoft Paintbrushrh   r€   r±   r®   )ÚPFMé    zPortable floatmapz.pfmr€   r±   r®   )ÚPGMé   zPortable Greymap (ASCII)ú.pgmr€   r±   r®   )ÚPGMRAWé   zPortable Greymap (RAW)rÕ   r€   r±   r®   )ÚPICTé!   zMacintosh PICTz.pct .pict .picr€   r±   r®   )rj   é   zPortable Network Graphicsrk   r€   ÚFreeimagePngFormatr®   )rm   é   zPortable Pixelmap (ASCII)ú.ppmr€   ÚFreeimagePnmFormatr®   )ÚPPMRAWé   zPortable Pixelmap (RAW)rÝ   r€   rÞ   r®   )rn   é   ro   rp   r€   r±   r®   )ÚRASé   zSun Raster Imagert   r€   r±   r®   )ÚRAWé"   zRAW camera imagezÑ.3fr .arw .bay .bmq .cap .cine .cr2 .crw .cs1 .dc2 .dcr .drf .dsc .dng .erf .fff .ia .iiq .k25 .kc2 .kdc .mdc .mef .mos .mrw .nef .nrw .orf .pef .ptx .pxn .qtk .raf .raw .rdc .rw2 .rwl .rwz .sr2 .srf .srw .stir€   r±   r®   )rq   é   zSGI Image Formatz.sgi .rgb .rgba .bwr€   r±   r®   )ÚTARGAé   zTruevision Targaz.tga .targar€   r±   r®   )r8   é   zTagged Image File Formatrw   r€   r±   r®   )ÚWBMPé   zWireless Bitmapz.wap .wbmp .wbmr€   r±   r®   )ÚWebPé#   zGoogle WebP image formatz.webpr€   r±   r®   )rz   é   zX11 Bitmap Formatr{   r€   r±   r®   )r|   é   zX11 Pixmap Formatr}   r€   r±   r®   z-FIÚ	freeimage)r   r;   r<   Úfif)r   Úcore.legacy_plugin_wrapperr   r   r   Úknown_pluginsÚPILLOW_FORMATSÚidÚsummaryÚextr   ÚupperÚconfigr   ÚjoinÚlytro_formatsÚdesÚmodeÚFREEIMAGE_FORMATSr€   r   Úitemsr   Ú_original_order)Úxrù   s   00r   ú<module>r     se  ðÛ å 5÷iñ iñX “€Ù&Ø	˜nÐ:Rô€ˆhÑ ñ %Ø	˜LÐ6Lô€ˆfÑ ñ 'Ø	˜nÐ:Rô€ˆhÑ ñ )Ø	ØØ-ô€ˆjÑ ñ
 $Ø	˜;Ð4Iô€ˆeÑ ñ &Ø	˜]Ð8Oô€ˆgÑ ñ$ %Ø	ØØ*ØØà$Ø,Øñô€ˆfÑ ò1€ðd %3ò (Ñ €Bˆ��jÙØ�X‰X‹Z˜&Ñ ØØ3ØØà" ]Ñ2ØØ'¨;Ò6‘T¸CØñ	
ô€Fð "(€M�&—+‘+Òð(ñ  'Ø	ØØ(ØØàDØGØñô€ˆhÑ ñ %Ø	ØØ&ØØàJØØñô€ˆfÑ ñ &Ø	ØØ'ØØàGØ%Øñô€ˆgÑ ñ $Ø	ØØ(ØØà,Ø˜wÐ'Øñô€ˆeÑ ñ %Ø	ØØ&ØØàFØ+Øñô€ˆfÑ ñ %Ø	ØØ&ØØà<Ø8Øñô€ˆfÑ ñ $Ø	ØØ+ØØàSØ—h‘hðó 
ðB ñG$ô+€ˆeÑ ñZ $Ø	ØØ%ØØà8ØØñô€ˆeÑ ñ $Ø	ØØ%ØØà(ØØñô€ˆeÑ ñ +Ø	Ø!Ø&ØØàAØØñô€ˆlÑ ñ ".Ø	Ø$Ø&ØØà;ØØñô"€ˆoÑ ò€ð )6ò (Ñ$€Dˆ#ˆs�D˜*ÙØ�Z‰Z‹\ØØ+ØØàØØñ
ô€Fð "(€M�&—+‘+Òð(ò IÐ ðT
 9Jò (Ñ4€Dˆ!ˆS�#�t˜Z¨ÙØ�Z‰Z‹\˜EÑ!ØØØØ àØØØñ	
ô€Fð "(€M�&—+‘+Òð(ð$ '4×&9Ñ&9Ó&;×P™˜˜F¸v×?OÓ?O’1ÓP�ùÓPs   É#JÉ8J