50 {
60
61 unsigned char innerY[16] = {149, 160, 130, 105,
62 160, 130, 105, 149,
63 130, 105, 149, 160,
64 105, 149, 160, 130};
65 unsigned char innerU[4] = {43, 75, 145, 200};
66 unsigned char innerV[4] = {88, 180, 200, 43};
67 int outerYUV[] = {128, 128, 128};
69 for (int i = 0; i < 3; ++i) {
72 }
79 }
@ kAlpha_8_SkColorType
pixel with alpha in 8-bit byte
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
@ kJPEG_Full_SkYUVColorSpace
describes full range
bool installPixels(const SkImageInfo &info, void *pixels, size_t rowBytes, void(*releaseProc)(void *addr, void *context), void *context)
bool writePixels(const SkPixmap &src, int dstX, int dstY)
void eraseColor(SkColor4f) const
@ kY_U_V
Plane 0: Y, Plane 1: U, Plane 2: V.
@ k420
1 set of UV values for each 2x2 block of Y values.
const SkPixmap & plane(int i) const
static SkYUVAPixmaps Allocate(const SkYUVAPixmapInfo &yuvaPixmapInfo)
static SkImageInfo MakeA8(int width, int height)