现在我通过摄像头,采集到YUV2格式的数据,想转换成YUV420!大家有什么参考资料,或建议的吗?谢谢了!

解决方案 »

  1.   

    YUY2是打包格式的,YV12时平面模式
    比如 2 X 2 YUY2转YV12Y0U0 Y1V0 
    Y2U1 Y3V1 
    转换成YV12Y0Y1Y2Y3
    (V0+V1)/2
    (U0+U1)/2
      

  2.   

    这个YUV2:YUV422 as for UYVY but with different component order with the u_int32 macropixel!
      

  3.   

    一个是UYUV
    一个是YUYV就是顺序不一样,排列下就可以了。。
    转换就是上面给出的
    像素由 16bits --> 12bits
      

  4.   

    是UYVY,都是打包格式,就是顺序不一样而已