H264PictureParameterSet.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 :
  17. --
  18. ------------------------------------------------------------------------------*/
  19. #ifndef __H264_PICTURE_PARAMETER_SET_H__
  20. #define __H264_PICTURE_PARAMETER_SET_H__
  21. /*------------------------------------------------------------------------------
  22. 1. Include headers
  23. ------------------------------------------------------------------------------*/
  24. #include "basetype.h"
  25. #include "enccommon.h"
  26. #include "H264PutBits.h"
  27. /*------------------------------------------------------------------------------
  28. 2. External compiler flags
  29. --------------------------------------------------------------------------------
  30. --------------------------------------------------------------------------------
  31. 3. Module defines
  32. ------------------------------------------------------------------------------*/
  33. typedef struct
  34. {
  35. true_e byteStream;
  36. i32 picParameterSetId;
  37. i32 seqParameterSetId;
  38. true_e entropyCodingMode;
  39. true_e picOrderPresent;
  40. i32 numSliceGroupsMinus1;
  41. i32 numRefIdxL0ActiveMinus1;
  42. i32 numRefIdxL1ActiveMinus1;
  43. true_e weightedPred;
  44. i32 weightedBipredIdc;
  45. i32 picInitQpMinus26;
  46. i32 picInitQsMinus26;
  47. i32 chromaQpIndexOffset;
  48. true_e deblockingFilterControlPresent;
  49. true_e constIntraPred;
  50. true_e redundantPicCntPresent;
  51. true_e transform8x8Mode;
  52. u32 enableCabac; /* 0=cavlc, 1=cabac, 2=cavlc(intra)+cabac(inter) */
  53. } pps_s;
  54. /*------------------------------------------------------------------------------
  55. 4. Function prototypes
  56. ------------------------------------------------------------------------------*/
  57. void H264PicParameterSetInit(pps_s * pps);
  58. void H264PicParameterSet(stream_s * stream, pps_s * pps);
  59. #endif