AgoraOutputVideoFrame
- macOS
更新时间不可用
视频帧的配置信息。
@interface AgoraOutputVideoFrame : NSObject
@property (nonatomic, assign) NSInteger type;
@property (nonatomic, assign) int width;
@property (nonatomic, assign) int height;
@property (nonatomic, assign) int yStride;
@property (nonatomic, assign) int uStride;
@property (nonatomic, assign) int vStride;
@property (nonatomic, assign) uint8_t* _Nullable yBuffer;
@property (nonatomic, assign) uint8_t* _Nullable uBuffer;
@property (nonatomic, assign) uint8_t* _Nullable vBuffer;
@property (nonatomic, assign) int rotation;
@property (nonatomic, assign) int64_t renderTimeMs;
@property (nonatomic, assign) int avSyncType;
@property(assign, nonatomic) CVPixelBufferRef _Nullable pixelBuffer;
@property (nonatomic, assign) uint8_t* _Nullable alphaBuffer;
@property (nonatomic, assign) AgoraAlphaStitchMode alphaStitchMode;
@property(nonatomic, strong) NSDictionary *_Nonnull metaInfo;
@property(nonatomic, strong) AgoraColorSpace* _Nullable colorSpace;
@end缓冲区提供的是指针的指针。该接口无法修改缓冲区的指针,但可以修改缓冲区的内容。
属性
| 参数名 | 描述 |
|---|---|
type | |
width | |
height | |
yStride | |
uStride | |
vStride | |
yBuffer | |
uBuffer | |
vBuffer | |
rotation | |
renderTimeMs | |
avSyncType | |
pixelBuffer | |
alphaBuffer | |
alphaStitchMode | 当视频帧包含 Alpha 通道数据时,表示 |
metaInfo | 视频帧中的元信息。如需使用该参数,请联系技术支持。 |
colorSpace | 视频帧的色彩空间配置,默认采用 Full Range 和 BT.709 标准。详见 |