bookinternal.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 codebook pack/unpack/code/decode operations
  14. last mod: $Id: bookinternal.h,v 1.6.4.3 2000/04/21 16:35:38 xiphmont Exp $
  15. ********************************************************************/
  16. #ifndef _V_INT_CODEBOOK_H_
  17. #define _V_INT_CODEBOOK_H_
  18. #include "vorbis/codebook.h"
  19. #include "bitwise.h"
  20. extern int vorbis_staticbook_pack(const static_codebook *c,oggpack_buffer *b);
  21. extern int vorbis_staticbook_unpack(oggpack_buffer *b,static_codebook *c);
  22. extern int vorbis_book_encode(codebook *book, int a, oggpack_buffer *b);
  23. extern int vorbis_book_encodev(codebook *book, double *a, oggpack_buffer *b);
  24. extern int vorbis_book_encodevs(codebook *book, double *a, oggpack_buffer *b,
  25. int step,int stagetype);
  26. extern long vorbis_book_decode(codebook *book, oggpack_buffer *b);
  27. extern long vorbis_book_decodevs(codebook *book, double *a, oggpack_buffer *b,
  28. int step,int stagetype);
  29. #endif