public class NeteaseView
extends AspectTextureView
构造器和说明 |
---|
NeteaseView(Context context) |
NeteaseView(Context context,
AttributeSet attrs) |
限定符和类型 | 方法和说明 |
---|---|
void |
draw(byte[] data,
int width,
int height) |
void |
draw(int textureId,
float[] transform,
int width,
int height) |
float |
getRenderFps() |
void |
init(int previewWidth,
int previewHeight) |
void |
setMirror(boolean mirror) |
void |
setUseTexture() |
void |
surfaceChanged(SurfaceHolder holder,
int format,
int width,
int height) |
void |
surfaceCreated(SurfaceHolder holder) |
void |
surfaceDestroyed(SurfaceHolder holder) |
void |
unInit() |
public NeteaseView(Context context)
public NeteaseView(Context context, AttributeSet attrs)
public void setUseTexture()
public void setMirror(boolean mirror)
public float getRenderFps()
public void init(int previewWidth, int previewHeight)
public void unInit()
public void draw(byte[] data, int width, int height)
public void draw(int textureId, float[] transform, int width, int height)
public void surfaceCreated(SurfaceHolder holder)
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height)
public void surfaceDestroyed(SurfaceHolder holder)