spdl.io.ImageCodec¶
- class ImageCodec¶
Codec metadata
Attributes
The height of the image.
The name of the codec
The pixel format of the image.
The aspect ratio of a single pixel.
The internal unit of time used for timestamp.
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.