OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2016 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef SkYUVSizeInfo_DEFINED |
| 9 #define SkYUVSizeInfo_DEFINED |
| 10 |
| 11 struct YUVSizeInfo { |
| 12 SkISize fYSize; |
| 13 SkISize fUSize; |
| 14 SkISize fVSize; |
| 15 |
| 16 /** |
| 17 * While the widths of the Y, U, and V planes are not restricted, the |
| 18 * implementation often requires that the width of the memory allocated |
| 19 * for each plane be a multiple of 8. |
| 20 * |
| 21 * This struct allows us to inform the client how many "widthBytes" |
| 22 * that we need. Note that we use the new idea of "widthBytes" |
| 23 * because this idea is distinct from "rowBytes" (used elsewhere in |
| 24 * Skia). "rowBytes" allow the last row of the allocation to not |
| 25 * include any extra padding, while, in this case, every single row of |
| 26 * the allocation must be at least "widthBytes". |
| 27 */ |
| 28 size_t fYWidthBytes; |
| 29 size_t fUWidthBytes; |
| 30 size_t fVWidthBytes; |
| 31 }; |
| 32 |
| 33 #endif // SkYUVSizeInfo_DEFINED |
OLD | NEW |