图像处理算法大全(基于libyuv或IPP)----RGB24缩放

《周星星教你学ffmpeg》技巧

ipp源码:

static void RGB_Resize(BYTE* pin, BYTE* pout, int width,int height,int desWidth,int desHeight)//RGB缩放函数
{
IppiSize srcsz={width,height}, dstroi={desWidth,desHeight}; 
IppiRect srcroi={0,0,width,height}; 
// IppiSize roi = {desWidth,desHeight}; 
IppStatus is =ippiResize_8u_C3R( pin, srcsz, WLEN(width,24), srcroi, pout, WLEN(desWidth,24), dstroi,(double)desWidth/(double)width, (double)desHeight/(double)height, /*IPPI_INTER_NN*/IPPI_INTER_LINEAR ); 
if(is != ippStsNoErr)
{
return;
//convert error
}

}


有问题联系作者QQ:35744025

你可能感兴趣的:(ffmpeg,RGB24缩放,周星星,IPP,libyuv)