diff options
author | Clément Bœsch <u@pkh.me> | 2022-12-27 17:38:10 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2023-01-03 17:18:55 +0100 |
commit | 3cafbdc083914d3a921fb241625ca8b6ccae1297 (patch) | |
tree | eb371d2713df2a1f2d099bb4ff5b0e5aedf83e90 /libavfilter/palette.h | |
parent | 051926868c9d901d719c6a41ae7653f4190aae77 (diff) | |
download | ffmpeg-3cafbdc083914d3a921fb241625ca8b6ccae1297.tar.gz |
avfilter/palette: add lowbias32 hashing
Diffstat (limited to 'libavfilter/palette.h')
-rw-r--r-- | libavfilter/palette.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/palette.h b/libavfilter/palette.h index 6839bf6fc6..d3acc854ba 100644 --- a/libavfilter/palette.h +++ b/libavfilter/palette.h @@ -55,4 +55,9 @@ struct Lab ff_srgb_u8_to_oklab_int(uint32_t srgb); */ uint32_t ff_oklab_int_to_srgb_u8(struct Lab c); +/* + * lowbias32 hashing from https://nullprogram.com/blog/2018/07/31/ + */ +uint32_t ff_lowbias32(uint32_t x); + #endif /* AVFILTER_PALETTE_H */ |