mpeg2hwd_storage.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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 : Stream decoding storage definition
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: mpeg2hwd_storage.h,v $
  23. -- $Date: 2010/03/31 08:54:59 $
  24. -- $Revision: 1.16 $
  25. --
  26. ------------------------------------------------------------------------------*/
  27. /*------------------------------------------------------------------------------
  28. Table of context
  29. 1. xxx...
  30. ------------------------------------------------------------------------------*/
  31. #ifndef MPEG2DECSTRMSTORAGE_H_DEFINED
  32. #define MPEG2DECSTRMSTORAGE_H_DEFINED
  33. #include "basetype.h"
  34. #include "mpeg2hwd_cfg.h"
  35. #include "bqueue.h"
  36. typedef struct
  37. {
  38. DWLLinearMem_t data;
  39. u32 picType;
  40. u32 picId;
  41. u32 tf;
  42. u32 ff[2];
  43. u32 rff;
  44. u32 rfc;
  45. u32 isInter;
  46. u32 nbrErrMbs;
  47. Mpeg2DecRet retVal;
  48. u32 sendToPp;
  49. Mpeg2DecTime timeCode;
  50. } picture_t;
  51. typedef struct
  52. {
  53. u32 status;
  54. u32 strmDecReady;
  55. u32 validPicHeader;
  56. u32 validPicExtHeader;
  57. u32 validSequence;
  58. u32 vpQP;
  59. u32 maxNumBuffers;
  60. u32 numBuffers;
  61. u32 numPpBuffers;
  62. picture_t pPicBuf[16];
  63. u32 outBuf[16];
  64. u32 outIndex;
  65. u32 outCount;
  66. u32 workOut;
  67. u32 work0;
  68. u32 work1;
  69. u32 latestId; /* current pic id, used for debug */
  70. u32 skipB;
  71. u32 prevPicCodingType;
  72. u32 prevPicStructure;
  73. u32 fieldToReturn; /* 0 = First, 1 second */
  74. u32 pictureBroken;
  75. u32 intraFreeze;
  76. u32 newHeadersChangeResolution;
  77. u32 previousB;
  78. u32 previousModeFull;
  79. u32 prevBIdx;
  80. bufferQueue_t bq;
  81. bufferQueue_t bqPp;
  82. } DecStrmStorage;
  83. #endif /* #ifndef MPEG2DECSTRMSTORAGE_H_DEFINED */