workaround.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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: workaround.h,v $
  23. -- $Date: 2010/06/11 06:25:28 $
  24. -- $Revision: 1.3 $
  25. --
  26. ------------------------------------------------------------------------------*/
  27. #ifndef WORKAROUND_H_DEFINED
  28. #define WORKAROUND_H_DEFINED
  29. #include "basetype.h"
  30. /* Union containing structures to hold different formats' workarounds. */
  31. typedef union workaround_s
  32. {
  33. struct {
  34. u32 stuffing;
  35. u32 startCode;
  36. } mpeg;
  37. struct {
  38. u32 multibuffer;
  39. } rv;
  40. } workaround_t;
  41. #ifndef HANTRO_TRUE
  42. #define HANTRO_TRUE (1)
  43. #endif /* HANTRO_TRUE */
  44. #ifndef HANTRO_FALSE
  45. #define HANTRO_FALSE (0)
  46. #endif /* HANTRO_FALSE*/
  47. void InitWorkarounds(u32 decMode, workaround_t *pWorkarounds );
  48. void PrepareStuffingWorkaround( u8 *pDecOut, u32 vopWidth, u32 vopHeight );
  49. u32 ProcessStuffingWorkaround( u8 * pDecOut, u8 * pRefPic, u32 vopWidth,
  50. u32 vopHeight );
  51. void PrepareStartCodeWorkaround( u8 *pDecOut, u32 vopWidth, u32 vopHeight,
  52. u32 topField );
  53. u32 ProcessStartCodeWorkaround( u8 *pDecOut, u32 vopWidth, u32 vopHeight,
  54. u32 topField );
  55. #endif /* WORKAROUND_H_DEFINED */