YUV420P的格式以及转换为RGB565的代码(Android摄像头的输出一般为YUV420P)
staticvoidcvt_420p_to_rgb565(intwidth,intheight,constunsignedchar*src,unsignedshort*dst){intline,col,linewidth;inty,u,v,yy,vr,ug,vg,ub;intr,g,b;constunsignedchar*py,*pu,*pv;linewidth=width>>1;py=src;p