PageRenderTime 19ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/H264Dec/source/h264bsd_stream.h

http://github.com/mbebenita/Broadway
C Header | 67 lines | 16 code | 14 blank | 37 comment | 0 complexity | c2be043b9818820da94fe0d122e76adb 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_STREAM_H
  24. #define H264SWDEC_STREAM_H
  25. /*------------------------------------------------------------------------------
  26. 1. Include headers
  27. ------------------------------------------------------------------------------*/
  28. #include "basetype.h"
  29. /*------------------------------------------------------------------------------
  30. 2. Module defines
  31. ------------------------------------------------------------------------------*/
  32. /*------------------------------------------------------------------------------
  33. 3. Data types
  34. ------------------------------------------------------------------------------*/
  35. typedef struct
  36. {
  37. u8 *pStrmBuffStart; /* pointer to start of stream buffer */
  38. u8 *pStrmCurrPos; /* current read address in stream buffer */
  39. u32 bitPosInWord; /* bit position in stream buffer byte */
  40. u32 strmBuffSize; /* size of stream buffer (bytes) */
  41. u32 strmBuffReadBits; /* number of bits read from stream buffer */
  42. } strmData_t;
  43. /*------------------------------------------------------------------------------
  44. 4. Function prototypes
  45. ------------------------------------------------------------------------------*/
  46. u32 h264bsdGetBits(strmData_t *pStrmData, u32 numBits);
  47. u32 h264bsdShowBits32(strmData_t *pStrmData);
  48. u32 h264bsdFlushBits(strmData_t *pStrmData, u32 numBits);
  49. u32 h264bsdIsByteAligned(strmData_t *);
  50. #endif /* #ifdef H264SWDEC_STREAM_H */