Have the palette code be in its own file.

Change-Id: I099a342effedd9f451c94d00a14aead27079e6cc
This commit is contained in:
Vincent Rabaud
2023-07-04 18:09:13 +02:00
parent e2c85878f6
commit eac3bd5c53
12 changed files with 459 additions and 370 deletions

View File

@@ -20,9 +20,7 @@
#endif
#include <assert.h>
#include <limits.h>
#include "src/dsp/dsp.h"
#include "src/webp/types.h"
#ifdef __cplusplus
@@ -198,6 +196,7 @@ WEBP_EXTERN void WebPCopyPixels(const struct WebPPicture* const src,
// MAX_PALETTE_SIZE, also outputs the actual unique colors into 'palette'.
// Note: 'palette' is assumed to be an array already allocated with at least
// MAX_PALETTE_SIZE elements.
// TODO(vrabaud) remove whenever we can break the ABI.
WEBP_EXTERN int WebPGetColorPalette(const struct WebPPicture* const pic,
uint32_t* const palette);