[FFmpeg-devel] [PATCH] avcodec/ffv1: Implement 2D RLE for remap

Michael Niedermayer michael at niedermayer.cc
Fri Mar 21 23:36:58 EET 2025


On Fri, Mar 21, 2025 at 10:12:50PM +0100, Michael Niedermayer wrote:
> Hi
> 
> On Fri, Mar 21, 2025 at 09:13:49PM +0100, Michael Niedermayer wrote:
> > On Fri, Mar 21, 2025 at 12:07:30AM +0100, Lynne wrote:
> > > On 20/03/2025 23:30, Michael Niedermayer wrote:
> > > > This performs about as good as the non LRU system for 16bit and
> > > > better than then the LRU system for 16 converted to 32. So
> > > > its basically performing best in all cases we have atm making
> > > > the LRU system unneeded.
> > > 
> > > Test on *real* 32-bit content, please. You can generate some by using the
> > > tonemap filter, or any of the others that support it.
> > 
> > iam happy to test tonemap output but
> > tonemap output is not "real content" either
> 
> tested the previous LRU code and this with ACES_OT_VWG run through tonemap
> this still performs better than the previous LRU code.

heres the test results,
the try1 and try256 case try hardcoded mul values of 1 and 256, they
perform worse than the automatically selected ones
noremapstor simply does not store the remap table and thus shows how big that
table is (its quite huge with the tonemap output)
the rest shows that the LRU code performs worse in every tested case
that gz file is just a sanity check to ensure that we arent writing tons
of low entropy data.

-rw-r----- 1 michael michael  694591360 Mar 21 21:57 float-303503-c1-m2-s40-tmf32-nolsb-retrrr-noremapstor.nut
-rw-r----- 1 michael michael  916492722 Mar 21 21:54 float-303503-c1-m2-s40-tmf32-nolsb-retrrr.nut.gz
-rw-r----- 1 michael michael  917135003 Mar 21 21:54 float-303503-c1-m2-s40-tmf32-nolsb-retrrr.nut
-rw-r----- 1 michael michael  921698263 Mar 21 22:03 float-303503-c1-m2-s40-tmf32-nolsb-retrrr-try256.nut
-rw-r----- 1 michael michael  921725671 Mar 21 22:04 float-303503-c1-m2-s40-tmf32-nolsb-retrrr-tryLRU.nut
-rw-r----- 1 michael michael  921729598 Mar 21 22:01 float-303503-c1-m2-s40-tmf32-nolsb-retrrr-try1.nut
-rw-r----- 1 michael michael  928459175 Mar 21 22:23 float-303503-c1-m2-s40-tmf32-nolsb-retrrr-try-linear.nut
-rw-r----- 1 michael michael  932903780 Mar 21 22:22 float-303503-c1-m2-s40-tmf32-nolsb-retrrr-tryLRU-linear.nut
-rw-r----- 1 michael michael 1100100630 Mar 21 22:24 float-303503-c1-m2-s40-tmf32-nolsb-retrrr-try-gamma.nut
-rw-r----- 1 michael michael 1101005617 Mar 21 22:22 float-303503-c1-m2-s40-tmf32-nolsb-retrrr-tryLRU-gamma.nut
-rw-r----- 1 michael michael 1150326564 Mar 21 22:23 float-303503-c1-m2-s40-tmf32-nolsb-retrrr-try-hable.nut
-rw-r----- 1 michael michael 1153310394 Mar 21 22:22 float-303503-c1-m2-s40-tmf32-nolsb-retrrr-tryLRU-hable.nut

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The difference between a dictatorship and a democracy is that every 4 years
the population together is allowed to provide 1 bit of input to the government.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250321/5f8326a4/attachment.sig>


More information about the ffmpeg-devel mailing list