summaryrefslogtreecommitdiff
path: root/libavcodec/lzw.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-04-07 15:10:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-04-07 15:10:22 +0000
commitf0790c59f4485f32eace69ab68b53f097a617a8d (patch)
tree23e4e7dad432a487bd3e82367302f5b46f0c882d /libavcodec/lzw.h
parent9a0ddd09e737545711e209591bc95891e3615543 (diff)
downloadffmpeg-f0790c59f4485f32eace69ab68b53f097a617a8d.tar.gz
LZW encoder by Bartlomiej Wolowiec b.wolowiec students mimuw edu pl
Originally committed as revision 8644 to svn://svn.ffmpeg.org/ffmpeg/trunk
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