summaryrefslogtreecommitdiff
path: root/encoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'encoder.h')
-rw-r--r--encoder.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/encoder.h b/encoder.h
new file mode 100644
index 0000000..a9a0e5c
--- /dev/null
+++ b/encoder.h
@@ -0,0 +1,12 @@
+#ifndef ENCODER_H
+#define ENCODER_H
+
+#include <boost/cstdint.hpp>
+
+class EncoderBase {
+ public:
+ virtual size_t encode(uint8_t *input, size_t input_size, uint8_t *output, size_t output_size) = 0;
+ virtual size_t flush(uint8_t *output, size_t output_size) = 0;
+};
+
+#endif