Home
last modified time | relevance | path

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

/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DSurfaceTextureHelperTest.java158 final ByteBuffer rgbaData = ByteBuffer.allocateDirect(width * height * 4); in testThreeConstantColorFrames() local
159 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, rgbaData); in testThreeConstantColorFrames()
163 while (rgbaData.hasRemaining()) { in testThreeConstantColorFrames()
164 assertEquals(rgbaData.get() & 0xFF, red[i]); in testThreeConstantColorFrames()
165 assertEquals(rgbaData.get() & 0xFF, green[i]); in testThreeConstantColorFrames()
166 assertEquals(rgbaData.get() & 0xFF, blue[i]); in testThreeConstantColorFrames()
167 assertEquals(rgbaData.get() & 0xFF, 255); in testThreeConstantColorFrames()
227 final ByteBuffer rgbaData = ByteBuffer.allocateDirect(width * height * 4); in testLateReturnFrame() local
228 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, rgbaData); in testLateReturnFrame()
233 while (rgbaData.hasRemaining()) { in testLateReturnFrame()
[all …]
DGlRectDrawerTest.java121 final ByteBuffer rgbaData = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4); in testRgbRendering() local
122 GLES20.glReadPixels(0, 0, WIDTH, HEIGHT, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, rgbaData); in testRgbRendering()
126 assertEquals(WIDTH, HEIGHT, stripAlphaChannel(rgbaData), rgbPlane); in testRgbRendering()
294 final ByteBuffer rgbaData = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4);
295 GLES20.glReadPixels(0, 0, WIDTH, HEIGHT, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, rgbaData);
299 assertEquals(WIDTH, HEIGHT, stripAlphaChannel(rgbaData), rgbPlane);
/external/skia/tests/
DProcessorTest.cpp313 std::unique_ptr<GrColor[]> rgbaData(new GrColor[256 * 256]); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
316 rgbaData.get()[256 * y + x] = in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
321 rgbaData.get(), 256 * sizeof(GrColor)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
344 rgbaData.get()[256 * y + x] = texel_color(x, y); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
351 rgbaData.get(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
376 memset(rgbaData.get(), 0x0, sizeof(GrColor) * 256 * 256); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
379 rgbaData.get(), 0, 0, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
395 GrColor output = rgbaData.get()[y * 256 + x]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DReadWriteAlphaTest.cpp160 uint32_t rgbaData[X_SIZE * Y_SIZE]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
164 rgbaData[y * X_SIZE + x] = GrColorPackRGBA(6, 7, 8, alphaData[y * X_SIZE + x]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
169 rgbaData, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()