1265 {
1275 cs,
1277 nullptr);
1279 for (
int i = 0;
i <
info.numPlanes(); ++
i) {
1280 planes[
i]->peekPixels(&pixmaps[
i]);
1281 }
1284 yuvaPixmaps,
1286 false,
1287 nullptr);
1288 if (img) {
1291 }
1293 }
1297 for (
int i = 0;
i <
info.numPlanes(); ++
i) {
1299 y += planes[
i]->height();
1300 }
1301 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kBT2020_SkYUVColorSpace
@ kRec601_SkYUVColorSpace
@ kRec709_SkYUVColorSpace
void translate(SkScalar dx, SkScalar dy)
virtual GrRecordingContext * recordingContext() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static constexpr int kMaxPlanes
@ k444
No subsampling. UV values for each Y.
static SkYUVAPixmaps FromExternalPixmaps(const SkYUVAInfo &, const SkPixmap[kMaxPlanes])
SK_API sk_sp< SkImage > TextureFromYUVAPixmaps(GrRecordingContext *context, const SkYUVAPixmaps &pixmaps, skgpu::Mipmapped buildMips, bool limitToMaxTextureSize, sk_sp< SkColorSpace > imageColorSpace)
std::tuple< std::array< sk_sp< SkImage >, SkYUVAInfo::kMaxPlanes >, SkYUVAInfo > MakeYUVAPlanesAsA8(SkImage *src, SkYUVColorSpace cs, SkYUVAInfo::Subsampling ss, GrRecordingContext *rContext)