Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/PIL/__pycache__/ImageSequence.cpython-37.pyc

56 lines
2.3 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
(U<>]^<00>@sGdd<01>de<00>Zddd<04>ZdS)c@s8eZdZdZdd<03>Zdd<05>Zdd<07>Zdd <09>Zd
d <0B>Zd S) <0A>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.
cCs,t|d<01>std<02><01>||_t|jdd<04>|_dS)N<>seekzim must have seek methodZ
_min_frame<EFBFBD>)<05>hasattr<74>AttributeError<6F>im<69>getattr<74>position)<02>selfr<00>r
<00>5/tmp/pip-install-pc7tm5jb/Pillow/PIL/ImageSequence.py<70>__init__s
zIterator.__init__cCs0y|j<00>|<01>|jStk
r*t<03>YnXdS)N)rr<00>EOFError<6F>
IndexError)r <00>ixr
r
r <00> __getitem__%s
 zIterator.__getitem__cCs|S)Nr
)r r
r
r <00>__iter__,szIterator.__iter__cCs@y"|j<00>|j<02>|jd7_|jStk
r:t<04>YnXdS)N<>)rrrr <00> StopIteration)r r
r
r <00>__next__/s zIterator.__next__cCs|<00><00>S)N)r)r r
r
r <00>next7sz Iterator.nextN) <09>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r rrrrr
r
r
r rs 
rNcsdt|t<01>s|g}g}x4|D],}|<03><02>}|dd<02>t|<03>D<00>7}|<03>|<04>qW<00>r`<60>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>.0Zim_framer
r
r <00>
<listcomp>Kszall_frames.<locals>.<listcomp>csg|] }<01>|<01><01>qSr
r
)rr)<01>funcr
r rNs)<05>
isinstance<EFBFBD>list<73>tellrr)rrZimsZ
imSequence<EFBFBD>currentr
)rr <00>
all_frames;s

r")N)<03>objectrr"r
r
r
r <00><module>s(