Lines Matching refs:pixmaps
68 auto pixmaps = SkYUVAPixmaps::Allocate(pixmapInfo); in CreatePlanes() local
71 static_cast<unsigned char*>(pixmaps.planes()[0].writable_addr()), in CreatePlanes()
72 static_cast<unsigned char*>(pixmaps.planes()[1].writable_addr()), in CreatePlanes()
73 static_cast<unsigned char*>(pixmaps.planes()[2].writable_addr()), in CreatePlanes()
74 static_cast<unsigned char*>(pixmaps.planes()[3].writable_addr()), in CreatePlanes()
78 SkColorMatrix_RGB2YUV(pixmaps.yuvaInfo().yuvColorSpace(), m); in CreatePlanes()
81 for (int j = 0; j < pixmaps.planes()[0].height(); ++j) { in CreatePlanes()
82 for (int i = 0; i < pixmaps.planes()[0].width(); ++i) { in CreatePlanes()
88 yuvPixels[0][j*pixmaps.planes()[0].width() + i] = SkToU8( in CreatePlanes()
90 yuvPixels[3][j*pixmaps.planes()[0].width() + i] = SkToU8(sk_float_round2int( in CreatePlanes()
94 for (int j = 0; j < pixmaps.planes()[1].height(); ++j) { in CreatePlanes()
95 for (int i = 0; i < pixmaps.planes()[1].width(); ++i) { in CreatePlanes()
99 int ylimit = std::min(2*j + 2, pixmaps.planes()[0].height()); in CreatePlanes()
100 int xlimit = std::min(2*i + 2, pixmaps.planes()[0].width()); in CreatePlanes()
114 int uvIndex = j*pixmaps.planes()[1].width() + i; in CreatePlanes()
121 return sk_gpu_test::LazyYUVImage::Make(std::move(pixmaps)); in CreatePlanes()