[FFmpeg-devel] [PATCH v2 1/5] avcodec/webp: move definitions into header

James Zern jzern at google.com
Wed Jul 12 01:19:37 EEST 2023


On Thu, Jul 6, 2023 at 4:27 AM Thilo Borgmann <thilo.borgmann at mail.de> wrote:
>
> ---
>  libavcodec/webp.c | 17 +--------------
>  libavcodec/webp.h | 55 +++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 56 insertions(+), 16 deletions(-)
>  create mode 100644 libavcodec/webp.h
>
> [...]
> +#define MAX_PALETTE_SIZE                256
> +#define MAX_CACHE_BITS                  11
> +#define NUM_CODE_LENGTH_CODES           19
> +#define HUFFMAN_CODES_PER_META_CODE     5
> +#define NUM_LITERAL_CODES               256
> +#define NUM_LENGTH_CODES                24
> +#define NUM_DISTANCE_CODES              40
> +#define NUM_SHORT_DISTANCES             120
> +#define MAX_HUFFMAN_CODE_LENGTH         15
> +

These are specific to lossless decoding and a few don't look used at
all. I think they can stay within webp.c for now.


More information about the ffmpeg-devel mailing list