[FFmpeg-devel] [PATCH v1] avcodec/v210enc: add yuv420p/yuv420p10 input pixel format support

Devin Heitmueller dheitmueller at ltnglobal.com
Fri Sep 20 22:19:52 EEST 2019


Hello Michael,


> On Sep 20, 2019, at 12:10 PM, Michael Niedermayer <michael at niedermayer.cc> wrote:
> 
> On Fri, Sep 20, 2019 at 11:55:17PM +0800, lance.lmwang at gmail.com wrote:
>> From: Limin Wang <lance.lmwang at gmail.com>
>> 
>> Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
>> ---
>> libavcodec/v210_template.c | 20 ++++++++++++++++++++
>> libavcodec/v210enc.c       |  8 +++++---
>> 2 files changed, 25 insertions(+), 3 deletions(-)
> 
> Adding a nearest neighbor scaler or in fact any scaler
> into an encoder is not ok
> 
> This belongs in swscale and it is already there.


Just to be clear, there is no scaling going on here.  The patch just expands 4:2:0 to 4:2:2 while properly supporting interlaced chroma.  It avoids having to auto insert the swscale filter in the case where there is no scaling required (e.g. H.264 4:2:0 video being output to decklink in its original resolution).

Regards,

Devin


More information about the ffmpeg-devel mailing list