Skip to content
YosoiDocs

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.

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

async def write_to(self, archive: Archive) -> FrameArchiveRef:

Store verified PNG evidence using the existing Rust Archive backend.

Source: python/yosoi/surface.py:764

@classmethod
async def read_from(cls, archive: Archive, reference: FrameArchiveRef) -> Self:

Verify and restore saved PNG pixels without FFmpeg or the original file.

Source: python/yosoi/surface.py:771