YUV422转BGR888(海思3516平台)(二)

2014-11-24 07:22:05 · 作者: · 浏览: 2
YUV Convert to RGB failed!\n");
return HI_FAILURE;
}
pImage = HI_MPI_SYS_Mmap(stDst.u32PhyAddr, nLengthImage/2*3);
if(NULL == pImage)
{
msg_print( "HI_MPI_SYS_Mmap err!\n");
return NVD_FALSE;
} www.2cto.com
ret = saveBMPFile((Byte*)pImage, nWidth, nHeight, "/mnt/rgb.dib");
if(0 != ret)
{
printf( "saveBMPFile error\n");
return;
}
printf("saveBMPFile done!\n");
//uninit();
}