From 2b43077d967c28fe99e1ff2b99f19e1433c710d9 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 17 八月 2017 12:28:36 +0800 Subject: [PATCH] aaaaa --- 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