public class RCRTCVideoFrame extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RCRTCVideoFrame.CaptureType |
static class |
RCRTCVideoFrame.Type |
| 构造器和说明 |
|---|
RCRTCVideoFrame() |
RCRTCVideoFrame(int width,
int height,
int rotation,
long timestamp,
byte[] data) |
RCRTCVideoFrame(int width,
int height,
int rotation,
long timestamp,
int textureId,
RCRTCVideoFrame.Type textureType) |
| 限定符和类型 | 方法和说明 |
|---|---|
RCRTCVideoFrame.CaptureType |
getCaptureType()
获取当前视频采集类型
|
byte[] |
getData()
yuc数据
|
int |
getHeight()
当前帧的高度
|
int |
getOesTextureId()
已过时。
|
int |
getRotation()
旋转角度
|
int |
getTextureId()
纹理ID
|
RCRTCVideoFrame.Type |
getTextureType() |
long |
getTimestamp()
时间戳
|
float[] |
getTransformMatrix() |
int |
getWidth()
当前帧的宽度
|
void |
setData(byte[] data) |
void |
setHeight(int height) |
void |
setRotation(int rotation) |
void |
setTextureId(int textureId)
设置纹理ID
|
void |
setTextureType(RCRTCVideoFrame.Type textureType) |
void |
setTimestamp(long timestamp) |
void |
setTransformMatrix(float[] transformMatrix) |
void |
setWidth(int width) |
public RCRTCVideoFrame()
public RCRTCVideoFrame(int width,
int height,
int rotation,
long timestamp,
int textureId,
RCRTCVideoFrame.Type textureType)
public RCRTCVideoFrame(int width,
int height,
int rotation,
long timestamp,
byte[] data)
public void setTextureId(int textureId)
textureId - public void setWidth(int width)
public void setHeight(int height)
public void setData(byte[] data)
public void setRotation(int rotation)
public void setTimestamp(long timestamp)
public void setTextureType(RCRTCVideoFrame.Type textureType)
public float[] getTransformMatrix()
public void setTransformMatrix(float[] transformMatrix)
@Deprecated public int getOesTextureId()
getTextureId()public int getTextureId()
public int getWidth()
public int getHeight()
public byte[] getData()
public RCRTCVideoFrame.CaptureType getCaptureType()
RCRTCVideoFrame.CaptureTypepublic long getTimestamp()
public int getRotation()
public RCRTCVideoFrame.Type getTextureType()