Home
last modified time | relevance | path

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

/external/skia/gm/
Dimagefromyuvtextures.cpp43 paint.setShader(SkGradientShader::CreateRadial(SkPoint::Make(0,0), kBmpSize / 2.f, kColors, in onOnceBeforeDraw()
47 rgbBmp.allocN32Pixels(kBmpSize, kBmpSize, true); in onOnceBeforeDraw()
52 SkImageInfo yinfo = SkImageInfo::MakeA8(kBmpSize, kBmpSize); in onOnceBeforeDraw()
54 SkImageInfo uinfo = SkImageInfo::MakeA8(kBmpSize / 2, kBmpSize / 2); in onOnceBeforeDraw()
56 SkImageInfo vinfo = SkImageInfo::MakeA8(kBmpSize / 2, kBmpSize / 2); in onOnceBeforeDraw()
66 for (int i = 0; i < kBmpSize * kBmpSize; ++i) { in onOnceBeforeDraw()
71 for (int j = 0; j < kBmpSize / 2; ++j) { in onOnceBeforeDraw()
72 for (int i = 0; i < kBmpSize / 2; ++i) { in onOnceBeforeDraw()
77 int rgbIndex = (2 * j + y) * kBmpSize + 2 * i + x; in onOnceBeforeDraw()
86 int uvIndex = j * kBmpSize / 2 + i; in onOnceBeforeDraw()
[all …]