PageRenderTime 48ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/H264Dec/source/h264bsd_pic_order_cnt.h

http://github.com/mbebenita/Broadway
C Header | 68 lines | 16 code | 12 blank | 40 comment | 0 complexity | 4a26d4204c9ba150ee260ac0e7b293c5 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_ORDER_CNT_H
  24. #define H264SWDEC_PIC_ORDER_CNT_H
  25. /*------------------------------------------------------------------------------
  26. 1. Include headers
  27. ------------------------------------------------------------------------------*/
  28. #include "basetype.h"
  29. #include "h264bsd_seq_param_set.h"
  30. #include "h264bsd_slice_header.h"
  31. #include "h264bsd_nal_unit.h"
  32. /*------------------------------------------------------------------------------
  33. 2. Module defines
  34. ------------------------------------------------------------------------------*/
  35. /*------------------------------------------------------------------------------
  36. 3. Data types
  37. ------------------------------------------------------------------------------*/
  38. /* structure to store information computed for previous picture, needed for
  39. * POC computation of a picture. Two first fields for POC type 0, last two
  40. * for types 1 and 2 */
  41. typedef struct
  42. {
  43. u32 prevPicOrderCntLsb;
  44. i32 prevPicOrderCntMsb;
  45. u32 prevFrameNum;
  46. u32 prevFrameNumOffset;
  47. } pocStorage_t;
  48. /*------------------------------------------------------------------------------
  49. 4. Function prototypes
  50. ------------------------------------------------------------------------------*/
  51. i32 h264bsdDecodePicOrderCnt(pocStorage_t *poc, seqParamSet_t *sps,
  52. sliceHeader_t *sliceHeader, nalUnit_t *pNalUnit);
  53. #endif /* #ifdef H264SWDEC_PIC_ORDER_CNT_H */