Hi,

On Wed, Sep 11, 2024 at 2:21 AM Michael Niedermayer
<mich...@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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to