VLIB的例子
// test input vectors - entered in UYVY format here so that it ends up in YUYV format in memory
unsigned char YUV422Data[64] = {151, 57, 116, 170, 9, 247, 208, 140, 150, 60, 88, 77, 4, 6, 162, 6, 31, 143, 178, 3, 135, 91, 54, 154, 193, 161, 20, 162, 137, 150, 128, 224,
214, 113, 9, 28, 53, 211, 98, 217, 149, 233, 231, 127, 115, 203, 177, 42, 62, 155, 3, 103, 127, 16, 135, 131, 211, 158, 9, 2, 106, 227, 249, 255};
unsigned char extractedR[32];
unsigned char extractedG[32];
unsigned char extractedB[32];
short coeff[] = { 0x2000, 0x2BDD, -0x0AC5, -0x1658, 0x3770 };
// call the function
VLIB_convertUYVYint_to_RGBpl(YUV422Data, // input YUV422 image
16, // width of input image
16, // pitch of input image 为什么不是32?????
2, // height of input image
coeff,
extractedR,
extractedG,
extractedB);
pitch为什么不是32?????
uyvy一行就占了32byte,所以pith应该是32啊?