public class GSYRenderView
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected IGSYRenderView |
mShowView |
| 构造器和说明 |
|---|
GSYRenderView() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addToParent(android.view.ViewGroup textureViewContainer,
android.view.View render)
common function
|
void |
addView(android.content.Context context,
android.view.ViewGroup textureViewContainer,
int rotate,
IGSYSurfaceListener gsySurfaceListener,
MeasureHelper.MeasureFormVideoParamsListener videoParamsListener,
GSYVideoGLView.ShaderInterface effect,
float[] transform,
GSYVideoGLViewBaseRender customRender,
int mode)
添加播放的view
|
int |
getHeight() |
android.view.ViewGroup.LayoutParams |
getLayoutParams() |
float |
getRotation() |
android.view.View |
getShowView() |
static int |
getTextureParams()
获取布局参数
|
int |
getWidth() |
android.graphics.Bitmap |
initCover()
暂停时初始化位图
|
android.graphics.Bitmap |
initCoverHigh()
暂停时初始化位图
|
void |
invalidate() |
void |
onPause()
主要针对GL
|
void |
onResume()
主要针对GL
|
void |
releaseAll()
主要针对GL
|
void |
requestLayout()
RenderView function start
|
void |
saveFrame(java.io.File file,
boolean high,
GSYVideoShotSaveListener gsyVideoShotSaveListener)
保存截图
|
void |
saveFrame(java.io.File file,
GSYVideoShotSaveListener gsyVideoShotSaveListener)
保存截图
|
void |
setEffectFilter(GSYVideoGLView.ShaderInterface effectFilter)
设置滤镜效果
|
void |
setGLRenderer(GSYVideoGLViewBaseRender renderer)
自定义GL的渲染render
|
void |
setGLRenderMode(int mode)
主要针对GL
|
void |
setLayoutParams(android.view.ViewGroup.LayoutParams layoutParams) |
void |
setMatrixGL(float[] matrixGL)
GL模式下的画面matrix效果
|
void |
setRotation(float rotation) |
void |
setTransform(android.graphics.Matrix transform)
主要针对TextureView,设置旋转
|
void |
taskShotPic(GSYVideoShotListener gsyVideoShotListener)
获取截图
|
void |
taskShotPic(GSYVideoShotListener gsyVideoShotListener,
boolean shotHigh)
获取截图
|
protected IGSYRenderView mShowView
public void requestLayout()
public float getRotation()
public void setRotation(float rotation)
public void invalidate()
public int getWidth()
public int getHeight()
public android.view.View getShowView()
public android.view.ViewGroup.LayoutParams getLayoutParams()
public void setLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
public void addView(android.content.Context context,
android.view.ViewGroup textureViewContainer,
int rotate,
IGSYSurfaceListener gsySurfaceListener,
MeasureHelper.MeasureFormVideoParamsListener videoParamsListener,
GSYVideoGLView.ShaderInterface effect,
float[] transform,
GSYVideoGLViewBaseRender customRender,
int mode)
public void setTransform(android.graphics.Matrix transform)
public android.graphics.Bitmap initCover()
public android.graphics.Bitmap initCoverHigh()
public void taskShotPic(GSYVideoShotListener gsyVideoShotListener)
public void taskShotPic(GSYVideoShotListener gsyVideoShotListener, boolean shotHigh)
shotHigh - 是否需要高清的public void saveFrame(java.io.File file,
GSYVideoShotSaveListener gsyVideoShotSaveListener)
public void saveFrame(java.io.File file,
boolean high,
GSYVideoShotSaveListener gsyVideoShotSaveListener)
high - 是否需要高清的public void onResume()
public void onPause()
public void releaseAll()
public void setGLRenderMode(int mode)
public void setGLRenderer(GSYVideoGLViewBaseRender renderer)
public void setMatrixGL(float[] matrixGL)
matrixGL - 16位长度public void setEffectFilter(GSYVideoGLView.ShaderInterface effectFilter)
public static void addToParent(android.view.ViewGroup textureViewContainer,
android.view.View render)
public static int getTextureParams()