Searched refs:rgbaData (Results 1 – 3 of 3) sorted by relevance
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
D | SurfaceTextureHelperTest.java | 158 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 …]
|
D | GlRectDrawerTest.java | 121 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/ |
D | ReadWriteAlphaTest.cpp | 145 uint32_t rgbaData[X_SIZE * Y_SIZE]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 149 rgbaData[y * X_SIZE + x] = GrColorPackRGBA(6, 7, 8, alphaData[y * X_SIZE + x]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 153 context->textureProvider()->createTexture(desc, SkBudgeted::kNo, rgbaData, 0)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|