图像处理算法大全(基于libyuv或IPP)----YV12镜像

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xjb2006/article/details/80827167

《周星星教你学ffmpeg》技巧

libyuv源码:

static void YV12Mirror(const uint8* src_frame,uint8* dst_frame,int width,int height)

{
const uint8* yplane= src_frame;
const uint8* uplane= src_frame + width * height;
const uint8* vplane= uplane+ (width * height/4);
uint8* yplaned= dst_frame;
uint8* uplaned= dst_frame + width * height;
uint8* vplaned= uplaned+ (width * height/4);
libyuv::I420Mirror(yplane,width,uplane, width/2,vplane, width/2,
yplaned,width,uplaned, width/2,vplaned, width/2,
width,height);

}


有问题联系作者QQ:35744025

猜你喜欢

转载自blog.csdn.net/xjb2006/article/details/80827167