[FFmpeg-devel] [PATCH 04/35] avcodec/proresenc_anatoliy: move run/lev to codebook LUT to shared proresdata

Clément Bœsch u at pkh.me
Mon Jan 8 19:06:20 EET 2024


On Tue, Dec 12, 2023 at 09:02:23AM +0100, Stefano Sabatini wrote:
> On date Monday 2023-12-11 02:35:05 +0100, Clément Bœsch wrote:
> > This is going to be shared with proresenc_kostya in the upcoming commit.
> > ---
> >  libavcodec/proresdata.c         | 6 ++++++
> >  libavcodec/proresdata.h         | 2 ++
> >  libavcodec/proresenc_anatoliy.c | 9 ++-------
> >  3 files changed, 10 insertions(+), 7 deletions(-)
> > 
> > diff --git a/libavcodec/proresdata.c b/libavcodec/proresdata.c
> > index 4787907c71..12ee43bddd 100644
> > --- a/libavcodec/proresdata.c
> > +++ b/libavcodec/proresdata.c
> > @@ -43,3 +43,9 @@ const uint8_t ff_prores_interlaced_scan[64] = {
> >      30, 23, 31, 38, 45, 52, 60, 53,
> >      46, 39, 47, 54, 61, 62, 55, 63
> >  };
> > +
> > +const uint8_t ff_prores_run_to_cb[16] = { 0x06, 0x06, 0x05, 0x05, 0x04, 0x29,
> > +        0x29, 0x29, 0x29, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x4C };
> > +
> 
> > +const uint8_t ff_prores_lev_to_cb[10] = { 0x04, 0x0A, 0x05, 0x06, 0x04, 0x28,
> > +        0x28, 0x28, 0x28, 0x4C };
> 
> while at it this could employ "lev" => "level" to clarify code and
> maybe enable some pattern matching trick

Renamed locally

-- 
Clément B.


More information about the ffmpeg-devel mailing list