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); } }