YUVASizeInfo
- class YUVASizeInfo
Methods
Attributes
YUVA data often comes from formats like JPEG that support EXIF orientation.
While the widths of the Y, U, V and A planes are not restricted, the implementation often requires that the width of the memory allocated for each plane be a multiple of 8.
Methods
- YUVASizeInfo.__init__(self: skia.YUVASizeInfo) None
- YUVASizeInfo.computeTotalBytes(self: skia.YUVASizeInfo) int
Attributes
- YUVASizeInfo.fOrigin
YUVA data often comes from formats like JPEG that support EXIF orientation. Code that operates on the raw YUV data often needs to know that orientation.
- YUVASizeInfo.fSizes
- YUVASizeInfo.fWidthBytes
While the widths of the Y, U, V and A planes are not restricted, the implementation often requires that the width of the memory allocated for each plane be a multiple of 8.
This struct allows us to inform the client how many “widthBytes” that we need. Note that we use the new idea of “widthBytes” because this idea is distinct from “rowBytes” (used elsewhere in Skia). “rowBytes” allow the last row of the allocation to not include any extra padding, while, in this case, every single row of the allocation must be at least “widthBytes”.