EncJpegInstance.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 :
  17. --
  18. ------------------------------------------------------------------------------*/
  19. /*------------------------------------------------------------------------------
  20. Table of contents
  21. 1. Include headers
  22. 2. External compiler flags
  23. 3. Module defines
  24. 4. Function prototypes
  25. ------------------------------------------------------------------------------*/
  26. #ifndef __ENC_JPEG_INSTANCE_H__
  27. #define __ENC_JPEG_INSTANCE_H__
  28. /*------------------------------------------------------------------------------
  29. 1. Include headers
  30. ------------------------------------------------------------------------------*/
  31. #include "enccommon.h"
  32. #include "encpreprocess.h"
  33. #include "encasiccontroller.h"
  34. #include "EncJpeg.h"
  35. /*------------------------------------------------------------------------------
  36. 2. External compiler flags
  37. --------------------------------------------------------------------------------
  38. --------------------------------------------------------------------------------
  39. 3. Module defines
  40. ------------------------------------------------------------------------------*/
  41. enum JpegEncStatus
  42. {
  43. ENCSTAT_INIT = 0xA1,
  44. ENCSTAT_ENCODE,
  45. ENCSTAT_ERROR
  46. };
  47. typedef struct
  48. {
  49. u32 encStatus;
  50. stream_s stream;
  51. preProcess_s preProcess;
  52. jpegData_s jpeg;
  53. asicData_s asic;
  54. const void *inst; /* used as checksum */
  55. } jpegInstance_s;
  56. #endif