jpegdecinternal.h 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 Internal functions
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: jpegdecinternal.h,v $
  23. -- $Revision: 1.4 $
  24. -- $Date: 2008/09/05 06:25:37 $
  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 JPEGDECINTERNAL_H
  35. #define JPEGDECINTERNAL_H
  36. /*------------------------------------------------------------------------------
  37. 1. Include headers
  38. ------------------------------------------------------------------------------*/
  39. #include <linux/module.h>
  40. #include <linux/platform_device.h>
  41. #include "basetype.h"
  42. #include "jpegdecapi.h"
  43. #include "jpegdeccontainer.h"
  44. #ifdef JPEGDEC_ASIC_TRACE
  45. #include <stdio.h>
  46. #endif
  47. /*------------------------------------------------------------------------------
  48. 2. Module defines
  49. ------------------------------------------------------------------------------*/
  50. #ifdef JPEGDEC_ASIC_TRACE
  51. #define JPEGDEC_TRACE_INTERNAL(args) printf args
  52. #else
  53. #define JPEGDEC_TRACE_INTERNAL(args) // printk args
  54. #endif
  55. /*------------------------------------------------------------------------------
  56. 3. Data types
  57. ------------------------------------------------------------------------------*/
  58. /*------------------------------------------------------------------------------
  59. 4. Function prototypes
  60. ------------------------------------------------------------------------------*/
  61. void JpegDecClearStructs(JpegDecContainer * pJpegDecCont);
  62. JpegDecRet JpegDecInitHW(JpegDecContainer * pJpegDecCont);
  63. void JpegDecInitHWContinue(JpegDecContainer * pJpegDecCont);
  64. void JpegDecInitHWInputBuffLoad(JpegDecContainer * pJpegDecCont);
  65. void JpegDecInitHWProgressiveContinue(JpegDecContainer * pJpegDecCont);
  66. void JpegDecInitHWNonInterleaved(JpegDecContainer * pJpegDecCont);
  67. JpegDecRet JpegDecAllocateResidual(JpegDecContainer * pJpegDecCont);
  68. void JpegDecSliceSizeCalculation(JpegDecContainer * pJpegDecCont);
  69. JpegDecRet JpegDecNextScanHdrs(JpegDecContainer * pJpegDecCont);
  70. void JpegRefreshRegs(JpegDecContainer * pJpegDecCont);
  71. void JpegFlushRegs(JpegDecContainer * pJpegDecCont);
  72. void JpegDecInitHWEmptyScan(JpegDecContainer * pJpegDecCont, u32 componentId);
  73. #endif /* #endif JPEGDECDATA_H */