mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-19 20:08:28 +01:00
Remove gif2webp_util which is no longer needed.
Change-Id: I5e1237ab250273bc1e6fb4c422fb502f8ca8aeb6
This commit is contained in:
parent
ac79ed19ef
commit
0f54f1ec5f
@ -32,7 +32,7 @@ cwebp_CPPFLAGS += $(JPEG_INCLUDES) $(PNG_INCLUDES) $(TIFF_INCLUDES)
|
||||
cwebp_LDADD = libexampleutil.la ../src/libwebp.la
|
||||
cwebp_LDADD += $(JPEG_LIBS) $(PNG_LIBS) $(TIFF_LIBS)
|
||||
|
||||
gif2webp_SOURCES = gif2webp.c gif2webp_util.c
|
||||
gif2webp_SOURCES = gif2webp.c
|
||||
gif2webp_CPPFLAGS = $(AM_CPPFLAGS) $(USE_EXPERIMENTAL_CODE) $(GIF_INCLUDES)
|
||||
gif2webp_LDADD = libexampleutil.la ../src/mux/libwebpmux.la ../src/libwebp.la
|
||||
gif2webp_LDADD += $(GIF_LIBS)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,90 +0,0 @@
|
||||
// Copyright 2013 Google Inc. All Rights Reserved.
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license
|
||||
// that can be found in the COPYING file in the root of the source
|
||||
// tree. An additional intellectual property rights grant can be found
|
||||
// in the file PATENTS. All contributing project authors may
|
||||
// be found in the AUTHORS file in the root of the source tree.
|
||||
// -----------------------------------------------------------------------------
|
||||
//
|
||||
// Helper structs and methods for gif2webp tool.
|
||||
//
|
||||
// Author: Urvang (urvang@google.com)
|
||||
|
||||
#ifndef WEBP_EXAMPLES_GIF2WEBP_UTIL_H_
|
||||
#define WEBP_EXAMPLES_GIF2WEBP_UTIL_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "webp/mux.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Helper utilities.
|
||||
|
||||
#define WEBP_UTIL_TRANSPARENT_COLOR 0x00ffffff
|
||||
|
||||
struct WebPPicture;
|
||||
|
||||
// Includes all disposal methods, even the ones not supported by WebP bitstream.
|
||||
typedef enum FrameDisposeMethod {
|
||||
FRAME_DISPOSE_NONE,
|
||||
FRAME_DISPOSE_BACKGROUND,
|
||||
FRAME_DISPOSE_RESTORE_PREVIOUS
|
||||
} FrameDisposeMethod;
|
||||
|
||||
typedef struct {
|
||||
int x_offset, y_offset, width, height;
|
||||
} WebPFrameRect;
|
||||
|
||||
// Clear pixels in 'picture' within given 'rect' to transparent color.
|
||||
void WebPUtilClearPic(struct WebPPicture* const picture,
|
||||
const WebPFrameRect* const rect);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Frame cache.
|
||||
|
||||
typedef struct WebPFrameCache WebPFrameCache;
|
||||
|
||||
// Given the minimum distance between key frames 'kmin' and maximum distance
|
||||
// between key frames 'kmax', returns an appropriately allocated cache object.
|
||||
// If 'minimize_size' is true, optimizes for file size. This also implies that
|
||||
// keyframe addition is off.
|
||||
// If 'allow_mixed' is true, the subsequent calls to WebPFrameCacheAddFrame()
|
||||
// will heuristically pick lossy or lossless compression for each frame.
|
||||
// Use WebPFrameCacheDelete() to deallocate the 'cache'.
|
||||
WebPFrameCache* WebPFrameCacheNew(int width, int height, int minimize_size,
|
||||
size_t kmin, size_t kmax, int allow_mixed);
|
||||
|
||||
// Release all the frame data from 'cache' and free 'cache'.
|
||||
void WebPFrameCacheDelete(WebPFrameCache* const cache);
|
||||
|
||||
// Given an image described by 'frame', 'rect', 'dispose_method' and 'duration',
|
||||
// optimize it for WebP, encode it and add it to 'cache'. 'rect' can be NULL.
|
||||
// This takes care of frame disposal too, according to 'dispose_method'.
|
||||
// Returns false in case of error (and sets frame->error_code accordingly).
|
||||
int WebPFrameCacheAddFrame(WebPFrameCache* const cache,
|
||||
const WebPConfig* const config,
|
||||
const WebPFrameRect* const rect,
|
||||
FrameDisposeMethod dispose_method, int duration,
|
||||
WebPPicture* const frame);
|
||||
|
||||
// Flush the *ready* frames from cache and add them to 'mux'. If 'verbose' is
|
||||
// true, prints the information about these frames.
|
||||
WebPMuxError WebPFrameCacheFlush(WebPFrameCache* const cache, int verbose,
|
||||
WebPMux* const mux);
|
||||
|
||||
// Similar to 'WebPFrameCacheFlushFrames()', but flushes *all* the frames.
|
||||
WebPMuxError WebPFrameCacheFlushAll(WebPFrameCache* const cache, int verbose,
|
||||
WebPMux* const mux);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WEBP_EXAMPLES_GIF2WEBP_UTIL_H_
|
@ -178,9 +178,6 @@ EX_FORMAT_DEC_OBJS = \
|
||||
EX_UTIL_OBJS = \
|
||||
examples/example_util.o \
|
||||
|
||||
GIF2WEBP_UTIL_OBJS = \
|
||||
examples/gif2webp_util.o \
|
||||
|
||||
MUX_OBJS = \
|
||||
src/mux/anim_encode.o \
|
||||
src/mux/muxedit.o \
|
||||
@ -258,7 +255,6 @@ OUTPUT = $(OUT_LIBS) $(OUT_EXAMPLES)
|
||||
ifeq ($(MAKECMDGOALS),clean)
|
||||
OUTPUT += $(EXTRA_EXAMPLES)
|
||||
OUTPUT += src/demux/libwebpdemux.a src/mux/libwebpmux.a
|
||||
OUTPUT += examples/libgif2webp_util.a
|
||||
endif
|
||||
|
||||
ex: $(OUT_EXAMPLES)
|
||||
@ -278,7 +274,6 @@ src/utils/bit_writer.o: src/utils/endian_inl.h
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
examples/libexample_util.a: $(EX_UTIL_OBJS)
|
||||
examples/libgif2webp_util.a: $(GIF2WEBP_UTIL_OBJS)
|
||||
src/libwebpdecoder.a: $(LIBWEBPDECODER_OBJS)
|
||||
src/libwebp.a: $(LIBWEBP_OBJS)
|
||||
src/mux/libwebpmux.a: $(LIBWEBPMUX_OBJS)
|
||||
@ -297,7 +292,7 @@ examples/cwebp: examples/libexample_util.a src/libwebp.a
|
||||
examples/cwebp: EXTRA_LIBS += $(CWEBP_LIBS)
|
||||
examples/dwebp: examples/libexample_util.a src/libwebpdecoder.a
|
||||
examples/dwebp: EXTRA_LIBS += $(DWEBP_LIBS)
|
||||
examples/gif2webp: examples/libexample_util.a examples/libgif2webp_util.a
|
||||
examples/gif2webp: examples/libexample_util.a
|
||||
examples/gif2webp: src/mux/libwebpmux.a src/libwebp.a
|
||||
examples/gif2webp: EXTRA_LIBS += $(GIF_LIBS)
|
||||
examples/gif2webp: EXTRA_FLAGS += -DWEBP_HAVE_GIF
|
||||
|
Loading…
Reference in New Issue
Block a user