spdl.io.ImageCodec

class ImageCodec

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

The height of the image.

property name

The name of the codec

property pix_fmt

The pixel format of the image.

property sample_aspect_ratio

The aspect ratio of a single pixel.

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

property time_base

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

The width of the image.