sharedbook.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /********************************************************************
  2. * *
  3. * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. *
  4. * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
  5. * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
  6. * PLEASE READ THESE TERMS DISTRIBUTING. *
  7. * *
  8. * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000 *
  9. * by Monty <monty@xiph.org> and The XIPHOPHORUS Company *
  10. * http://www.xiph.org/ *
  11. * *
  12. ********************************************************************
  13. function: basic shared codebook operations
  14. last mod: $Id: sharedbook.h,v 1.1.2.4 2000/04/21 16:35:40 xiphmont Exp $
  15. ********************************************************************/
  16. #ifndef _V_INT_SHCODEBOOK_H_
  17. #define _V_INT_SHCODEBOOK_H_
  18. #include "vorbis/codebook.h"
  19. extern void vorbis_staticbook_clear(static_codebook *b);
  20. extern int vorbis_book_init_encode(codebook *dest,const static_codebook *source);
  21. extern int vorbis_book_init_decode(codebook *dest,const static_codebook *source);
  22. extern void vorbis_book_clear(codebook *b);
  23. extern double *_book_unquantize(const static_codebook *b);
  24. extern double *_book_logdist(const static_codebook *b,double *vals);
  25. extern double _float32_unpack(long val);
  26. extern long _float32_pack(double val);
  27. extern int _best(codebook *book, double *a, int step);
  28. extern int _ilog(unsigned int v);
  29. extern long _book_maptype1_quantvals(const static_codebook *b);
  30. extern int vorbis_book_besterror(codebook *book,double *a,int step,int addmul);
  31. extern long vorbis_book_codeword(codebook *book,int entry);
  32. extern long vorbis_book_codelen(codebook *book,int entry);
  33. #endif