MCPcopy Create free account
hub / github.com/python-pillow/Pillow / PyCodecState

Class PyCodecState

src/PIL/ImageFile.py:742–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740
741
742class PyCodecState:
743 def __init__(self) -> None:
744 self.xsize = 0
745 self.ysize = 0
746 self.xoff = 0
747 self.yoff = 0
748
749 def extents(self) -> tuple[int, int, int, int]:
750 return self.xoff, self.yoff, self.xoff + self.xsize, self.yoff + self.ysize
751
752
753class PyCodec:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…