-
- All Implemented Interfaces:
-
android.graphics.SurfaceTexture.OnFrameAvailableListener,android.opengl.GLSurfaceView.Renderer
public class GSYVideoGLViewSimpleRender extends GSYVideoGLViewBaseRender
在videffects的基础上调整的
原 @author sheraz.khilji
-
-
Field Summary
Fields Modifier and Type Field Description private intmuMVPMatrixHandleprivate intmuSTMatrixHandleprivate intmaPositionHandleprivate intmaTextureHandle
-
Constructor Summary
Constructors Constructor Description GSYVideoGLViewSimpleRender()
-
Method Summary
Modifier and Type Method Description intgetMuMVPMatrixHandle()intgetMuSTMatrixHandle()intgetMaPositionHandle()intgetMaTextureHandle()voidonDrawFrame(GL10 glUnused)voidonSurfaceChanged(GL10 glUnused, int width, int height)voidonSurfaceCreated(GL10 glUnused, EGLConfig config)synchronized voidonFrameAvailable(SurfaceTexture surface)voidreleaseAll()voidsetEffect(GSYVideoGLView.ShaderInterface shaderEffect)设置滤镜效果 GSYVideoGLView.ShaderInterfacegetEffect()intgetProgram()Array<float>getSTMatrix()Array<int>getTextureID()voidtakeShotPic()打开截图 voidsetGSYVideoShotListener(GSYVideoShotListener listener, boolean high)截图监听 -
Methods inherited from class com.shuyu.gsyvideoplayer.render.glrender.GSYVideoGLViewBaseRender
getCurrentVideoHeight, getCurrentVideoWidth, getCurrentViewHeight, getCurrentViewWidth, getMVPMatrix, initRenderSize, sendSurfaceForPlayer, setCurrentVideoHeight, setCurrentVideoWidth, setCurrentViewHeight, setCurrentViewWidth, setGSYSurfaceListener, setGSYVideoGLRenderErrorListener, setMVPMatrix, setSurfaceView -
Methods inherited from class android.opengl.GLSurfaceView.Renderer
onDrawFrame, onSurfaceChanged, onSurfaceCreated -
Methods inherited from class android.graphics.SurfaceTexture.OnFrameAvailableListener
onFrameAvailable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMuMVPMatrixHandle
int getMuMVPMatrixHandle()
-
getMuSTMatrixHandle
int getMuSTMatrixHandle()
-
getMaPositionHandle
int getMaPositionHandle()
-
getMaTextureHandle
int getMaTextureHandle()
-
onDrawFrame
void onDrawFrame(GL10 glUnused)
-
onSurfaceChanged
void onSurfaceChanged(GL10 glUnused, int width, int height)
-
onSurfaceCreated
void onSurfaceCreated(GL10 glUnused, EGLConfig config)
-
onFrameAvailable
synchronized void onFrameAvailable(SurfaceTexture surface)
-
releaseAll
void releaseAll()
-
setEffect
void setEffect(GSYVideoGLView.ShaderInterface shaderEffect)
设置滤镜效果
-
getEffect
GSYVideoGLView.ShaderInterface getEffect()
-
getProgram
int getProgram()
-
getSTMatrix
Array<float> getSTMatrix()
-
getTextureID
Array<int> getTextureID()
-
takeShotPic
void takeShotPic()
打开截图
-
setGSYVideoShotListener
void setGSYVideoShotListener(GSYVideoShotListener listener, boolean high)
截图监听
-
-
-
-