ExternalVideoFrame
- C++
更新时间不可用
表示外部视频帧。
struct ExternalVideoFrame {
VIDEO_BUFFER_TYPE type;
VIDEO_PIXEL_FORMAT format;
void* buffer;
int stride;
int height;
int cropLeft;
int cropTop;
int cropRight;
int cropBottom;
int rotation;
long long timestamp;
void* eglContext;
EGL_CONTEXT_TYPE eglType;
int textureId;
long long fenceObject;
float matrix[16];
uint8_t* alphaBuffer;
bool fillAlphaBuffer;
ALPHA_STITCH_MODE alphaStitchMode;
void *d3d11Texture2d;
int textureSliceIndex;
ColorSpace colorSpace;
};属性
| 参数名 | 描述 |
|---|---|
type | 视频类型。详见 VIDEO_BUFFER_TYPE。 |
format | 像素格式。详见 VIDEO_PIXEL_FORMAT。 |
buffer | |
stride | |
height | |
cropLeft | |
cropTop | |
cropRight | |
cropBottom | |
rotation | |
timestamp | |
eglContext | |
eglType | |
textureId | |
fenceObject | |
matrix | |
alphaBuffer | |
fillAlphaBuffer | |
alphaStitchMode | 当视频帧包含 Alpha 通道数据时,表示 |
d3d11Texture2d | |
textureSliceIndex | |
colorSpace | 视频帧的色彩空间属性,默认采用 Full Range 和 BT.709 标准配置。详见 |
旧字段链接
以上锚点仅用于旧文档链接兼容,当前结构体字段列表不包含这两个预览字段。