ExternalVideoFrame
- React Native
更新时间不可用
外部视频帧。
export class ExternalVideoFrame {
type?: VideoBufferType;
format?: VideoPixelFormat;
buffer?: Uint8Array;
stride?: number;
height?: number;
cropLeft?: number;
cropTop?: number;
cropRight?: number;
cropBottom?: number;
rotation?: number;
timestamp?: number;
eglType?: EglContextType;
textureId?: number;
matrix?: number[];
metadataBuffer?: Uint8Array;
metadataSize?: number;
alphaBuffer?: Uint8Array;
fillAlphaBuffer?: boolean;
alphaStitchMode?: AlphaStitchMode;
colorSpace?: ColorSpace;
}属性
| 参数名 | 描述 |
|---|---|
type | 视频类型。详见 VideoBufferType。 |
format | 像素格式。详见 VideoPixelFormat。 |
buffer | |
stride | |
height | |
eglContext | |
eglType | |
textureId | |
matrix | |
metadataBuffer | |
metadataSize | |
alphaBuffer | |
fillAlphaBuffer | |
alphaStitchMode | 当视频帧中包含 Alpha 通道数据时,设置 |
cropLeft | |
cropTop | |
cropRight | |
cropBottom | |
rotation | |
timestamp | |
colorSpace | 视频帧的色彩空间属性,默认情况下会应用 Full Range 和 BT.709 标准配置。你可以根据自定义采集、自定义渲染的业务需求进行自定义设置,详见 VideoColorSpace。 |