YUV Format Conclusion
2015-12-11 10:54
375 查看
What’s YUV ?
A kind of color format coding which can divide color into two parts: chroma and luma.
Calculate YUV
Change between YUV and RGB.
YUV Representation
From JM or HEVC, we can find this:
YUV422 Planar
YUV420 Planar
(1)
Increasing Memory Addresses
————————————————————————————->
| Y0 | Y1 | Y2 | Y3| ……
| U0 | U1 | ……
| V0 | V1 | ……
(2)
Increasing Memory Addresses
————————————————————————————->
| Y0 | Y1 | Y2 | Y3| ……
| V0 | V1 | ……
| U0 | U1 | ……
YUV422 Semi-Planar
YUV420 Semi-Planar
YUV422 Interleaved
YUY2:
| Y0 | V0 | Y1 | V0 | | Y2 | U1 | Y3 | V1 | | Y4 | U2 | Y5 | V2 | ……
UYVY:
| U0 | Y0 | V0 | Y1 | | U1 | Y2 | V1 | Y3 | | U2 | Y4 | V2 | Y5 | ……
One pixel is 16 bits.
http://www.cnblogs.com/watson/p/3788257.html
http://blog.csdn.net/jerrytong/article/details/5658818
A kind of color format coding which can divide color into two parts: chroma and luma.
Calculate YUV
Change between YUV and RGB.
YUV Representation
From JM or HEVC, we can find this:
YUV422 Planar
YUV420 Planar
(1)
Increasing Memory Addresses
————————————————————————————->
| Y0 | Y1 | Y2 | Y3| ……
| U0 | U1 | ……
| V0 | V1 | ……
(2)
Increasing Memory Addresses
————————————————————————————->
| Y0 | Y1 | Y2 | Y3| ……
| V0 | V1 | ……
| U0 | U1 | ……
YUV422 Semi-Planar
YUV420 Semi-Planar
YUV422 Interleaved
YUY2:
| Y0 | V0 | Y1 | V0 | | Y2 | U1 | Y3 | V1 | | Y4 | U2 | Y5 | V2 | ……
UYVY:
| U0 | Y0 | V0 | Y1 | | U1 | Y2 | V1 | Y3 | | U2 | Y4 | V2 | Y5 | ……
One pixel is 16 bits.
http://www.cnblogs.com/watson/p/3788257.html
http://blog.csdn.net/jerrytong/article/details/5658818
相关文章推荐
- C3P0 示例代码
- UITableview中的headview和footview怎么用
- MATLAB手动批量选取感兴趣区域
- Loadrunner C语言脚本常用函数总结
- 视屏音乐提取,剪切以及合并
- C#调用C++dll文件获取数据得到乱码的解决方法
- Android JNI 和 NDK
- Javascript 字符串常用操作方法
- mysql中导入txt文件
- CSS hack
- Navicat for mysql建立连接
- 标准库容器的使用
- ThinkPHP 项目分组配置
- Mapping Files into Memory
- 使用unity UGUI 利用Socket 实现 多客户端通讯
- Python基础 —— dict
- 回车换行的区别
- 用PHP5开发多任务应用程序
- Android插件化开发
- SignalR 集线器简单实例2