vp6strmbuffer.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. -
  16. - Description : ...
  17. -
  18. --------------------------------------------------------------------------------
  19. -
  20. - Version control information, please leave untouched.
  21. -
  22. - $RCSfile: vp6strmbuffer.h,v $
  23. - $Revision: 1.1 $
  24. - $Date: 2008/04/14 10:13:25 $
  25. -
  26. ------------------------------------------------------------------------------*/
  27. #ifndef __VP6STRMBUFFER_H__
  28. #define __VP6STRMBUFFER_H__
  29. #include "basetype.h"
  30. typedef struct Vp6StrmBuffer_
  31. {
  32. const u8 *buffer;
  33. u32 pos;
  34. u32 amountLeft;
  35. u32 bitsInBuffer;
  36. u32 val;
  37. u32 bitsConsumed;
  38. } Vp6StrmBuffer;
  39. u32 Vp6StrmInit(Vp6StrmBuffer * sb, const u8 * data, u32 amount);
  40. u32 Vp6StrmGetBits(Vp6StrmBuffer * sb, u32 bits);
  41. #endif /* __VP6STRMBUFFER_H__ */