Graphical YV12 and NV12 and I420 chroma sampling formats

### Date: 2017/5/25

### Author: Soaringlee

I420:YUV420p, the planar format, is stored in three independent arrays in the memory, first the Y array, then the U array, and finally the V array. The physical pixel storage of I420 and the storage in the memory are shown in Figure 1 below;

YV12: YUV420p, the planar format, is stored in three independent arrays in memory, first the Y array, then the V array, and finally the U array. The difference with I420 is that the order of U component and V component in memory is different. as shown in picture 2;

Figure 1 Schematic diagram of I420 physical pixel storage and storage in memory


Figure 2 Schematic diagram of YV12 physical pixel storage and storage in memory


NV12:YUV420sp, semi-planar, and Y components are stored in a separate array, and U and V are interleaved in an array. Before U, V and after are NV12, and V before and U are NV21. The storage diagram of NV12 is shown in Figure 3.


Figure 3 Schematic diagram of NV12 physical pixel storage and storage in memory

Intelligent Recommendation

CUDA YV12 / NV12 Convert to RGB24

First, YV12 format description Second, NV12 format description   Third, YUV420 format list Fourth, NV12 turn RGB24 Kenergy function implementation Reference: NV12 format turn RGB's CUDA implement...

YV12toI420 yuv420, NV12, YV12 mutual conversion

When YV12 is set to save the picture during recording Convert YUV420P, I420, NV12, YV12 format to NV12 to save pictures GLSurfaceView implements SurfaceHolder.Callback, Camera.PreviewCallback { } Came...

Summary of YUV420 (YU12, YV12, NV12 and NV21)

The YUV model defines a color space based on one brightness (Y component) and two chromaticities (UV components). The most common format is YUV420, which is divided into two types: YUV420P and YUV420S...

[Codecs] Color space conversion CSconvert: I420 to NV12

Date: 2018.5.31 I420 is the commonly used YUV420P format, and YUV storage is stored in the order of Y\U\V three planes. NV12 is the format of YUV420sp, the Y component occupies a plane, and the UV com...

More Recommendation

Chroma sampling structure represented by chroma_format_idc

chroma_format_idc means as mentioned in section 6.2,Chroma sampling corresponding to luma sampling. The value of chroma_format_idc should be 0 To 3 (including 0 and 3).When chroma_format_idc does not ...

Codecs [] the main difference between YUV format YV12, I420, YUV420P of

###Date: 2018.5.14 ==================================================================== Detailed explanation of YUV format: http: //www.fourcc.org/yuv.php Reference from: https: //blog.csdn.net/leixia...

YUV format learning: YUV420P, YV12, NV12, NV21 format Convert to RGB24

The YUV420 has a package, as described above. At the same time, there is a planar format, that is, Y, U, V is separately stored, each component accounts for a place, where Y is width * height, and hal...

[Image] Data format introduction (YUV420SP, YUV420SP, YV12, NV12, etc.)

Yuv definition:Divided into three components, "Y" represents luminance (luminance or luma), that is, gray value; "U" and "V" represent the chrominance or chroma Saturatio...

Color depth and chroma sampling, video codec

10bit4:2:2,8bit4:2:0???? https://www.bilibili.com/video/BV1ds411T7F4 Color depth There are a total of 256 integers between 255:0-255=2^8, which is 2 to the 8th power. This is the so-called8 bit depth。...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top