bqueue.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. -- Abstract : Header file for stream decoding utilities
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: bqueue.h,v $
  23. -- $Date: 2010/02/25 12:18:56 $
  24. -- $Revision: 1.1 $
  25. --
  26. ------------------------------------------------------------------------------*/
  27. #ifndef BQUEUE_H_DEFINED
  28. #define BQUEUE_H_DEFINED
  29. #include "basetype.h"
  30. typedef struct
  31. {
  32. u32 *picI;
  33. u32 ctr;
  34. u32 queueSize;
  35. u32 prevAnchorSlot;
  36. } bufferQueue_t;
  37. #define BQUEUE_UNUSED (u32)(0xffffffff)
  38. u32 BqueueInit( bufferQueue_t *bq, u32 numBuffers );
  39. void BqueueRelease( bufferQueue_t *bq );
  40. u32 BqueueNext( bufferQueue_t *bq, u32 ref0, u32 ref1, u32 ref2, u32 bPic );
  41. void BqueueDiscard( bufferQueue_t *bq, u32 buffer );
  42. #endif /* BQUEUE_H_DEFINED */