public class GLVideoRenderMultiVideo
extends java.lang.Object
implements android.opengl.GLSurfaceView.Renderer
| Constructor and Description |
|---|
GLVideoRenderMultiVideo(PlayNotify playNotify,
boolean GPUFormatConvert,
int row_count,
int col_count,
android.graphics.Bitmap bitmap) |
GLVideoRenderMultiVideo(PlayNotify playNotify,
boolean GPUFormatConvert,
YMultiVideoViewParams params) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawCurrentFrame(int videoIndex) |
int |
genTextureWithBitmap(android.graphics.Bitmap bitmap,
int textureLayer) |
android.graphics.Bitmap |
getBitmap() |
android.graphics.Bitmap |
getBitmapExt(int videoIndex) |
YYRenderFrameBuffer |
getRenderFrameBuffer() |
VideoConstant.ScaleMode |
getScaleMode() |
VideoConstant.ScaleMode |
getScaleModeEx(int videoIndex) |
void |
init(PlayNotify playNotify,
boolean GPUFormatConvert) |
void |
linkToStream(long userGroupId,
long streamId,
int videoIndex) |
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) |
void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height) |
void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config) |
void |
release() |
void |
setOrientation(YSpVideoView.OrientationType orientationType,
int rotateAngle,
boolean adjustImmediately) |
boolean |
setScaleMode(VideoConstant.ScaleMode scaleMode) |
boolean |
setScaleModeEx(int videoIndex,
VideoConstant.ScaleMode scaleMode) |
void |
stopRender() |
void |
unLinkFromStream(long userGroupId,
long streamId,
int videoIndex) |
void |
updateVideoPosition()
OpenGL 视口坐标原点在左下角,界面上展示0~9是以左上角为原点,从左到右,从上到下。
|
public GLVideoRenderMultiVideo(PlayNotify playNotify, boolean GPUFormatConvert, YMultiVideoViewParams params)
public GLVideoRenderMultiVideo(PlayNotify playNotify, boolean GPUFormatConvert, int row_count, int col_count, android.graphics.Bitmap bitmap)
public void updateVideoPosition()
public void init(PlayNotify playNotify, boolean GPUFormatConvert)
public android.graphics.Bitmap getBitmapExt(int videoIndex)
public android.graphics.Bitmap getBitmap()
public boolean setScaleMode(VideoConstant.ScaleMode scaleMode)
public boolean setScaleModeEx(int videoIndex,
VideoConstant.ScaleMode scaleMode)
public VideoConstant.ScaleMode getScaleMode()
public VideoConstant.ScaleMode getScaleModeEx(int videoIndex)
public void setOrientation(YSpVideoView.OrientationType orientationType, int rotateAngle, boolean adjustImmediately)
public void linkToStream(long userGroupId,
long streamId,
int videoIndex)
public void unLinkFromStream(long userGroupId,
long streamId,
int videoIndex)
public YYRenderFrameBuffer getRenderFrameBuffer()
public void stopRender()
public void release()
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated in interface android.opengl.GLSurfaceView.Rendererpublic void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height)
onSurfaceChanged in interface android.opengl.GLSurfaceView.Rendererpublic void drawCurrentFrame(int videoIndex)
public int genTextureWithBitmap(android.graphics.Bitmap bitmap,
int textureLayer)
public void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
onDrawFrame in interface android.opengl.GLSurfaceView.Renderer