
    9i5O                        S SK r SSKJr   " S S5      r\" 5       r\" SSSS	9\S'   \" S
SSS	9\S
'   \" SSSS	9\S'   \" SSSS	9\S'   \" SSSS	9\S'   \" SSSS	9\S'   \" SSSSSSSS S!.S"9\S'   / S#Qr\ HC  u  rrr	r
\" \R                  5       S$-   \
S%SS\S&-   \	\
S':X  a  S(OS)\S*.S"9r\\\R                  '   ME     \" S+S,S-SS.S/S0S1S!.S"9\S+'   \" S2S3S4SS5S6S7S S!.S"9\S2'   \" S8S9S:SS;S<S=S S!.S"9\S8'   \" S>S?S@SSASBSCSD/SES!.S"9\S>'   \" SFSGSHSSISJSKS S!.S"9\SF'   \" SLSMSNSSOSPSQS S!.S"9\SL'   \" SRSSSTSSUSVSWR                  SX5      S S!.S"9\SR'   \" SYSZS[SS\S]S^S S!.S"9\SY'   \" S_S`SaSSbScSdS1S!.S"9\S_'   \" SeSfSgSSSh/ S)S!.S"9\Se'   \" SiSjSgSSSk/ S)S!.S"9\Si'   / SlQr\ H5  u  rrr	rr
\" \R                  5       \
SmSSn\\	\S!.S"9r\\\R                  '   M7     / SoQr\ H;  u  rrrr	rr
r\" \R                  5       Sp-   \
\SSq\\	\\Sr.S"9r\\\R                  '   M=     \R+                  5        V Vs/ s H  u  pUR,                  (       d  M  U PM     snn rgs  snn f )s    N   LegacyPluginc                   L    \ rS rSrSrSSSSS.S jr\S 5       r\S 5       rS	r	g)
PluginConfig   a  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                    U=(       d
    [        5       nXl        X l        X0l        XPl        X@l        U=(       d    U R                  U l        USS.U l        U R                  R                  U5        g )NzA legacy plugin)namedescription)	dictr   
class_namemodule_namer
   r	   r   r   update)selfr   r   r   r	   r
   r   r   s           V/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/imageio/config/plugins.py__init__PluginConfig.__init__5   s^     "+TV	$&("(5DII$(9JK,    c                     U R                   (       d  [        S5      e[        R                  " U R                  U R
                  5      n[        XR                  5      nU" S0 U R                  D6$ )zLFor 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   formatPluginConfig.formatL   sW     ~~HII(()9)94;L;LM0(t''((r   c                    ^ [         R                  " U R                  U R                  5      n[	        XR
                  5      nU R                  (       a  U" S0 U R                  D6mU4S jnUnU$ )zGet the plugin class (import if needed)

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

c                    > [        U T5      $ )Nr   )requestlegacy_plugins    r   partial_legacy_plugin8PluginConfig.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_classPluginConfig.plugin_classY   s\     (()9)94;L;LM0>>!5D$4$45M< *Er   )r   r   r	   r   r   r   r
   )
__name__
__module____qualname____firstlineno____doc__r   propertyr!   r)   __static_attributes__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)BUFRrH   z.bufrrG   )CURzWindows Cursorz.currG   )DCXz	Intel DCXz.dcxrG   )DDSzDirectDraw Surface.ddsrG   )DIBrE    rG   )EPSzEncapsulated Postscriptz.ps .epsrG   )FITSrP   z
.fit .fitsrG   )FLIzAutodesk FLI/FLC Animationz	.fli .flcrG   )FPXFlashPixz.fpxrG   )FTEXzTexture File Format (IW2:EOC)z	.ftc .fturG   )GBRzGIMP brush filez.gbrrG   )GIFzCompuserve GIF.gif	GIFFormat)GRIBrY   z.gribrG   )HDF5rZ   z.h5 .hdfrG   )ICNSzMac OS icns resourcez.icnsrG   )ICOWindows Icon.icorG   )IMzIFUNC Image Memoryz.imrG   )IMTzIM ToolsrN   rG   )IPTCzIPTC/NAAz.iimrG   )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 filerN   rG   )MICzMicrosoft Image Composerz.micrG   )MPOzMPO (CIPA DC-007)z.mporG   )MSPzWindows Paintz.msprG   )PCDKodak PhotoCD.pcdrG   )PCX
Paintbrush.pcxrG   )PIXARzPIXAR raster imagez.pxrrG   )PNGzPortable network graphics.png	PNGFormat)PPMzPbmplus imagez.pbm .pgm .ppmrG   )PSDAdobe Photoshop.psdrG   )SGIzSGI Image File Formatz.bw .rgb .rgba .sgirG   )SPIDERzSpider 2D imagerN   rG   )SUNzSun Raster File.rasrG   )TGATargaz.tgarG   )r?   z
Adobe TIFF
.tif .tiff
TIFFFormat)WMFzWindows Metafilez	.wmf .emfrG   )XBMz
X11 Bitmap.xbmrG   )XPMzX11 Pixel Map.xpmrG   )XVTHUMBzXV thumbnail imagerN   rG   z-PILzimageio.plugins.pillow_legacyz via PillowrX   iIi)r   rB   rC   	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ivrP   
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.picrF   z.jpegz.jpgrr   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)$)rD   r   zWindows or OS/2 BitmaprF   r   FreeimageBmpFormatimageio.plugins.freeimage)CUT   zDr. Haloz.cutr   FreeimageFormatr   )rK      zDirectX SurfacerL   r   r   r   )EXR   zILM OpenEXRz.exrr   r   r   )G3   zRaw fax format CCITT G.3z.g3r   r   r   )rV      z#Static and animated gif (FreeImage)rW   r   	GifFormatimageio.plugins.freeimagemulti)HDR   zHigh Dynamic Range Imager   r   r   r   )r\      r]   r^   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   )rb   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   )rj   	   rk   rl   r   r   r   )rm   
   zZsoft Paintbrushro   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   )rq      zPortable Network Graphicsrr   r   FreeimagePngFormatr   )rt      zPortable Pixelmap (ASCII).ppmr   FreeimagePnmFormatr   )PPMRAW   zPortable Pixelmap (RAW)r   r   r   r   )ru      rv   rw   r   r   r   )RAS   zSun Raster Imager{   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   )rx      zSGI Image Formatz.sgi .rgb .rgba .bwr   r   r   )TARGA   zTruevision Targaz.tga .targar   r   r   )r?      zTagged Image File Formatr~   r   r   r   )WBMP   zWireless Bitmapz.wap .wbmp .wbmr   r   r   )WebP#   zGoogle WebP image formatz.webpr   r   r   )r      zX11 Bitmap Formatr   r   r   r   )r      zX11 Pixmap Formatr   r   r   r   z-FI	freeimage)r   rB   rC   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	     s[    5i iX &	n:Rh  %	L6Lf  '	n:Rh  )	-j 
 $	;4Ie  &	]8Og $ %	*$,f 1d %3 BjXXZ& 3"]2';6TC	
F "(M&++ %3  '	(DGh  %	&Jf  &	'G%g  $	(,w'e  %	&F+f  %	&<8f  $	+Shh 
B G$+e Z $	%8e  $	%(e  +	!&Al  ".	$&;"o  )6$D#sD*ZZ\+
F "(M&++ )6 I T
 9J4D!S#tZZZ\E! 	
F "(M&++ 9J$ '4&9&9&;P&;v?O?O1&;PPs   +II