Lines Matching defs:yuv
370 static void convert_rgba_to_yuva(const float mtx[20], SkColor col, uint8_t yuv[4]) {
375 yuv[0] = SkTPin(SkScalarRoundToInt(mtx[ 0]*r + mtx[ 1]*g + mtx[ 2]*b + mtx[ 4]*255), 0, 255);
376 yuv[1] = SkTPin(SkScalarRoundToInt(mtx[ 5]*r + mtx[ 6]*g + mtx[ 7]*b + mtx[ 9]*255), 0, 255);
377 yuv[2] = SkTPin(SkScalarRoundToInt(mtx[10]*r + mtx[11]*g + mtx[12]*b + mtx[14]*255), 0, 255);
378 yuv[3] = SkColorGetA(col);
795 int numRows = 1 + (kLast_YUVFormat + 1); // original + #-yuv-formats
1107 auto yuv = fImages[opaque][tagged]->makeColorSpace(fTargetColorSpace, dContext);
1108 SkASSERT(yuv);
1109 SkASSERT(SkColorSpace::Equals(yuv->colorSpace(), fTargetColorSpace.get()));
1110 canvas->drawImage(yuv, x, y);
1114 auto subset = yuv->makeSubset(bounds, dContext);
1119 auto nonTexture = yuv->makeNonTextureImage();
1125 readBack.allocPixels(yuv->imageInfo());
1126 SkAssertResult(yuv->readPixels(dContext, readBack.pixmap(), 0, 0));
1173 // Exercises SkColorMatrix_RGB2YUV for yuv colorspaces, showing the planes, and the