wok diff giflib/stuff/restore-GifQuantizeBuffer.u @ rev 25037
Up glza (0.11.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 21 21:38:29 2022 +0000 (2022-05-21) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/giflib/stuff/restore-GifQuantizeBuffer.u Sat May 21 21:38:29 2022 +0000 1.3 @@ -0,0 +1,30 @@ 1.4 +--- Makefile 2019-03-28 14:57:23.000000000 -0400 1.5 ++++ Makefile 2019-03-31 23:38:20.700603561 -0400 1.6 +@@ -67,8 +67,8 @@ 1.7 + 1.8 + $(UTILS):: libgif.a libutil.a 1.9 + 1.10 +-libgif.so: $(OBJECTS) $(HEADERS) 1.11 +- $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS) 1.12 ++libgif.so: $(OBJECTS) $(HEADERS) $(UOBJECTS) 1.13 ++ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS) $(UOBJECTS) 1.14 + 1.15 + libgif.a: $(OBJECTS) $(HEADERS) 1.16 + $(AR) rcs libgif.a $(OBJECTS) 1.17 +--- gif_lib.h 1.18 ++++ gif_lib.h 1.19 +@@ -295,6 +295,14 @@ extern void GifDrawBoxedText8x8(SavedIma 1.20 + const char *legend, 1.21 + const int border, const int bg, const int fg); 1.22 + 1.23 ++/****************************************************************************** 1.24 ++ Color table quantization 1.25 ++******************************************************************************/ 1.26 ++int GifQuantizeBuffer(unsigned int Width, unsigned int Height, 1.27 ++ int *ColorMapSize, GifByteType * RedInput, 1.28 ++ GifByteType * GreenInput, GifByteType * BlueInput, 1.29 ++ GifByteType * OutputBuffer, 1.30 ++ GifColorType * OutputColorMap); 1.31 + #ifdef __cplusplus 1.32 + } 1.33 + #endif /* __cplusplus */