From 02aab60af4ebfadb0a51d44135c734d91430e11d Mon Sep 17 00:00:00 2001 From: pans <pans@454eff88-639b-444f-9e54-f578c98de674> Date: 星期三, 09 八月 2017 10:39:03 +0800 Subject: [PATCH] update capnproto include file --- VisitFace/RtspNativeCodec/app/src/main/java/com/example/nativecodec/TextureRender.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/VisitFace/RtspNativeCodec/app/src/main/java/com/example/nativecodec/TextureRender.java b/VisitFace/RtspNativeCodec/app/src/main/java/com/example/nativecodec/TextureRender.java index 7228629..92bdf9f 100644 --- a/VisitFace/RtspNativeCodec/app/src/main/java/com/example/nativecodec/TextureRender.java +++ b/VisitFace/RtspNativeCodec/app/src/main/java/com/example/nativecodec/TextureRender.java @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; @@ -210,4 +211,9 @@ throw new RuntimeException(op + ": glError " + error); } } + public void readPixels(Buffer buf) + { + GLES20.glReadPixels(0, 0, 1, 1, GL10.GL_RGB, GL10.GL_UNSIGNED_BYTE, buf); + //GLES20.glReadPixels(0, 0, 640, 480, GLES20.GL_RGB, GLES20.GL_UNSIGNED_BYTE, buf); + } } \ No newline at end of file -- Gitblit v1.8.0