jpegdecutils.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 : Jpeg Decoder utils header file
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: jpegdecutils.h,v $
  23. -- $Revision: 1.1 $
  24. -- $Date: 2007/03/30 05:44:50 $
  25. --
  26. ------------------------------------------------------------------------------*/
  27. /*------------------------------------------------------------------------------
  28. Table of contents
  29. 1. Include headers
  30. 2. Module defines
  31. 3. Data types
  32. 4. Function prototypes
  33. ------------------------------------------------------------------------------*/
  34. #ifndef JPEGDECUTILS_H
  35. #define JPEGDECUTILS_H
  36. /*------------------------------------------------------------------------------
  37. 1. Include headers
  38. ------------------------------------------------------------------------------*/
  39. #include "jpegdeccontainer.h"
  40. #include "basetype.h"
  41. /*------------------------------------------------------------------------------
  42. 2. Module defines
  43. ------------------------------------------------------------------------------*/
  44. #define STRM_ERROR 0xFFFFFFFFU
  45. #ifndef OK
  46. #define OK 0
  47. #endif
  48. #ifndef NOK
  49. #define NOK -1
  50. #endif
  51. #ifndef STATIC
  52. #define STATIC static
  53. #endif
  54. /*------------------------------------------------------------------------------
  55. 3. Data types
  56. ------------------------------------------------------------------------------*/
  57. /*------------------------------------------------------------------------------
  58. 4. Function prototypes
  59. ------------------------------------------------------------------------------*/
  60. u32 JpegDecGet2Bytes(StreamStorage * pStream);
  61. u32 JpegDecGetByte(StreamStorage * pStream);
  62. u32 JpegDecShowBits(StreamStorage * pStream);
  63. u32 JpegDecFlushBits(StreamStorage * pStream, u32 bits);
  64. #endif /* #ifdef MODULE_H */