1 package com.netease.nimlib.sdk.avchat.video;
3 import android.graphics.Matrix;
4 import android.opengl.GLES11Ext;
5 import android.opengl.GLES20;
11 private final VideoFrame.TextureBuffer buffer;
14 OES(GLES11Ext.GL_TEXTURE_EXTERNAL_OES),
15 RGB(GLES20.GL_TEXTURE_2D);
17 private final int glTarget;
19 Type(
final int glTarget) {
20 this.glTarget = glTarget;
23 public int getGlTarget() {
34 switch (buffer.getType()) {
44 return buffer.getTextureId();
48 return buffer.getTransformMatrix();
Matrix getTransformMatrix()