PageRenderTime 27ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/H264Dec/source/h264bsd_neighbour.h

http://github.com/mbebenita/Broadway
C Header | 78 lines | 26 code | 15 blank | 37 comment | 0 complexity | 6500719afac81f57a06aa8a4dde1519e 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_NEIGHBOUR_H
  24. #define H264SWDEC_NEIGHBOUR_H
  25. /*------------------------------------------------------------------------------
  26. 1. Include headers
  27. ------------------------------------------------------------------------------*/
  28. #include "basetype.h"
  29. #include "h264bsd_macroblock_layer.h"
  30. /*------------------------------------------------------------------------------
  31. 2. Module defines
  32. ------------------------------------------------------------------------------*/
  33. typedef enum {
  34. MB_A = 0,
  35. MB_B,
  36. MB_C,
  37. MB_D,
  38. MB_CURR,
  39. MB_NA = 0xFF
  40. } neighbourMb_e;
  41. /*------------------------------------------------------------------------------
  42. 3. Data types
  43. ------------------------------------------------------------------------------*/
  44. typedef struct
  45. {
  46. neighbourMb_e mb;
  47. u8 index;
  48. } neighbour_t;
  49. /*------------------------------------------------------------------------------
  50. 4. Function prototypes
  51. ------------------------------------------------------------------------------*/
  52. void h264bsdInitMbNeighbours(mbStorage_t *pMbStorage, u32 picWidth,
  53. u32 picSizeInMbs);
  54. mbStorage_t* h264bsdGetNeighbourMb(mbStorage_t *pMb, neighbourMb_e neighbour);
  55. u32 h264bsdIsNeighbourAvailable(mbStorage_t *pMb, mbStorage_t *pNeighbour);
  56. const neighbour_t* h264bsdNeighbour4x4BlockA(u32 blockIndex);
  57. const neighbour_t* h264bsdNeighbour4x4BlockB(u32 blockIndex);
  58. const neighbour_t* h264bsdNeighbour4x4BlockC(u32 blockIndex);
  59. const neighbour_t* h264bsdNeighbour4x4BlockD(u32 blockIndex);
  60. #endif /* #ifdef H264SWDEC_NEIGHBOUR_H */