From 21b675418bc1c6ff3620483f3cd103fa0234fe26 Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 04 五月 2017 14:51:15 +0800
Subject: [PATCH] optimize

---
 VisitFace/RtspNativeCodec/app/src/main/java/com/example/nativecodec/TextureRender.java |    5 +++++
 1 files changed, 5 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..2de438c 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,8 @@
             throw new RuntimeException(op + ": glError " + error);
         }
     }
+    public void readPixels(Buffer 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