summaryrefslogtreecommitdiff
path: root/libavcodec/lzw.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/lzw.h')
-rw-r--r--libavcodec/lzw.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/lzw.h b/libavcodec/lzw.h
index 60f115caf7..9c45c23872 100644
--- a/libavcodec/lzw.h
+++ b/libavcodec/lzw.h
@@ -30,6 +30,8 @@
#ifndef LZW_H
#define LZW_H
+#include "bitstream.h"
+
enum FF_LZW_MODES{
FF_LZW_GIF,
FF_LZW_TIFF
@@ -46,4 +48,12 @@ int ff_lzw_decode(LZWState *s, uint8_t *buf, int len);
uint8_t* ff_lzw_cur_ptr(LZWState *lzw);
void ff_lzw_decode_tail(LZWState *lzw);
+/** LZW encode state */
+struct LZWEncodeState;
+extern const int ff_lzw_encode_state_size;
+
+void ff_lzw_encode_init(struct LZWEncodeState * s, uint8_t * outbuf, int outsize, int maxbits);
+int ff_lzw_encode(struct LZWEncodeState * s, const uint8_t * inbuf, int insize);
+int ff_lzw_encode_flush(struct LZWEncodeState * s);
+
#endif