Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: include/core/SkYUVSizeInfo.h

Issue 1716523002: Update Skia's YUV API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698