DecodedFrame
yosoi.surface.DecodedFrame
class DecodedFrame:
Immutable Rust-owned PNG evidence, restored without a decoder when archived.
Source: python/yosoi/surface.py:747
Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.
Methods
Section titled “Methods”def __init__(self, handle: _native.DecodedFrame) -> None:
Wrap a native artifact returned by frame, crop or read_from.
Source: python/yosoi/surface.py:750
@property
def info(self) -> FrameInfo:
Return measured time, pixel coordinates and PNG integrity metadata.
Source: python/yosoi/surface.py:755
@property
def png(self) -> bytes:
Copy encoded PNG bytes; binary size is separate from text read budgets.
Source: python/yosoi/surface.py:760
write_to
Section titled “write_to”async def write_to(self, archive: Archive) -> FrameArchiveRef:
Store verified PNG evidence using the existing Rust Archive backend.
Source: python/yosoi/surface.py:764
read_from
Section titled “read_from”@classmethod
async def read_from(cls, archive: Archive, reference: FrameArchiveRef) -> Self:
Verify and restore saved PNG pixels without FFmpeg or the original file.