h264hwd_pic_order_cnt.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 : Compute Picture Order Count (POC) for a picture
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: h264hwd_pic_order_cnt.h,v $
  23. -- $Date: 2008/03/13 12:48:06 $
  24. -- $Revision: 1.1 $
  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 H264HWD_PIC_ORDER_CNT_H
  35. #define H264HWD_PIC_ORDER_CNT_H
  36. /*------------------------------------------------------------------------------
  37. 1. Include headers
  38. ------------------------------------------------------------------------------*/
  39. #include "basetype.h"
  40. #include "h264hwd_seq_param_set.h"
  41. #include "h264hwd_slice_header.h"
  42. #include "h264hwd_nal_unit.h"
  43. /*------------------------------------------------------------------------------
  44. 2. Module defines
  45. ------------------------------------------------------------------------------*/
  46. /*------------------------------------------------------------------------------
  47. 3. Data types
  48. ------------------------------------------------------------------------------*/
  49. /* structure to store information computed for previous picture, needed for
  50. * POC computation of a picture. Two first fields for POC type 0, last two
  51. * for types 1 and 2 */
  52. typedef struct
  53. {
  54. u32 prevPicOrderCntLsb;
  55. i32 prevPicOrderCntMsb;
  56. u32 prevFrameNum;
  57. u32 prevFrameNumOffset;
  58. u32 containsMmco5;
  59. i32 picOrderCnt[2];
  60. } pocStorage_t;
  61. /*------------------------------------------------------------------------------
  62. 4. Function prototypes
  63. ------------------------------------------------------------------------------*/
  64. void h264bsdDecodePicOrderCnt(pocStorage_t *poc, const seqParamSet_t *sps,
  65. const sliceHeader_t *sliceHeader, const nalUnit_t *pNalUnit);
  66. #endif /* #ifdef H264HWD_PIC_ORDER_CNT_H */