public abstract class GSYVideoGLViewBaseRender
extends java.lang.Object
implements android.opengl.GLSurfaceView.Renderer, android.graphics.SurfaceTexture.OnFrameAvailableListener
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
mChangeProgram |
protected boolean |
mChangeProgramSupportError |
protected int |
mCurrentVideoHeight |
protected int |
mCurrentVideoWidth |
protected int |
mCurrentViewHeight |
protected int |
mCurrentViewWidth |
protected GLSurfaceListener |
mGSYSurfaceListener |
protected GSYVideoGLRenderErrorListener |
mGSYVideoGLRenderErrorListener |
protected android.os.Handler |
mHandler |
protected boolean |
mHighShot |
protected float[] |
mMVPMatrix |
protected float[] |
mSTMatrix |
protected android.opengl.GLSurfaceView |
mSurfaceView |
| 构造器和说明 |
|---|
GSYVideoGLViewBaseRender() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
checkGlError(java.lang.String op) |
protected android.graphics.Bitmap |
createBitmapFromGLSurface(int x,
int y,
int w,
int h,
javax.microedition.khronos.opengles.GL10 gl)
创建bitmap截图
|
protected int |
createProgram(java.lang.String vertexSource,
java.lang.String fragmentSource) |
int |
getCurrentVideoHeight() |
int |
getCurrentVideoWidth() |
int |
getCurrentViewHeight() |
int |
getCurrentViewWidth() |
GSYVideoGLView.ShaderInterface |
getEffect() |
float[] |
getMVPMatrix() |
void |
initRenderSize() |
protected int |
loadShader(int shaderType,
java.lang.String source) |
abstract void |
releaseAll() |
void |
sendSurfaceForPlayer(android.view.Surface surface) |
void |
setCurrentVideoHeight(int currentVideoHeight) |
void |
setCurrentVideoWidth(int currentVideoWidth) |
void |
setCurrentViewHeight(int currentViewHeight) |
void |
setCurrentViewWidth(int currentViewWidth) |
void |
setEffect(GSYVideoGLView.ShaderInterface shaderEffect)
设置滤镜效果
|
void |
setGSYSurfaceListener(GLSurfaceListener onSurfaceListener) |
void |
setGSYVideoGLRenderErrorListener(GSYVideoGLRenderErrorListener videoGLRenderErrorListener) |
void |
setGSYVideoShotListener(GSYVideoShotListener listener,
boolean high)
截图监听
|
void |
setMVPMatrix(float[] MVPMatrix)
形变动画
|
void |
setSurfaceView(android.opengl.GLSurfaceView surfaceView) |
void |
takeShotPic()
打开截图
|
protected boolean mHighShot
protected GLSurfaceListener mGSYSurfaceListener
protected android.opengl.GLSurfaceView mSurfaceView
protected float[] mMVPMatrix
protected float[] mSTMatrix
protected int mCurrentViewWidth
protected int mCurrentViewHeight
protected int mCurrentVideoWidth
protected int mCurrentVideoHeight
protected boolean mChangeProgram
protected boolean mChangeProgramSupportError
protected GSYVideoGLRenderErrorListener mGSYVideoGLRenderErrorListener
protected android.os.Handler mHandler
public abstract void releaseAll()
public void setSurfaceView(android.opengl.GLSurfaceView surfaceView)
public void sendSurfaceForPlayer(android.view.Surface surface)
protected int loadShader(int shaderType,
java.lang.String source)
protected int createProgram(java.lang.String vertexSource,
java.lang.String fragmentSource)
protected void checkGlError(java.lang.String op)
protected android.graphics.Bitmap createBitmapFromGLSurface(int x,
int y,
int w,
int h,
javax.microedition.khronos.opengles.GL10 gl)
public void setGSYSurfaceListener(GLSurfaceListener onSurfaceListener)
public float[] getMVPMatrix()
public void setMVPMatrix(float[] MVPMatrix)
public void takeShotPic()
public void setGSYVideoShotListener(GSYVideoShotListener listener, boolean high)
public void setEffect(GSYVideoGLView.ShaderInterface shaderEffect)
shaderEffect - public GSYVideoGLView.ShaderInterface getEffect()
public int getCurrentViewWidth()
public void setCurrentViewWidth(int currentViewWidth)
public int getCurrentViewHeight()
public void setCurrentViewHeight(int currentViewHeight)
public int getCurrentVideoWidth()
public void setCurrentVideoWidth(int currentVideoWidth)
public int getCurrentVideoHeight()
public void setCurrentVideoHeight(int currentVideoHeight)
public void initRenderSize()
public void setGSYVideoGLRenderErrorListener(GSYVideoGLRenderErrorListener videoGLRenderErrorListener)