1
0

parset.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*!
  2. **************************************************************************************
  3. * \file
  4. * parset.h
  5. * \brief
  6. * Picture and Sequence Parameter Sets, decoder operations
  7. *
  8. * \date 25 November 2002
  9. * \author
  10. * Main contributors (see contributors.h for copyright, address and affiliation details)
  11. * - Stephan Wenger <[email protected]>
  12. ***************************************************************************************
  13. */
  14. #ifndef _PARSET_H_
  15. #define _PARSET_H_
  16. #include "parsetcommon.h"
  17. #include "nalucommon.h"
  18. static const byte ZZ_SCAN[16] =
  19. { 0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15
  20. };
  21. static const byte ZZ_SCAN8[64] =
  22. { 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5,
  23. 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28,
  24. 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51,
  25. 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63
  26. };
  27. extern void Scaling_List(int *scalingList, int sizeOfScalingList, Boolean *UseDefaultScalingMatrix, Bitstream *s);
  28. extern void InitVUI(seq_parameter_set_rbsp_t *sps);
  29. extern int ReadVUI(DataPartition *p, seq_parameter_set_rbsp_t *sps);
  30. extern int ReadHRDParameters(DataPartition *p, hrd_parameters_t *hrd);
  31. extern void PPSConsistencyCheck (pic_parameter_set_rbsp_t *pps);
  32. extern void SPSConsistencyCheck (seq_parameter_set_rbsp_t *sps);
  33. extern void MakePPSavailable (VideoParameters *p_Vid, int id, pic_parameter_set_rbsp_t *pps);
  34. extern void MakeSPSavailable (VideoParameters *p_Vid, int id, seq_parameter_set_rbsp_t *sps);
  35. extern void ProcessSPS (VideoParameters *p_Vid, NALU_t *nalu);
  36. extern void ProcessPPS (VideoParameters *p_Vid, NALU_t *nalu);
  37. extern void UseParameterSet (Slice *currSlice, int PicParsetId);
  38. extern void CleanUpPPS(VideoParameters *p_Vid);
  39. extern void activate_sps (VideoParameters *p_Vid, seq_parameter_set_rbsp_t *sps);
  40. extern void activate_pps (VideoParameters *p_Vid, pic_parameter_set_rbsp_t *pps);
  41. #endif