spdl.io.ImagePackets

class ImagePackets[source]

Packets object contain an image frame.

Methods

clone()

Clone the packets, so that data can be decoded multiple times.

Attributes

height

The height of image.

pix_fmt

The name of the pixel format, such as "yuv420p".

width

The width of image.

clone() ImagePackets[source]

Clone the packets, so that data can be decoded multiple times.

Returns:

A clone of the packets.

property height: int[source]

The height of image.

property pix_fmt: str[source]

The name of the pixel format, such as "yuv420p".

property width: int[source]

The width of image.