spdl.io.ImageFrames

class ImageFrames

Image frames.

See Packets and Frames for information about the Frames base concept.

Attributes

clone

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

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.

pts

The presentation time stamp of the image in the source video.

width

The width of image.

clone

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

Returns:

A clone of the frame.

property height

The height of image.

property metadata

Metadata attached to the frame.

property num_planes

The number of planes in the each frame.

See VideoFrames for a caveat.

property pix_fmt

The name of the pixel format.

property pts

The presentation time stamp of the image in the source video.

This property is valid only when the ImageFrames is created from slicing VideoFrames object.

property width

The width of image.