[FFmpeg-devel] [PATCH v2 00/13] YUVJ removal

Vittorio Giovara vittorio.giovara at gmail.com
Tue Oct 24 03:56:48 EEST 2023


On Sat, Oct 21, 2023 at 4:20 PM Michael Niedermayer <michael at niedermayer.cc>
wrote:

> On Fri, Oct 20, 2023 at 07:13:00PM -0400, Ronald S. Bultje wrote:
> > Hi,
> >
> > On Fri, Oct 20, 2023 at 12:14 PM Vittorio Giovara <
> > vittorio.giovara at gmail.com> wrote:
> >
> > > tbh while it's great that this functionality exists *somewhere* in
> ffmpeg,
> > > this is really something that should belong to the scaler filter
> (whichever
> > > implementation)
> > >
> >
> > I agree. The reason this was done separately was to be able to have it at
> > all. I considered doing it in sws and realized I probably wouldn't finish
> > it. This was a path of less resistance.
>
> sws supports cascaded_context, with that a sws can just spawn multiple
> sws to implement a path.
> so if a sws can do just colorspace1->colorspace2 and one can scale
> colorspace2 you can quite easily make it support
> colorspace1 scaling into colorspace2 for example
>
> so anything should be quite add-able into sws that you have an
> implementation for
>

Nothing is quite easily add-able to sws, or developers would have done so
instead of writing 4 different scaling libraries
-- 
Vittorio


More information about the ffmpeg-devel mailing list