[FFmpeg-devel] is libswscale maintained?

Ramiro Polla ramiro.polla at gmail.com
Thu Sep 12 16:43:29 EEST 2024


Hi,

On Wed, Sep 11, 2024 at 2:21 AM Michael Niedermayer
<michael at niedermayer.cc> wrote:
> On Wed, Sep 11, 2024 at 02:45:59AM +0300, Andrew Randrianasulu wrote:
> > https://trac.ffmpeg.org/ticket/3345
> > https://trac.ffmpeg.org/ticket/7978
>
> I was not aware of these and ATM i dont have time but
> these smell like some constant somewhere is a little off

Coincidentally it's the exact same issue I had asked about on IRC one
day before.

I'm working on a fix which involves calculating the coefficient,
offset, and max value in ff_sws_init_range_convert() based on the bit
depth. The constants could be fixed and hardcoded again, but I prefer
having a clear explanation of where they come from in code.

It requires updating simd code (to take 3 extra parameters: int coeff,
int offset, int amax), and I don't have access to loongson or riscv.

Ramiro


More information about the ffmpeg-devel mailing list