Skip to content

Add support for interleaved yuv 4:4:4, 4:2:2, 4:2:0 formats

Choose a tag to compare

@labradon labradon released this 16 Jun 20:57
· 2 commits to main since this release

Interleaved YUV formats for 4:2:0, 4:2:2 and 4:4:4 chroma subsampling. The naming convention follows planar naming conventions replacing the "p" for planar by "i" for interleaved. Example: 'yuv420i10le': Interleaved yuv 4:2:0 with 10 bits sample precision packed into 16 bit sample containers.

Though fully interleaved yuv 4:2:0 is uncommon, it may be useful for some applications. Fully interleaved yuv 4:2:0 is structured as follows: Even lines carry interleaved luma and chroma as [y0 u0 y1 v0 ...], while odd lines carry only luma as [y0 y1 ...]
Interleaved yuv 4:2:2 and 4:4:4 are more common and are structued as [y0 u0 y1 v1 ...] (yuv 4:2:2) and [y0 u0 v0 y1 u1 v1 ...] (yuv 4:4:4).