[FFmpeg-devel] [PATCH] swscale: Add support for NV24 and NV42

Philip Langdale philipl at overt.org
Fri May 10 18:07:45 EEST 2019


On Fri, 10 May 2019 09:35:40 +0300
Lauri Kasanen <cand at gmx.com> wrote:

> 
> I'm having trouble making out what formats exactly isSemiPlanarYUV()
> matches. Are you sure it's an equivalent check?
> 

Well, the check's been in there for quite a while; that's not new.

(isPlanarYUV(pix_fmt) && desc->comp[1].plane == desc->comp[2].plane);

So, any planar yuv format where component 1 and component 2 are on the
same plane. Except for semi planar formats, you expect either all
components on the same plane (packed, so not planar) or every component
on a separate plain (normal planar).

--phil


More information about the ffmpeg-devel mailing list