PageRenderTime 33ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/H264Dec/source/h264bsd_image.h

http://github.com/mbebenita/Broadway
C Header | 68 lines | 18 code | 12 blank | 38 comment | 0 complexity | e8db617db53a321a8d29f990dce4c66a 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_IMAGE_H
  24. #define H264SWDEC_IMAGE_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 *data;
  38. u32 width;
  39. u32 height;
  40. /* current MB's components */
  41. u8 *luma;
  42. u8 *cb;
  43. u8 *cr;
  44. } image_t;
  45. /*------------------------------------------------------------------------------
  46. 4. Function prototypes
  47. ------------------------------------------------------------------------------*/
  48. void h264bsdWriteMacroblock(image_t *image, u8 *data);
  49. #ifndef H264DEC_OMXDL
  50. void h264bsdWriteOutputBlocks(image_t *image, u32 mbNum, u8 *data,
  51. i32 residual[][16]);
  52. #endif
  53. #endif /* #ifdef H264SWDEC_IMAGE_H */