public class RCRTCRemoteVideoFrame extends Object
限定符和类型 | 类和说明 |
---|---|
static class |
RCRTCRemoteVideoFrame.RCRTCVideoFrameType |
static interface |
RCRTCRemoteVideoFrame.RTCBuffer |
class |
RCRTCRemoteVideoFrame.RTCBufferI420 |
class |
RCRTCRemoteVideoFrame.RTCBufferNV12
nv12 视频数据格式
|
class |
RCRTCRemoteVideoFrame.RTCOESTextureBuffer
oes试图存储格式
|
static class |
RCRTCRemoteVideoFrame.RTCRGBTextureBuffer
RGB格式纹理
|
构造器和说明 |
---|
RCRTCRemoteVideoFrame(VideoFrame videoFrame) |
RCRTCRemoteVideoFrame(VideoFrame videoFrame,
ByteBuffer dataY,
ByteBuffer dataU,
ByteBuffer dataV)
专为 I420Buffer 构建
|
RCRTCRemoteVideoFrame(VideoFrame videoFrame,
RCRTCRemoteVideoFrame.RTCBuffer buffer,
RCRTCRemoteVideoFrame.RCRTCVideoFrameType type)
只有RGB格式的buffer调用
|
限定符和类型 | 方法和说明 |
---|---|
RCRTCRemoteVideoFrame.RTCBuffer |
getBuffer()
视频解码后的数据 RTCBuffer 分为两种类型: RTCOESTextureBuffer: OES纹理缓冲 RTCI420Buffer: YUV420格式数据
|
RCRTCRemoteVideoFrame.RCRTCVideoFrameType |
getFrameType()
获取图像数据格式
|
int |
getRotatedHeight()
获取图像旋转高
|
int |
getRotatedWidth()
获取图像旋转宽
|
int |
getRotation()
获取图像的旋转角度
|
long |
getTimestampNs()
获取图像时间戳
|
public RCRTCRemoteVideoFrame(VideoFrame videoFrame)
public RCRTCRemoteVideoFrame(VideoFrame videoFrame, RCRTCRemoteVideoFrame.RTCBuffer buffer, RCRTCRemoteVideoFrame.RCRTCVideoFrameType type)
videoFrame
- type
- public RCRTCRemoteVideoFrame(VideoFrame videoFrame, ByteBuffer dataY, ByteBuffer dataU, ByteBuffer dataV)
videoFrame
- dataY
- I420 数据中 Y 分量数据dataU
- I420 数据中 U 分量数据dataV
- I420 数据中 V 分量数据public RCRTCRemoteVideoFrame.RTCBuffer getBuffer()
public RCRTCRemoteVideoFrame.RCRTCVideoFrameType getFrameType()
public int getRotation()
public long getTimestampNs()
public int getRotatedWidth()
public int getRotatedHeight()