如何将YUV数据转换为CVPixelBufferRef?

时间:2018-12-16 09:56:16

标签: ios objective-c opengl-es glkit cvpixelbuffer

我下面有Yuv数据:

@property(nonatomic, readonly) int chromaWidth;
@property(nonatomic, readonly) int chromaHeight;
@property(nonatomic, readonly) const uint8_t *dataY;
@property(nonatomic, readonly) const uint8_t *dataU;
@property(nonatomic, readonly) const uint8_t *dataV;
@property(nonatomic, readonly) int strideY;
@property(nonatomic, readonly) int strideU;
@property(nonatomic, readonly) int strideV;

现在如何将其转换为CVPixelBufferRef

0 个答案:

没有答案