Home
last modified time | relevance | path

Searched refs:rgbColors (Results 1 – 1 of 1) sorted by relevance

/external/skia/gm/
Dimagefromyuvtextures.cpp50 SkPMColor* rgbColors = static_cast<SkPMColor*>(rgbBmp.getPixels()); in onOnceBeforeDraw() local
67 yPixels[i] = static_cast<unsigned char>(0.299f * SkGetPackedR32(rgbColors[i]) + in onOnceBeforeDraw()
68 0.587f * SkGetPackedG32(rgbColors[i]) + in onOnceBeforeDraw()
69 0.114f * SkGetPackedB32(rgbColors[i])); in onOnceBeforeDraw()
78 rgb[0] += SkGetPackedR32(rgbColors[rgbIndex]); in onOnceBeforeDraw()
79 rgb[1] += SkGetPackedG32(rgbColors[rgbIndex]); in onOnceBeforeDraw()
80 rgb[2] += SkGetPackedB32(rgbColors[rgbIndex]); in onOnceBeforeDraw()
93 fRGBImage.reset(SkImage::NewRasterCopy(rgbBmp.info(), rgbColors, rgbBmp.rowBytes())); in onOnceBeforeDraw()