Files
intellecton/venv/lib/python3.12/site-packages/PIL/__pycache__/features.cpython-312.pyc
T

111 lines
13 KiB
Plaintext
Raw Normal View History

Ë
ß¼j*ã óü—UddlmZddlZddlZddlZddlZddlmZddlZddl m
Z
dddd d
d d œZ d*d
„Z d+d„Z
d,d„ZdddddœZd*d„Zd+d„Zd,d„Zddddddddd œZd!ed"<d-d#„Zd+d$„Zd,d%„Zd-d&„Zd+d'„Zd,d(„Zd.d/d)„Zy)0é)Ú annotationsN)ÚIOé)ÚImage)ú PIL._imagingÚPILLOW_VERSION)zPIL._tkinter_finderÚ
tk_version)úPIL._imagingftÚfreetype2_version)zPIL._imagingcmsÚlittlecms_version)z PIL._webpÚwebpdecoder_version)z PIL._avifÚlibavif_version)ÚpilÚtkinterÚ freetype2Ú
littlecms2ÚwebpÚavifcóà—|tvrd|›�}t|«‚t|\}} t|«y#t$rYyt$r(}t j t|««Yd}~yd}~wwxYw)zâ
Checks if a module is available.
:param feature: The module to check for.
:returns: ``True`` if available, ``False`` otherwise.
:raises ValueError: If the module is not defined in this version of Pillow.
zUnknown module TFN)ÚmodulesÚ
ValueErrorÚ
__import__ÚModuleNotFoundErrorÚ ImportErrorÚwarningsÚwarnÚstr)ÚfeatureÚmsgÚmoduleÚverÚexs úO/home/antigravity/intellecton/venv/lib/python3.12/site-packages/PIL/features.pyÚ check_moduler$sn€ð”gÑØ ˜yÐ)ˆÜ˜‹oÐä˜'Ñ"�K€FˆCðÜ�6ÔØøÜ òÙÜ òÜ�
‰
”c˜"“gÔÜûðús¦ 2² A-½A-ÁA(Á(A-cób—t|«syt|\}}tt||g¬«|«S)zè
:param feature: The module to check for.
:returns:
The loaded version number as a string, or ``None`` if unknown or not available.
:raises ValueError: If the module is not defined in this version of Pillow.
N©Úfromlist)r$rÚgetattrr)rr r!s r#Úversion_moduler)/s3€ô ˜Ô Øä˜'Ñ"�K€FˆCä ”:˜f°¨uÔ5°sÓ ;Ð;ócóL—tD�cgc]}t|«sŒ|‘Œc}Scc}w)z4
:returns: A list of all supported modules.
)rr$©Úfs r#Úget_supported_modulesr.>s€ôÖ 2�!¤,¨q¥/ŠAÒ 2Ð2ùÒ 2ó‰!š!)ÚjpegÚjpeglib)Újpeg2kÚjp2klib)ÚzipÚzlib)Úlibtiffr6)ÚjpgÚjpg_2000r5r6có†—|tvrd|›�}t|«‚t|\}}|›d�ttj«vS)zß
Checks if a codec is available.
:param feature: The codec to check for.
:returns: ``True`` if available, ``False`` otherwise.
:raises ValueError: If the codec is not defined in this version of Pillow.
zUnknown codec Ú_encoder)ÚcodecsrÚdirrÚcore)rrÚcodecÚlibs r#Ú check_codecr@MsI€ð”fÑØ˜w˜iÐ(ˆÜ˜‹oÐ䘑�J€Eˆ3àˆW�HÐ ¤¤U§Z¡Z£Ð 0Ð0r*cóÆ—t|«syt|\}}ttj|›d�«}|dk(r&|j d«dj d«dS|S)a
:param feature: The codec to check for.
:returns:
The version number as a string, or ``None`` if not available.
Checked at compile time for ``jpg``, run-time otherwise.
:raises ValueError: If the codec is not defined in this version of Pillow.
NÚ_versionr6ú
rzVersion r)r@r;r(rr=Úsplit)rr>r?Úversions r#Ú
version_codecrF^sd€ô �wÔ Øä˜‘�J€Eˆ3ä”e—j‘j S E¨Ð"2Ó3€Gà�)ÒØ�}‰}˜TÓ" 1Ñ%×+Ñ+¨JÓ7¸Ñ:Ð:à €Nr*cóL—tD�cgc]}t|«sŒ|‘Œc}Scc}w)z3
:returns: A list of all supported codecs.
)r;r@r,s r#Úget_supported_codecsrHss€ôÖ 0�!¤¨Q¥ŠAÒ 0Ð0ùÒ 0r/)r
Ú HAVE_RAQMÚ raqm_version)r
Ú HAVE_FRIBIDIÚfribidi_version)r
Ú
HAVE_HARFBUZZÚharfbuzz_version)rÚHAVE_LIBJPEGTURBOÚlibjpeg_turbo_version)rÚ HAVE_MOZJPEGrP)rÚ HAVE_ZLIBNGÚzlib_ng_version)rÚHAVE_LIBIMAGEQUANTÚimagequant_version)rÚHAVE_XCBN)ÚraqmÚfribidiÚharfbuzzÚ
libjpeg_turboÚmozjpegÚzlib_ngÚ
libimagequantÚxcbz&dict[str, tuple[str, str, str | None]]Úfeaturescóþ—|tvrd|›�}t|«‚t|\}}} t|dg¬«}t||«S#t$rYyt
$r(}t
jt|««Yd}~yd}~wwxYw)zÿ
Checks if a feature is available.
:param feature: The feature to check for.
:returns: ``True`` if available, ``False`` if unavailable, ``None`` if unknown.
:raises ValueError: If the feature is not defined in this version of Pillow.
zUnknown feature ÚPILr&N) r_rrr(rrrrr)rrr Úflagr!Úimported_moduler"s r#Ú
check_featurerd†s�€ð”hÑØ    Ð*ˆÜ˜‹oÐä  Ñ)Ñ€FˆD�#ðÜ$ V°u°gÔ>ˆÜ�¨Ó-Ð-øÜ òÙÜ òÜ�
‰
”c˜"“gÔÜûðús§AÁ A<Á A<ÁA7Á7A<cój—t|«syt|\}}}|€ytt||g¬«|«S)zÐ
:param feature: The feature to check for.
:returns: The version number as a string, or ``None`` if not available.
:raises ValueError: If the feature is not defined in this version of Pillow.
Nr&)rdr_r(r)rr rbr!s r#Úversion_featurerfžs>€ô ˜Ô !Øä  Ñ)Ñ€FˆD�#à
€{Øä ”:˜f°¨uÔ5°sÓ ;Ð;r*cóL—tD�cgc]}t|«sŒ|‘Œc}Scc}w)z5
:returns: A list of all supported features.
)r_rdr,s r#Úget_supported_featuresrh¯s€ô Ö 4�!¤=°Õ#3ŠAÒ 4Ð4ùÒ 4r/có¬—|tvr t|«S|tvr t|«S|tvr t |«St
jd|›d�d¬«y)z²
:param feature: A module, codec, or feature name.
:returns:
``True`` if the module, codec, or feature is available,
``False`` or ``None`` otherwise.
zUnknown feature 'z'.é)Ú
stacklevelF)rr$r;r@r_rdrr©rs r#ÚcheckrmsX€ð”'ÑܘGÓ$Ð$Ø”&Ñܘ7Ó#Ð#Ø”(ÑܘWÓ%Ð%Ü ‡M�MÐ% g Y¨bÐ1¸aÕ@Ø r*cóv—|tvr t|«S|tvr t|«S|tvr t |«Sy)z¬
:param feature:
The module, codec, or feature to check for.
:returns:
The version number as a string, or ``None`` if unknown or not available.
N)rr)r;rFr_rfrls r#rErEÈs@€ð”'ÑܘgÓ&Ð&Ø”&ÑܘWÓ%Ð%Ø”(ÑܘwÓ'Ð'Ø r*có~—t«}|jt««|jt««|S)zJ
:returns: A list of all supported modules, features, and codecs.
)r.ÚextendrhrH)Úrets r#Ú
get_supportedrrØs1€ô
Ó
!€C؇J�JÔ%Ó'Ô(؇J�JÔ#Ó%Ô&Ø €Jr*c ój —|€tj}tj«t d|¬«t dt
j ›�|¬«tjj«}t d|dj«›�|¬«|ddD] }t d|j«›�|¬«Œ"t d|¬«t d tjxsd
›�|¬«tjtjk7rt d tj›�|¬«t d tj›�|¬«t d|¬«t d
tjjtj «›�|¬«t dtjjtj"j «›�|¬«t d|¬«dD]î\}}t%|«rÏd}|dk(r$t'd«}|�t)d«rdnd}|d|zz
}|€ t|«}|�…|dv}|dk(r$t+d„|j-d«D««dk}|rdnd} |dk(rt'd«}
|
�.|d|
zz
}n%|dk(r d D]} t'| «} | €Œ|d!| ›d| ›�z
}Œt d"|d#| ||¬«ŒÐt d"|d$|¬«Œàt d%|d&|¬«Œðt d|¬«|�rÒt/j0t2«}
tj4j7«D]\}}|
|j9|«Œt;tj<«D�]a}|›}|tj>vr|›dtj>|›�}t ||¬«||
vr7t d'jAd!jCt;|
|«««|¬«g}|tjDvr|j9d(«|tjFvr|j9d)«|tjHvr|j9d*«|tjJvr|j9d+«|tjLvr|j9d,«t d-jAd!jC|««|¬«t d|¬«�Œdyy).a 
Prints information about this installation of Pillow.
This function can be called with ``python3 -m PIL``.
It can also be called with ``python3 -m PIL.report`` or ``python3 -m PIL --report``
to have "supported_formats" set to ``False``, omitting the list of all supported
image file formats.
:param out:
The output stream to print to. Defaults to ``sys.stdout`` if ``None``.
:param supported_formats:
If ``True``, a list of all supported image file formats will be printed.
NzD--------------------------------------------------------------------)ÚfilezPillow zPython rrz zPython executable is Úunknownz%Environment Python files loaded from z System Python files loaded from z"Python Pillow modules loaded from z"Binary Pillow modules loaded from )
)rzPIL CORE)rÚTKINTER)rÚ FREETYPE2)rÚ
LITTLECMS2)rÚWEBP)rÚAVIF)r7ÚJPEG)r8zOPENJPEG (JPEG2000))r5zZLIB (PNG/ZIP))r6ÚLIBTIFF)rWzRAQM (Bidirectional Text))r]z#LIBIMAGEQUANT (Quantization method))r^zXCB (X protocol)r7rZr[z
libjpeg-turboú )rr7rc3ó2K—|]}t|«–—Œy­w)N)Úint)Ú.0Úxs r#ú <genexpr>zpilinfo.<locals>.<genexpr>(sèø€Ò*H°a¬3¨q¯6Ñ*Hùs‚ú.)rjéz compiled forÚloadedr5r\z, compiled for zlib-ng rW)rXrYz, z---z support ok,z
support okz***zsupport not installedzExtensions: {}ÚopenÚsaveÚsave_allÚdecodeÚencodez Features: {})'ÚsysÚstdoutrÚinitÚprintraÚ __version__rEÚ