h264hwd_decoder.h 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 : Top level control of the decoder
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: h264hwd_decoder.h,v $
  23. -- $Date: 2009/11/26 13:32:15 $
  24. -- $Revision: 1.4 $
  25. --
  26. ------------------------------------------------------------------------------*/
  27. #ifndef H264HWD_DECODER_H
  28. #define H264HWD_DECODER_H
  29. /*------------------------------------------------------------------------------
  30. 1. Include headers
  31. ------------------------------------------------------------------------------*/
  32. #include "basetype.h"
  33. #include "h264hwd_storage.h"
  34. #include "h264hwd_container.h"
  35. #include "h264hwd_dpb.h"
  36. /*------------------------------------------------------------------------------
  37. 2. Module defines
  38. ------------------------------------------------------------------------------*/
  39. /* enumerated return values of the functions */
  40. enum
  41. {
  42. H264BSD_RDY,
  43. H264BSD_PIC_RDY,
  44. H264BSD_HDRS_RDY,
  45. H264BSD_ERROR,
  46. H264BSD_PARAM_SET_ERROR,
  47. H264BSD_NEW_ACCESS_UNIT,
  48. H264BSD_FMO,
  49. H264BSD_UNPAIRED_FIELD
  50. };
  51. /*------------------------------------------------------------------------------
  52. 3. Data types
  53. ------------------------------------------------------------------------------*/
  54. /*------------------------------------------------------------------------------
  55. 4. Function prototypes
  56. ------------------------------------------------------------------------------*/
  57. void h264bsdInit(storage_t * pStorage, u32 noOutputReordering,
  58. u32 useSmoothingBuffer);
  59. u32 h264bsdDecode(decContainer_t * pDecCont, const u8 * byteStrm, u32 len,
  60. u32 picId, u32 * readBytes);
  61. void h264bsdShutdown(storage_t * pStorage);
  62. const dpbOutPicture_t *h264bsdNextOutputPicture(storage_t * pStorage);
  63. u32 h264bsdPicWidth(storage_t * pStorage);
  64. u32 h264bsdPicHeight(storage_t * pStorage);
  65. u32 h264bsdVideoRange(storage_t * pStorage);
  66. u32 h264bsdMatrixCoefficients(storage_t * pStorage);
  67. u32 h264bsdIsMonoChrome(storage_t * pStorage);
  68. void h264bsdCroppingParams(storage_t * pStorage, u32 * croppingFlag,
  69. u32 * left, u32 * width, u32 * top, u32 * height);
  70. u32 h264bsdCheckValidParamSets(storage_t * pStorage);
  71. void h264bsdFlushBuffer(storage_t * pStorage);
  72. u32 h264bsdAspectRatioIdc(const storage_t * pStorage);
  73. void h264bsdSarSize(const storage_t * pStorage, u32 * sar_width,
  74. u32 * sar_height);
  75. #endif /* #ifdef H264HWD_DECODER_H */