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

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: Tweak the API to use arrays and named indices 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
« no previous file with comments | « include/core/SkPixelRef.h ('k') | src/codec/SkCodecImageGenerator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SkYUVSizeInfo {
12 enum {
13 kY = 0,
14 kU = 1,
15 kV = 2,
16 kPlaneCount = 3,
reed1 2016/02/19 22:00:23 nit: In general we have shied away from placing th
msarett 2016/02/19 22:16:12 Makes sense. No reason not to just use 3 :).
17 };
18 SkISize fSizes[kPlaneCount];
19
20 /**
21 * While the widths of the Y, U, and V planes are not restricted, the
22 * implementation often requires that the width of the memory allocated
23 * for each plane be a multiple of 8.
24 *
25 * This struct allows us to inform the client how many "widthBytes"
26 * that we need. Note that we use the new idea of "widthBytes"
27 * because this idea is distinct from "rowBytes" (used elsewhere in
28 * Skia). "rowBytes" allow the last row of the allocation to not
29 * include any extra padding, while, in this case, every single row of
30 * the allocation must be at least "widthBytes".
31 */
32 size_t fWidthBytes[kPlaneCount];
33 };
34
35 #endif // SkYUVSizeInfo_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkPixelRef.h ('k') | src/codec/SkCodecImageGenerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698