Home
last modified time | relevance | path

Searched refs:rgbaData (Results 1 – 6 of 6) 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/
DReadWriteAlphaTest.cpp182 uint32_t rgbaData[X_SIZE * Y_SIZE]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
186 rgbaData[y * X_SIZE + x] = GrColorPackRGBA(6, 7, 8, alphaData[y * X_SIZE + x]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
193 origin, rgbaData, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DProcessorTest.cpp294 std::unique_ptr<GrColor[]> rgbaData(new GrColor[kTestTextureSize * kTestTextureSize]); in init_test_textures() local
297 rgbaData[kTestTextureSize * y + x] = input_texel_color( in init_test_textures()
304 SkPixmap pixmap(ii, rgbaData.get(), ii.minRowBytes()); in init_test_textures()
/external/skqp/tests/
DReadWriteAlphaTest.cpp182 uint32_t rgbaData[X_SIZE * Y_SIZE]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
186 rgbaData[y * X_SIZE + x] = GrColorPackRGBA(6, 7, 8, alphaData[y * X_SIZE + x]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
193 origin, rgbaData, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DProcessorTest.cpp287 std::unique_ptr<GrColor[]> rgbaData(new GrColor[kTestTextureSize * kTestTextureSize]); in init_test_textures() local
290 rgbaData[kTestTextureSize * y + x] = input_texel_color( in init_test_textures()
297 SkPixmap pixmap(ii, rgbaData.get(), ii.minRowBytes()); in init_test_textures()