myExample
myExample copied to clipboard
文章例子集合
ByteBuffer ByteBuffer = (ByteBuffer) GLES30.glMapBufferRange(GLES30.GL_PIXEL_PACK_BUFFER, 0, mPboSize, GLES30.GL_MAP_READ_BIT); 耗时为0 GLES30.glUnmapBuffer(GLES30.GL_PIXEL_PACK_BUFFER); GLES30.glBindBuffer(GLES30.GL_PIXEL_PACK_BUFFER, 0); if (ByteBuffer != null) { ByteBuffer.get(mData); 这里耗时非常大,有几十毫秒 ByteBuffer.clear(); }
`PboJni.glReadPixels(0, 0, rowStride / pixelStride, inputHeight, GLES30.GL_RGB, GLES30.GL_UNSIGNED_BYTE);` doesn't work for me. I changed the pixel stride to 3 for RGB, and I keep getting W: [SurfaceTexture-1-10470-0] bindTextureImage: clearing GL...
Thanks for your share at first. Openning camera failed at first install&startup ``` 07-24 10:34:53.029 23885-23885/com.xiuyukeji.filterrecord W/CameraBase: An error occurred while connecting to camera 1: Service not available 07-24 10:34:53.029...