Definition at line 118 of file wacky_yuv_formats.cpp.
◆ YUVAPlanarConfig()
Definition at line 120 of file wacky_yuv_formats.cpp.
120 : fOrigin(origin) {
126 if (opaque) {
129 } else {
132 }
133 break;
136 if (opaque) {
139 } else {
142 }
143 break;
145 if (opaque) {
148 } else {
151 }
152 break;
154 if (opaque) {
157 } else {
160 }
161 break;
163 if (opaque) {
166 } else {
169 }
170 break;
172 if (opaque) {
175 } else {
178 }
179 break;
180 }
181 }
@ kY_U_V_A
Plane 0: Y, Plane 1: U, Plane 2: V, Plane 3: A.
@ kY_U_V
Plane 0: Y, Plane 1: U, Plane 2: V.
@ kY_V_U_A
Plane 0: Y, Plane 1: V, Plane 2: U, Plane 3: A.
@ kY_VU
Plane 0: Y, Plane 1: VU.
@ kY_UV
Plane 0: Y, Plane 1: UV.
@ kY_VU_A
Plane 0: Y, Plane 1: VU, Plane 2: A.
@ kY_V_U
Plane 0: Y, Plane 1: V, Plane 2: U.
@ kY_UV_A
Plane 0: Y, Plane 1: UV, Plane 2: A.
@ k420
1 set of UV values for each 2x2 block of Y values.
@ k444
No subsampling. UV values for each Y.
uint32_t uint32_t * format
◆ makeYUVAPixmaps()
Definition at line 196 of file wacky_yuv_formats.cpp.
199 {
200 SkYUVAInfo info(dimensions, fPlaneConfig, fSubsampling, yuvColorSpace, fOrigin);
202 int n =
info.numPlanes();
203 if (numBitmaps < n) {
204 return {};
205 }
206 for (
int i = 0;
i < n; ++
i) {
208 }
210}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
const SkPixmap & pixmap() const
static constexpr int kMaxPlanes
static SkYUVAPixmaps FromExternalPixmaps(const SkYUVAInfo &, const SkPixmap[kMaxPlanes])
◆ numPlanes()
int YUVAPlanarConfig::numPlanes |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: