Files
serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/__pycache__/ImageMath.cpython-310.pyc

127 lines
9.5 KiB
Plaintext
Raw Normal View History

o
<00>Q<EFBFBD>j<EFBFBD>(<00>@s<>ddlmZddlZddlmZmZdZer(ddlmZddl m
Z
ddl m Z Gd d
<EFBFBD>d
<EFBFBD>Z d(d d<0E>Zd(dd<10>Zd)dd<14>Zd)dd<16>Zd)dd<18>Zd)dd<1A>Zd*dd<1E>Zeeeeeeed<1F>Zd+d$d%<25>Zd,d&d'<27>ZdS)-<2D>)<01> annotationsN<73>)<02>Image<67> _imagingmathF)<01>Callable)<01>CodeType)<01>Anyc@sjeZdZdZdTdd<05>ZdUd d
<EFBFBD>Z dVdWdd<13>ZdXdd<16>ZdYdd<18>ZdYdd<1A>Z dYdd<1C>Z
dZdd<1F>Z dZd d!<21>Z dZd"d#<23>Z dZd$d%<25>ZdZd&d'<27>ZdZd(d)<29>ZdZd*d+<2B>ZdZd,d-<2D>ZdZd.d/<2F>ZdZd0d1<64>ZdZd2d3<64>ZdZd4d5<64>ZdYd6d7<64>ZdZd8d9<64>ZdZd:d;<3B>ZdZd<d=<3D>ZdZd>d?<3F>ZdZd@dA<64>ZdZdBdC<64>ZdZdDdE<64>ZdZdFdG<64>ZdZdHdI<64>Z dZdJdK<64>Z!dZdLdM<64>Z"dZdNdO<64>Z#dZdPdQ<64>Z$dZdRdS<64>Z%d S)[<5B>_Operandz4Wraps an image operand, providing standard operators<72>im<69> Image.ImagecCs
||_dS<00>N)r
)<02>selfr
<00>r<00>p/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/ImageMath.py<70>__init__!s
z_Operand.__init__<5F>im1<6D>_Operand | float<61>returncCs<>t|t<01>r%|jjdvr|j<02>d<02>S|jjdvr|jSd|jj<03><00>}t|<02><01>t|ttf<02>r;|jjdvr;t<08> d|jj
|<01>St<08> d|jj
|<01>S)N)<02>1<>L<>I)r<00>Fzunsupported mode: )rrrr) <0B>
isinstancer r
<00>mode<64>convert<72>
ValueError<EFBFBD>int<6E>floatr<00>new<65>size)r r<00>msgrrr<00>__fixup$s
   z_Operand.__fixupN<70>op<6F>str<74>im2<6D>_Operand | float | Noner<00>
str | Nonec
Cs<>|<00>|<02>}|durHt<01>|p|j|jd<00>}z tt|<01>d|j<03><00><03>}Wnty8}z d|<01>d<03>}t|<08>|<07>d}~wwt<06> ||<06>
<EFBFBD>|<05>
<EFBFBD><00>t|<06>S|<00>|<03>} |j| jkrg|jdkr]|<05> d<04>}| jdkrg| <09> d<04>} |j| jkr<>t |jd| jd<00>t |jd| jd<00>f}
|j|
kr<>|<05> d|
<00>}| j|
kr<>| <09> d|
<00>} t<01>|p<>|j|jd<00>}z tt|<01>d|j<03><00><03>}Wnty<>}z d|<01>d<03>}t|<08>|<07>d}~wwt<06>||<06>
<EFBFBD>|<05>
<EFBFBD>| <09>
<EFBFBD><00>t|<06>S)N<>_zbad operand type for '<27>'rrr)rr)<10>_Operand__fixuprrrr<00>getattrr<00>AttributeError<6F> TypeError<6F>unop<6F>getimr<00>min<69>crop<6F>binopr ) r r"rr$r<00>im_1<5F>out<75>er <00>im_2rrrr<00>apply6sH
 
<08><02>
<EFBFBD> 



 <04>

 
<08><02>z_Operand.apply<6C>boolcCs|j<00><01>duSr )r
<00>getbbox<6F>r rrr<00>__bool__dsz_Operand.__bool__cC<01> |<00>d|<00>S)N<>abs<62>r6r9rrr<00>__abs__h<00> z_Operand.__abs__cCs|Sr rr9rrr<00>__pos__ksz_Operand.__pos__cCr;)N<>negr=r9rrr<00>__neg__nr?z_Operand.__neg__<5F>othercC<01>|<00>d||<01>S<00>N<>addr=<00>r rCrrr<00>__add__r<00>z_Operand.__add__cC<01>|<00>d||<00>SrEr=rGrrr<00>__radd__urIz_Operand.__radd__cCrD<00>N<>subr=rGrrr<00>__sub__xrIz_Operand.__sub__cCrJrLr=rGrrr<00>__rsub__{rIz_Operand.__rsub__cCrD<00>N<>mulr=rGrrr<00>__mul__~rIz_Operand.__mul__cCrJrPr=rGrrr<00>__rmul__<5F>rIz_Operand.__rmul__cCrD<00>N<>divr=rGrrr<00> __truediv__<5F>rIz_Operand.__truediv__cCrJrTr=rGrrr<00> __rtruediv__<5F>rIz_Operand.__rtruediv__cCrD<00>N<>modr=rGrrr<00>__mod__<5F>rIz_Operand.__mod__cCrJrXr=rGrrr<00>__rmod__<5F>rIz_Operand.__rmod__cCrD<00>N<>powr=rGrrr<00>__pow__<5F>rIz_Operand.__pow__cCrJr\r=rGrrr<00>__rpow__<5F>rIz_Operand.__rpow__cCr;)N<>invertr=r9rrr<00>
__invert__<EFBFBD>r?z_Operand.__invert__cCrD<00>N<>andr=rGrrr<00>__and__<5F>rIz_Operand.__and__cCrJrbr=rGrrr<00>__rand__<5F>rIz_Operand.__rand__cCrD<00>N<>orr=rGrrr<00>__or__<5F>rIz_Operand.__or__cCrJrfr=rGrrr<00>__ror__<5F>rIz_Operand.__ror__cCrD<00>N<>xorr=rGrrr<00>__xor__<5F>rIz_Operand.__xor__cCrJrjr=rGrrr<00>__rxor__<5F>rIz_Operand.__rxor__cCrD)N<>lshiftr=rGrrr<00>
__lshift__<EFBFBD>rIz_Operand.__lshift__cCrD)N<>rshiftr=rGrrr<00>
__rshift__<EFBFBD>rIz_Operand.__rshift__cCrD)N<>eqr=rGrrr<00>__eq__<5F>rIz_Operand.__eq__cCrD)N<>ner=rGrrr<00>__ne__<5F>rIz_Operand.__ne__cCrD)N<>ltr=rGrrr<00>__lt__<5F>rIz_Operand.__lt__cCrD)N<>ler=rGrrr<00>__le__<5F>rIz_Operand.__le__cCrD)N<>gtr=rGrrr<00>__gt__<5F>rIz_Operand.__gt__cCrD)N<>ger=rGrrr<00>__ge__<5F>rIz_Operand.__ge__)r
r )rrrr )NN)
r"r#rrr$r%rr&rr )rr7)rr )rCrrr )&<26>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rr)r6r:r>r@rBrHrKrNrOrRrSrVrWrZr[r^r_rardrerhrirlrmrorqrsrurwryr{r}rrrrr sL

 <0C>
.




























r r rcC<01>t|j<01>d<01><01>S)Nr<00>r r
rr9rrr<00> imagemath_int<6E><00>r<>cCr<>)Nrr<>r9rrr<00>imagemath_float<61>r<>r<>rCr%cC<01>|jd||dd<03>S)Nrrr<00>rr=rGrrr<00>imagemath_equal<61><00>r<>cCr<>)Nrtrr<>r=rGrrr<00>imagemath_notequal<61>r<>r<>cCrD)Nr/r=rGrrr<00> imagemath_min<69>rIr<>cCrD)N<>maxr=rGrrr<00> imagemath_max<61>rIr<>rr#cCst|j<01>|<01><01>Sr r<>)r rrrr<00>imagemath_convert<72>r<>r<>)rr<00>equal<61>notequalr/r<>r<00>
expression<EFBFBD>Callable[[dict[str, Any]], Any]<5D>kwrcKsdt<00><01>}|<02>|<01>|<02><03>D]\}}t|tj<05>rt|<04>||<q ||<02>}z|jWSty1|YSw)a1
Returns the result of an image function.
:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
images, use the :py:meth:`~PIL.Image.Image.split` method or
:py:func:`~PIL.Image.merge` function.
:param expression: A function that receives a dictionary.
:param **kw: Values to add to the function's dictionary.
:return: The expression result. This is usually an image object, but can
also be an integer, a floating point value, or a pixel tuple,
depending on the expression.
) <09>ops<70>copy<70>update<74>itemsrrr r
r+)r<>r<><00>args<67>k<>vr3rrr<00> lambda_eval<61>s
  <02> <02>r<EFBFBD>c s<>t<00><01><00>|D]}d|vstt|<02>rd|<02>d<03>}t|<03><01>q<06><00>|<01><00><00><06>D]\}}t|tj<08>r5t |<04><01>|<q%t
|dd<05><03>d<0F><00><01>fd
d <0B> <0C><02><02><01>t<03> |d d t ii<01><00>}z|j WStyc|YSw)a-
Evaluates an image expression. This uses Python's ``eval()`` function to process
the expression string, and carries the security risks of doing so. It is not
recommended to process expressions without considering this.
:py:meth:`~lambda_eval` is a more secure alternative.
:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
images, use the :py:meth:`~PIL.Image.Image.split` method or
:py:func:`~PIL.Image.merge` function.
:param expression: A string containing a Python-style expression.
:param **kw: Values to add to the evaluation context.
:return: The evaluated expression. This is usually an image object, but can
also be an integer, a floating point value, or a pixel tuple,
depending on the expression.
<20>__r(<00> ' not allowedz<string><3E>eval<61>coderr<00>NonecsX|jD]}t|<01>t<01><01>ur<11>|<01>q|jD]}|<02>vr)|dkr)d|<02>d<03>}t|<03><01>qdS)Nr<r(r<>)<04> co_consts<74>type<70>co_namesr)r<><00>const<73>namer <00>r<><00> compiled_code<64>scanrrr<>+s
<02>
 <02><04>zunsafe_eval.<locals>.scan<61>
__builtinsr<N)r<>rrr<>)r<>r<><00>hasattr<74>builtinsrr<>r<>rrr <00>compiler<65>r<r
r+)r<>r<>r<>r r<>r3rr<>r<00> unsafe_eval s( <02>
  <02> 
 <02>r<EFBFBD>)r r rr )r r rCr%rr )r r rr#rr )r<>r<>r<>rrr)r<>r#r<>rrr)<18>
__future__rr<><00>rr<00> TYPE_CHECKING<4E>collections.abcr<00>typesr<00>typingrr r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>rrrr<00><module>s6    
*





<06>