From 8dd085f78e4bcfbc89ede104108cd03053183865 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期二, 01 八月 2017 15:37:00 +0800
Subject: [PATCH]
---
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