当前位置:网站首页>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
边栏推荐
- PHP zero time task, PHP laravel time task schedule [dry goods]
- 【饭谈】如何设计好一款测试平台?
- ONEFLOW V0.8.0 officially released
- Unity Metaverse(二)、Mixamo & Animator 混合树与动画融合
- 狗粮的成分
- CNN structural design skills: taking into account speed accuracy and engineering implementation
- Shopify sellers: share some tips for social media marketing!
- Is there any document for synchronizing from Oracle to ODPs?
- MPI learning notes (II): two implementation methods of matrix multiplication
- Array of arm disassembly
猜你喜欢
![[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问题解决

SSH private key realizes login to remote target server

Record the transfer of domain names from Alibaba cloud service providers to Huawei cloud

【Flink】FLink RocksDBListState 报错 You cannot add null to a ListState

【饭谈】如何设计好一款测试平台?

Bitcoin.com:USDD代表了真正去中心化稳定币

Trusted and controllable way of Tencent cloud database

性能调试 -- Chrome Performance

How will Web3 change the future of people?

分享|智慧消防应急管理平台解决方案(附PDF)
随机推荐
[leetcode ladder] linked list · 876 find the middle node of the linked list
919. Complete binary tree inserter: simple BFS application problem
Apple estimates that iPhone will give up the Chinese market, and the Chinese industrial chain needs to consider living a hard life
How to solve the problem of high concurrency and large traffic with PHP
Guys, how can Flink SQL submit tasks in per job mode?
LeetCode_ 93_ Restore IP address
Fastjson deserialization vulnerability utilization analysis collection
SSH private key realizes login to remote target server
GPON介绍及华为OLT网关注册配置流程
[interview: concurrent Article 23: multithreading: Join] re understanding of join
Stm3 (cubeide) lighting experiment
How to implement distributed locks with redis?
H5 realize the animation effect of a scratch card
5、 Pinda general permission system__ PD tools XXS (anti cross site script attack)
On Web Performance Optimization (1)
pyqt5使用pyqtgraph绘制多个Y值散点图
【饭谈】Web3.0到来后,测试人员该何去何从?(十条预言和建议)
性能调试 -- Chrome Performance
How to copy all files in one folder to another folder
Autojs learning - Automatic screenshot of the king