Files
old-saburly-wagtail-web/env/lib/python3.10/site-packages/PIL/__pycache__/ImageSequence.cpython-310.pyc

38 lines
2.7 KiB
Plaintext
Raw Normal View History

2024-08-27 20:33:44 +02:00
o
<00><><EFBFBD>f<EFBFBD><00>@sDddlmZddlmZddlmZGdd<06>d<06>Z dddd<0F>ZdS)<12>)<01> annotations)<01>Callable<6C>)<01>Imagec@s8eZdZdZddd<05>Zdd d
<EFBFBD>Zdd d <0C>Zdd d<0E>ZdS)<14>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.ImagecCs0t|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>S/home/amir/Desktop/saburlyweb/env/lib/python3.10/site-packages/PIL/ImageSequence.py<70>__init__$s
zIterator.__init__<5F>ix<69>int<6E>returnc
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__3szIterator.__iter__c
CsLz|j<00>|j<02>|jd7_|jWSty%}zd}t|<02>|<01>d}~ww)Nrr)rr rr<00> StopIteration)rrrrrr<00>__next__6s
<08><02>zIterator.__next__N)rr)rrrr)rr)rr)<08>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rrrrrrrrrs 

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>S<00>zall_frames.<locals>.<listcomp>csg|]}<01>|<01><01>qSrr)r)r<00>r%rrr+Vr,)<05>
isinstance<EFBFBD>list<73>tellrr )rr%<00>ims<6D>
imSequence<EFBFBD>currentrr-r<00>
all_frames@s
 r4r)rr$r%r&rr')<08>
__future__r<00>typingr<00>rrr4rrrr<00><module>s   *<10>