Subversion Repositories KoE_projects

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

  1. #ifndef __COMPRESS_H_
  2. #define __COMPRESS_H_
  3.  
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. typedef unsigned char (*read_func_type)(unsigned long addr);
  9.  
  10. void arithmetic_compress(const unsigned char* buf, unsigned long buf_size, unsigned char* cbuf, unsigned long* cbuf_size);
  11. unsigned char arithmetic_decompress_init(read_func_type read_func, unsigned long cbuf_size);
  12. void arithmetic_decompress_chunk(unsigned char* chunk, volatile unsigned int chunk_size, unsigned int* decompressed);
  13. void arithmetic_decompress_done(void);
  14.  
  15. #ifdef __cplusplus
  16. } // extern "C"
  17. #endif
  18.  
  19. #endif // __COMPRESS_H_
  20.