#include #include #include //生成RGB24格式的彩条测试 int main() { int width = 640; int height = 480; int barWidth = width/9; unsigned char *data = (unsigned char *)malloc(width*height*3); memset(data, 0, width*height*3); FILE *fp = fopen("./out/rgb24_colorbar_640x480.rgb", "wb+"); for (int i=0; i