[FFmpeg-devel] [PATCH 7/7] prores: use VLC LUTs

Christophe Gisquet christophe.gisquet at gmail.com
Fri Sep 8 12:58:51 EEST 2023


Le ven. 8 sept. 2023 à 11:19, Andreas Rheinhardt
<andreas.rheinhardt at outlook.com> a écrit :
> > -    return 0;
> > +    return 0;
>
> You are adding trailing whitespace.

Sorry, will fix. I had to do some of this work on a misconfigured machine.

> > +#include "libavutil/timer.h"
>
> You really need to look over your patches once more before you send
> them. Both of these changes are obviously not ok to commit.

I know the drill. Again, trying my best to help moving a situation
that had been rotting for 6 years.

> This still incurs an unnecessary indirection. The LUT should not point
> to the VLC's, but rather to the VLC tables (as this is the only thing
> needed from them lateron given that the number of bits is a compile-time
> constant. The LUT should be initialized when the VLCs are initialized.

You're right, and by the same logic from my comment, that should save
things further.

> Seems like these VLCs should be offset by 1 to avoid the "1+".

That's what I did in a previous commit, but that was before I could
share the tables. I didn't consider creating 5 more tables for this
beneficial.

-- 
Christophe


More information about the ffmpeg-devel mailing list