1.接口定义:
int I420ToRGB24(const uint8* src_y, int src_stride_y,
const uint8* src_u, int src_stride_u,
const uint8* src_v, int src_stride_v,
uint8* dst_frame, int dst_stride_frame,
int width, int height);
2.实际使用
首先弄清楚两种图片格式的存储格式:
rgb24图像格式:
1个像素为3个字节,b\g\r三个通道分别1个字节
联系客服