[FFmpeg-devel] [PATCH v2] avcodec/ffv1: Store slices*planes with the minimum bits needed after remap

Michael Niedermayer michael at niedermayer.cc
Sun Apr 6 21:40:55 EEST 2025


On Thu, Apr 03, 2025 at 02:36:36AM +0200, Michael Niedermayer wrote:
> This also means that if a plane*slice has only 1 color nothing
> is stored after the remap table
> 
> This improves compression, but more tests are needed
> 
> This also corrects the RCT offset to the exact value after remap
> not a fixed 65536
> 
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavcodec/ffv1.c             | 37 +++++++++++++++++++++++++++++++++++
>  libavcodec/ffv1.h             |  2 ++
>  libavcodec/ffv1dec.c          | 17 +++++++++++++---
>  libavcodec/ffv1dec_template.c | 32 ++++++++++++++++++------------
>  libavcodec/ffv1enc.c          | 15 +++++++++-----
>  libavcodec/ffv1enc_template.c | 12 ++++++++----
>  6 files changed, 91 insertions(+), 24 deletions(-)

will apply

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- 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/20250406/83502e93/attachment.sig>


More information about the ffmpeg-devel mailing list