Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2023-01-03 Thread Michael Niedermayer
On Tue, Jan 03, 2023 at 12:05:22AM +0100, Clément Bœsch wrote: > On Mon, Jan 02, 2023 at 10:57:33PM +0100, Michael Niedermayer wrote: > [...] > > > So I did a lot of experiments, and the explanation for the desaturated > > > output at low number of colors can be found at the end of this article: >

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2023-01-02 Thread Clément Bœsch
On Mon, Jan 02, 2023 at 10:57:33PM +0100, Michael Niedermayer wrote: [...] > > So I did a lot of experiments, and the explanation for the desaturated > > output at low number of colors can be found at the end of this article: > > http://blog.pkh.me/p/39-improving-color-quantization-heuristics.html

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2023-01-02 Thread Michael Niedermayer
Hi On Sat, Dec 31, 2022 at 01:11:54PM +0100, Clément Bœsch wrote: > On Sun, Nov 06, 2022 at 06:30:22PM +0100, Michael Niedermayer wrote: > > On Sun, Nov 06, 2022 at 06:09:41PM +0100, Michael Niedermayer wrote: > > > On Sat, Nov 05, 2022 at 04:26:02PM +0100, Clément Bœsch wrote: > > > > Hi, > > >

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-12-31 Thread Clément Bœsch
On Sun, Nov 06, 2022 at 06:30:22PM +0100, Michael Niedermayer wrote: > On Sun, Nov 06, 2022 at 06:09:41PM +0100, Michael Niedermayer wrote: > > On Sat, Nov 05, 2022 at 04:26:02PM +0100, Clément Bœsch wrote: > > > Hi, > > > > > > This patchset essentially fixes a few core problems in these filters

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-12-27 Thread Clément Bœsch
On Tue, Nov 08, 2022 at 10:37:59PM +, Soft Works wrote: [...] > For completeness, I'm also including the recent comparison, but it > seems you're already on track in this regard. If you remove the alpha from the input image you'll see that it performs pretty much as good. You can check with

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-11-08 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Clément Bœsch > Sent: Tuesday, November 8, 2022 10:08 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] Rework color quantization in > palette{gen,use} &

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-11-08 Thread Clément Bœsch
On Sun, Nov 06, 2022 at 08:19:24AM -0500, Ronald S. Bultje wrote: > Hi, > > On Sat, Nov 5, 2022 at 2:54 PM Clément Bœsch wrote: > > > On Sat, Nov 05, 2022 at 04:44:39PM +0100, Paul B Mahol wrote: > > [...] > > > > Finally, I do believe a lot of other color filters could at least > > benefit > >

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-11-08 Thread Clément Bœsch
On Sun, Nov 06, 2022 at 06:30:22PM +0100, Michael Niedermayer wrote: > On Sun, Nov 06, 2022 at 06:09:41PM +0100, Michael Niedermayer wrote: > > On Sat, Nov 05, 2022 at 04:26:02PM +0100, Clément Bœsch wrote: > > > Hi, > > > > > > This patchset essentially fixes a few core problems in these filters

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-11-08 Thread Clément Bœsch
On Sun, Nov 06, 2022 at 07:46:38PM +, Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Clément Bœsch > > Sent: Saturday, November 5, 2022 4:26 PM > > To: ffmpeg-devel@ffmpeg.org > > Subject: [FFmpeg-devel

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-11-06 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Clément Bœsch > Sent: Saturday, November 5, 2022 4:26 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] Rework color quantization in palette{gen,use} > > Hi, > > This patchset essenti

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-11-06 Thread Ronald S. Bultje
Hi, On Sat, Nov 5, 2022 at 2:54 PM Clément Bœsch wrote: > On Sat, Nov 05, 2022 at 04:44:39PM +0100, Paul B Mahol wrote: > [...] > > > Finally, I do believe a lot of other color filters could at least > benefit > > > from > > > fixing their gamma handling (I know I'm guilty of this in various

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-11-05 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Clément Bœsch > Sent: Saturday, November 5, 2022 4:26 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] Rework color quantization in palette{gen,use} > > Hi, > > This patchset essenti

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-11-05 Thread Clément Bœsch
On Sat, Nov 05, 2022 at 04:44:39PM +0100, Paul B Mahol wrote: [...] > > Finally, I do believe a lot of other color filters could at least benefit > > from > > fixing their gamma handling (I know I'm guilty of this in various other > > filters). > > gamma handling depends not on pixel format but

Re: [FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-11-05 Thread Paul B Mahol
On 11/5/22, Clément Bœsch wrote: > Hi, > > This patchset essentially fixes a few core problems in these filters and > switches to a perceptual model. > > I've generated a report for each key commit on this (temporary) page: > http://big.pkh.me/pal/ (warning: heavy page, ~500M; I did try to add

[FFmpeg-devel] Rework color quantization in palette{gen,use}

2022-11-05 Thread Clément Bœsch
Hi, This patchset essentially fixes a few core problems in these filters and switches to a perceptual model. I've generated a report for each key commit on this (temporary) page: http://big.pkh.me/pal/ (warning: heavy page, ~500M; I did try to add some lazy loading of the images but I'm not sure