当前位置:网站首页>YUV420 YUV420sp 图像格式「建议收藏」
YUV420 YUV420sp 图像格式「建议收藏」
2022-07-25 21:43:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
YUV定义:分为三个分量,“Y”表示明亮度(Luminance或Luma),也就是灰度值;而“U”和“V” 表示的则是色度(Chrominance或Chroma),作用是描述影像色彩及饱和度,用于指定像素的颜色。
YUV格式:有两大类:planar和packed。
YUV格式通常有两大类:打包(packed)格式和平面(planar)格式。
对于planar的YUV格式,先连续存储所有像素点的Y,紧接着存储所有像素点的U,随后是所有像素点的V。
对于packed的YUV格式,每个像素点的Y,U,V是连续交叉存储的。
YUV存储:格式其实与其采样的方式密切相关,主流的采样方式有三 种,YUV4:4:4,YUV4:2:2,YUV4:2:0,关于其详细原理,可以通过网 上其它文章了解,这里我想强调的是如何根据其采样格式来从码流中还原每个像素点的YUV值,因为只有正确地还原了每个像素点的YUV值,才能通过YUV与 RGB的转换公式提取出每个像素点的RGB值,然后显示出来。
YUV特点:也是一种颜色编码方法,它将亮度信息(Y)与色彩信息(UV)分离,没有UV信息一样 可以显示完整的图像,只不过是黑白的,这样的设计很好地解决了彩色电视机与黑白电视的兼容问题。并且,YUV不像RGB那样要求三个独立的视频信号同时传 输,所以用YUV方式传送占用极少的频宽。
1、YUV444
(1)YUV444p:YYYYYYYYY VVVVVVVVV UUUUUUUU
2、YUV422
(1)YUV422p:YYYYYYYY VVVV UUUU
(2)YUVY:YUYV YUYV YUYV YUYV
(3)UYVY:UYVY UYVY UYVY UYVY
3、YUV420
(1)YUV420p:
YV12:YYYYYYYY VV UU
I420:YYYYYYYY UU VV
(2)YUV420sp:
NV12:YYYYYYYY UVUV
NV21:YYYYYYYY VUVU
如果看到 YCbCr这种名字其实也是YUV格式 ,其中Y与YUV 中的Y含义一致,Cb , Cr 同样都指色彩,,只是在表示方法上有所不同,Cb、Cr 就是本来理论上的“分量/色差”的标识。C代表分量(是component的缩写)Cr、Cb分别对应r(红)、b(蓝)分量信号,Y除了g(绿)分量信号,还叠加了亮度信号。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127914.html原文链接:https://javaforall.cn
边栏推荐
- Unity metaverse (II), mixamo & animator hybrid tree and animation fusion
- 【Flink】FLink RocksDBListState 报错 You cannot add null to a ListState
- How to choose sentinel vs. hystrix current limiting?
- My heart's broken! After being cheated by 30000, a 16-year-old girl was unconvinced and cheated by 50000
- 【饭谈】细说:下克上,向上管理,向上画饼。
- 五、品达通用权限系统__pd-tools-xxs(防跨站脚本攻击)
- 如何用 Redis 实现分布式锁的?
- Apache Shenyu admin authentication bypass vulnerability (cve-2021-37580) analysis and protection measures
- Detailed explanation of Ag search tool parameters
- Sentinel vs Hystrix 限流对比,到底怎么选?
猜你喜欢

Oracle RAC RMAN backup error ora-19501 ora-15081
![[MAIXPY]kpu: load error:2005, ERR_READ_FILE: read file failed问题解决](/img/0b/da67b5a361a2cdfaf81568d34cf5f7.png)
[MAIXPY]kpu: load error:2005, ERR_READ_FILE: read file failed问题解决

How will Web3 change the future of people?

ONEFLOW V0.8.0 officially released

Byte side: can TCP and UDP use the same port?

MySQL master-slave configuration

JMeter distributed pressure measurement
![[interview: concurrent Article 23: multithreading: Join] re understanding of join](/img/ee/5160a55e776336ba844abe8e9db72a.png)
[interview: concurrent Article 23: multithreading: Join] re understanding of join

The adequacy of source evaluation forum · observation model test

Trusted and controllable way of Tencent cloud database
随机推荐
The inexplicability of Intel disassembly
MySQL master-slave configuration
Isn't it too much to play Gobang in idea?
How to configure and use rocksdb in the flinksql environment
Protobuf的简单使用
C#常见的集合
Fastjson deserialization vulnerability utilization analysis collection
ag 搜索工具参数详解
IJCAI2022开会了! 微软等《领域泛化Domain Generalization》教程
The noise reduction effect is increased by more than 6 times! With the microphone inside the headset, this wireless noise reduction headset is unusual!
Idea resolves the prompt of profile properties disappear
CNN structural design skills: taking into account speed accuracy and engineering implementation
Redis 使用详解
【leetcode天梯】链表 · 021 合并两个有序链表
C#Socket
Pyqt5 use pyqtgraph to draw multiple y-value scatter plots
Detailed explanation of several ideas for implementing timed tasks in PHP
Optimization analysis of storage structure and IO performance of openharmony littlefs file system
性能调试 -- Chrome Performance
The adequacy of source evaluation forum · observation model test