ijksdl_inc_internal_android.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * ijksdl_inc_internal_android.h
  3. *
  4. * Copyright (c) 2013 Bilibili
  5. * Copyright (c) 2013 Zhang Rui <bbcallen@gmail.com>
  6. *
  7. * This file is part of ijkPlayer.
  8. *
  9. * ijkPlayer is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2.1 of the License, or (at your option) any later version.
  13. *
  14. * ijkPlayer is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with ijkPlayer; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. */
  23. #ifndef IJKPLAYER__IJKSDL_INC_INTERNAL_ANDROID_H
  24. #define IJKPLAYER__IJKSDL_INC_INTERNAL_ANDROID_H
  25. #include <stdint.h>
  26. #include <jni.h>
  27. #include "../ijksdl_inc_internal.h"
  28. #include "../ijksdl_misc.h"
  29. #include "../ijksdl_log.h"
  30. enum {
  31. HAL_PIXEL_FORMAT_RGBA_8888 = 1,
  32. HAL_PIXEL_FORMAT_RGBX_8888 = 2,
  33. HAL_PIXEL_FORMAT_RGB_888 = 3,
  34. HAL_PIXEL_FORMAT_RGB_565 = 4,
  35. HAL_PIXEL_FORMAT_BGRA_8888 = 5,
  36. HAL_PIXEL_FORMAT_RGBA_5551 = 6,
  37. HAL_PIXEL_FORMAT_RGBA_4444 = 7,
  38. /* 0x8 - 0xFF range unavailable */
  39. /* 0x100 - 0x1FF HAL implement */
  40. HAL_PIXEL_FORMAT_YV12 = 0x32315659, // YCrCb 4:2:0 Planar
  41. HAL_PIXEL_FORMAT_RAW_SENSOR = 0x20,
  42. HAL_PIXEL_FORMAT_BLOB = 0x21,
  43. HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED = 0x22,
  44. /* Legacy formats (deprecated), used by ImageFormat.java */
  45. HAL_PIXEL_FORMAT_YCbCr_422_SP = 0x10, // NV16
  46. HAL_PIXEL_FORMAT_YCrCb_420_SP = 0x11, // NV21
  47. HAL_PIXEL_FORMAT_YCbCr_422_I = 0x14, // YUY2
  48. };
  49. #endif