Skia
2DGraphicsLibrary
|
Public Types | |
enum | { kY = 0, kU = 1, kV = 2 } |
Public Attributes | |
SkISize | fSizes [3] |
size_t | fWidthBytes [3] |
While the widths of the Y, U, and V planes are not restricted, the implementation often requires that the width of the memory allocated for each plane be a multiple of 8. More... | |
size_t SkYUVSizeInfo::fWidthBytes[3] |
While the widths of the Y, U, and V 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".