PageRenderTime 109ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/H264Dec/source/h264bsd_pic_param_set.h

http://github.com/mbebenita/Broadway
C Header | 77 lines | 28 code | 11 blank | 38 comment | 0 complexity | b59a947659b8d1ed5f16acf403658a79 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. /*
  2. * Copyright (C) 2009 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /*------------------------------------------------------------------------------
  17. Table of contents
  18. 1. Include headers
  19. 2. Module defines
  20. 3. Data types
  21. 4. Function prototypes
  22. ------------------------------------------------------------------------------*/
  23. #ifndef H264SWDEC_PIC_PARAM_SET_H
  24. #define H264SWDEC_PIC_PARAM_SET_H
  25. /*------------------------------------------------------------------------------
  26. 1. Include headers
  27. ------------------------------------------------------------------------------*/
  28. #include "basetype.h"
  29. #include "h264bsd_stream.h"
  30. /*------------------------------------------------------------------------------
  31. 2. Module defines
  32. ------------------------------------------------------------------------------*/
  33. /*------------------------------------------------------------------------------
  34. 3. Data types
  35. ------------------------------------------------------------------------------*/
  36. /* data structure to store PPS information decoded from the stream */
  37. typedef struct
  38. {
  39. u32 picParameterSetId;
  40. u32 seqParameterSetId;
  41. u32 picOrderPresentFlag;
  42. u32 numSliceGroups;
  43. u32 sliceGroupMapType;
  44. u32 *runLength;
  45. u32 *topLeft;
  46. u32 *bottomRight;
  47. u32 sliceGroupChangeDirectionFlag;
  48. u32 sliceGroupChangeRate;
  49. u32 picSizeInMapUnits;
  50. u32 *sliceGroupId;
  51. u32 numRefIdxL0Active;
  52. u32 picInitQp;
  53. i32 chromaQpIndexOffset;
  54. u32 deblockingFilterControlPresentFlag;
  55. u32 constrainedIntraPredFlag;
  56. u32 redundantPicCntPresentFlag;
  57. } picParamSet_t;
  58. /*------------------------------------------------------------------------------
  59. 4. Function prototypes
  60. ------------------------------------------------------------------------------*/
  61. u32 h264bsdDecodePicParamSet(strmData_t *pStrmData,
  62. picParamSet_t *pPicParamSet);
  63. #endif /* #ifdef H264SWDEC_PIC_PARAM_SET_H */