spdl.io.ImageCodec

class ImageCodec[source]

Codec metadata

Attributes

height

The height of the image.

name

The name of the codec

pix_fmt

The pixel format of the image.

sample_aspect_ratio

The aspect ratio of a single pixel.

time_base

The internal unit of time used for timestamp.

width

The width of the image.

property height: int[source]

The height of the image.

property name: str[source]

The name of the codec

property pix_fmt: str[source]

The pixel format of the image.

property sample_aspect_ratio: tuple[int, int][source]

The aspect ratio of a single pixel.

The value is expressed as a fraction. (width, height).

property time_base: tuple[int, int][source]

The internal unit of time used for timestamp.

For image, the actual value should be irrelevant. This API is just for compatibility.

The value is expressed as a fraction. (numerator, denominator).

property width: int[source]

The width of the image.