/H264Dec/inc/basetype.h

http://github.com/mbebenita/Broadway · C Header · 52 lines · 28 code · 9 blank · 15 comment · 1 complexity · 416a01c74e8afdbcc74b4ac8c19cccc3 MD5 · raw file

  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. #ifndef BASETYPE_H_INCLUDED
  17. #define BASETYPE_H_INCLUDED
  18. #ifdef __arm
  19. #define VOLATILE volatile
  20. #else
  21. #define VOLATILE
  22. #endif
  23. typedef unsigned char u8;
  24. typedef signed char i8;
  25. typedef unsigned short u16;
  26. typedef signed short i16;
  27. typedef unsigned int u32;
  28. typedef signed int i32;
  29. #if defined(VC1SWDEC_16BIT) || defined(MP4ENC_ARM11)
  30. typedef unsigned short u16x;
  31. typedef signed short i16x;
  32. #else
  33. typedef unsigned int u16x;
  34. typedef signed int i16x;
  35. #endif
  36. #ifndef NULL
  37. #ifdef __cplusplus
  38. #define NULL 0
  39. #else
  40. #define NULL ((void *)0)
  41. #endif
  42. #endif
  43. #endif /* BASETYPE_H_INCLUDED */