spdl.io.ImageFrames

class ImageFrames[source]

Image frames.

Methods

clone()

Clone the frames, so that data can be converted to buffer multiple times.

Attributes

height

The height of image.

metadata

Metadata attached to the frame.

num_planes

The number of planes in the each frame.

pix_fmt

The name of the pixel format.

width

The width of image.

clone() VideoFrames[source]

Clone the frames, so that data can be converted to buffer multiple times.

Returns:

A clone of the frame.

property height: int[source]

The height of image.

property metadata: dict[str, str][source]

Metadata attached to the frame.

property num_planes: int[source]

The number of planes in the each frame.

See VideoFrames for a caveat.

property pix_fmt: str[source]

The name of the pixel format.

property width: int[source]

The width of image.