vp8hwd_error.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 : ...
  17. -
  18. --------------------------------------------------------------------------------
  19. -
  20. - Version control information, please leave untouched.
  21. -
  22. - $RCSfile: vp8hwd_error.h,v $
  23. - $Revision: 1.1 $
  24. - $Date: 2011/05/26 13:13:45 $
  25. -
  26. ------------------------------------------------------------------------------*/
  27. #ifndef __VP8_ERROR_H__
  28. #define __VP8_ERROR_H__
  29. #include "basetype.h"
  30. #include "vp8hwd_decoder.h"
  31. typedef struct
  32. {
  33. i32 hor;
  34. i32 ver;
  35. } mv_t;
  36. typedef struct
  37. {
  38. u32 totWeight[3]; /* last, golden, alt */
  39. mv_t totMv[3];
  40. } ecMv_t;
  41. typedef struct vp8ec_t
  42. {
  43. ecMv_t *mvs;
  44. u32 width;
  45. u32 height;
  46. u32 numMvsPerMb;
  47. } vp8ec_t;
  48. u32 vp8hwdInitEc(vp8ec_t *ec, u32 w, u32 h, u32 mvsPerMb);
  49. void vp8hwdReleaseEc(vp8ec_t *ec);
  50. void vp8hwdEc(vp8ec_t *ec, u32 *pRef, u32 *pOut, u32 startMb, u32 all);
  51. #endif /* __VP8_ERROR_H__ */