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

39 lines
2.8 KiB
Plaintext
Raw Normal View History

o
<00>Q<EFBFBD>j<EFBFBD><00>@sLddlmZddlmZdZerddlmZGdd<07>d<07>Z dddd<10>ZdS)<13>)<01> annotations<6E>)<01>ImageF)<01>Callablec@s8eZdZdZddd<07>Zdd
d <0B>Zdd d <0A>Zddd<0F>ZdS)<15>Iteratora-
This class implements an iterator object that can be used to loop
over an image sequence.
You can use the ``[]`` operator to access elements by index. This operator
will raise an :py:exc:`IndexError` if you try to access a nonexistent
frame.
:param im: An image object.
<20>im<69> Image.Image<67>return<72>NonecCs0t|d<01>s d}t|<02><01>||_t|jdd<04>|_dS)N<>seekzim must have seek method<6F>
_min_framer)<05>hasattr<74>AttributeErrorr<00>getattr<74>position)<03>selfr<00>msg<73>r<00>t/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/ImageSequence.py<70>__init__&s
zIterator.__init__<5F>ix<69>intc
Cs<z
|j<00>|<01>|jWSty}zd}t|<03>|<02>d}~ww)N<>end of sequence)rr <00>EOFError<6F>
IndexError)rr<00>errrr<00> __getitem__-s 
<08><02>zIterator.__getitem__cCs|S<00>Nr)rrrr<00>__iter__5szIterator.__iter__c
CsLz|j<00>|j<02>|jd7_|jWSty%}zd}t|<02>|<01>d}~ww)Nrr)rr rr<00> StopIteration)rrrrrr<00>__next__8s
<08><02>zIterator.__next__N)rrr r
)rrr r)r r)r r)<08>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rrrr rrrrrs 

rNr<00>Image.Image | list[Image.Image]<5D>func<6E>+Callable[[Image.Image], Image.Image] | Noner <00>list[Image.Image]cs`t|t<01>s|g}g}|D]}|<03><02>}|dd<02>t|<03>D<00>7}|<03>|<04>q <0C>r.<2E>fdd<02>|D<00>S|S)a
Applies a given function to all frames in an image or a list of images.
The frames are returned as a list of separate images.
:param im: An image, or a list of images.
:param func: The function to apply to all of the image frames.
:returns: A list of images.
cSsg|]}|<01><00><00>qSr)<01>copy)<02>.0<EFBFBD>im_framerrr<00>
<listcomp>U<00>zall_frames.<locals>.<listcomp>csg|]}<01>|<01><01>qSrr)r*r<00>r&rrr,Xr-)<05>
isinstance<EFBFBD>list<73>tellrr )rr&<00>ims<6D>
imSequence<EFBFBD>currentrr.r<00>
all_framesBs
 r5r)rr%r&r'r r() <09>
__future__r<00>r<00> TYPE_CHECKING<4E>collections.abcrrr5rrrr<00><module>s   *<10>