YUV 422 , YUV 420 ,YUV 444

后端 未结 2 620
梦毁少年i
梦毁少年i 2021-02-01 09:05

I have for example 4*4 image. I want to extract the Y,U and V components separately. How to do it if the image is YUV 422 ,YUV 420 and YUV444. I am interested in knowing the str

2条回答
  •  余生分开走
    2021-02-01 09:54

    it's a pretty old question, however I've just finish some work about decoding YUV and I would like to share some infos. There are 3 main aspects of the YUV schema:

    1. If the source YUV buffer is a packed or planar buffer. Packed means that the YUV bits are grouped togheter, planar means the Y, U and V buffers are separated in 3 differents memory area.

    2. YUV channel size; the single Y,U,V channel could be of 8-bit, 10-bit, 12-bit, etc

    3. the sampling ratio; A:B:C. 4:2:2 means that you horizontally have 1 Y value for each pixels and one only U and V value shared between two neightboard pixels.

    I've just worked on YUV 4:2:2 v210 decoding, following this link there is the GLSL source code to decode and the resources I referred to. Any advice is welcome, it's my first decoder.

提交回复
热议问题