public class GSYVideoGLViewSimpleRender extends GSYVideoGLViewBaseRender
原 @author sheraz.khilji
| 限定符和类型 | 字段和说明 |
|---|---|
protected static int |
GL_TEXTURE_EXTERNAL_OES |
mChangeProgram, mChangeProgramSupportError, mCurrentVideoHeight, mCurrentVideoWidth, mCurrentViewHeight, mCurrentViewWidth, mGSYSurfaceListener, mGSYVideoGLRenderErrorListener, mHandler, mHighShot, mMVPMatrix, mSTMatrix, mSurfaceView| 构造器和说明 |
|---|
GSYVideoGLViewSimpleRender() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
bindDrawFrameTexture() |
GSYVideoGLView.ShaderInterface |
getEffect() |
protected java.lang.String |
getFragmentShader() |
int |
getMaPositionHandle() |
int |
getMaTextureHandle() |
int |
getMuMVPMatrixHandle() |
int |
getMuSTMatrixHandle() |
int |
getProgram() |
float[] |
getSTMatrix() |
int[] |
getTextureID() |
protected java.lang.String |
getVertexShader() |
protected void |
initDrawFrame() |
protected void |
initPointerAndDraw() |
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 glUnused) |
void |
onFrameAvailable(android.graphics.SurfaceTexture surface) |
void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 glUnused,
int width,
int height) |
void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 glUnused,
javax.microedition.khronos.egl.EGLConfig config) |
void |
releaseAll() |
void |
setEffect(GSYVideoGLView.ShaderInterface shaderEffect)
设置滤镜效果
|
void |
setGSYVideoShotListener(GSYVideoShotListener listener,
boolean high)
截图监听
|
protected void |
takeBitmap(javax.microedition.khronos.opengles.GL10 glUnused) |
void |
takeShotPic()
打开截图
|
checkGlError, createBitmapFromGLSurface, createProgram, getCurrentVideoHeight, getCurrentVideoWidth, getCurrentViewHeight, getCurrentViewWidth, getMVPMatrix, initRenderSize, loadShader, sendSurfaceForPlayer, setCurrentVideoHeight, setCurrentVideoWidth, setCurrentViewHeight, setCurrentViewWidth, setGSYSurfaceListener, setGSYVideoGLRenderErrorListener, setMVPMatrix, setSurfaceViewprotected static final int GL_TEXTURE_EXTERNAL_OES
public void onDrawFrame(javax.microedition.khronos.opengles.GL10 glUnused)
public void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 glUnused,
int width,
int height)
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 glUnused,
javax.microedition.khronos.egl.EGLConfig config)
public void onFrameAvailable(android.graphics.SurfaceTexture surface)
public void releaseAll()
releaseAll 在类中 GSYVideoGLViewBaseRenderpublic void setEffect(GSYVideoGLView.ShaderInterface shaderEffect)
setEffect 在类中 GSYVideoGLViewBaseRendershaderEffect - public GSYVideoGLView.ShaderInterface getEffect()
getEffect 在类中 GSYVideoGLViewBaseRenderprotected void initDrawFrame()
protected void bindDrawFrameTexture()
protected void takeBitmap(javax.microedition.khronos.opengles.GL10 glUnused)
protected void initPointerAndDraw()
public int getProgram()
public int getMuMVPMatrixHandle()
public int getMuSTMatrixHandle()
public int getMaPositionHandle()
public int getMaTextureHandle()
public float[] getSTMatrix()
public int[] getTextureID()
protected java.lang.String getVertexShader()
protected java.lang.String getFragmentShader()
public void takeShotPic()
takeShotPic 在类中 GSYVideoGLViewBaseRenderpublic void setGSYVideoShotListener(GSYVideoShotListener listener, boolean high)