video-controls.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /**
  2. * @file
  3. *
  4. * @brief Public APIs for Video.
  5. */
  6. /*
  7. * Copyright (c) 2019 Linaro Limited.
  8. *
  9. * SPDX-License-Identifier: Apache-2.0
  10. */
  11. #ifndef ZEPHYR_INCLUDE_VIDEO_CONTROLS_H_
  12. #define ZEPHYR_INCLUDE_VIDEO_CONTROLS_H_
  13. /**
  14. * @brief Video controls
  15. * @defgroup video_controls Video Controls
  16. * @ingroup io_interfaces
  17. * @{
  18. */
  19. #include <device.h>
  20. #include <stddef.h>
  21. #include <zephyr.h>
  22. #include <zephyr/types.h>
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Control classes */
  27. #define VIDEO_CTRL_CLASS_GENERIC 0x00000000 /* Generic class controls */
  28. #define VIDEO_CTRL_CLASS_CAMERA 0x00010000 /* Camera class controls */
  29. #define VIDEO_CTRL_CLASS_MPEG 0x00020000 /* MPEG-compression controls */
  30. #define VIDEO_CTRL_CLASS_JPEG 0x00030000 /* JPEG-compression controls */
  31. #define VIDEO_CTRL_CLASS_VENDOR 0xFFFF0000 /* Vendor-specific class controls */
  32. /* Generic class control IDs */
  33. #define VIDEO_CID_HFLIP (VIDEO_CTRL_CLASS_GENERIC + 0) /* Mirror the picture horizontally */
  34. #define VIDEO_CID_VFLIP (VIDEO_CTRL_CLASS_GENERIC + 1) /* Mirror the picture vertically */
  35. /* Camera class control IDs */
  36. #define VIDEO_CID_CAMERA_EXPOSURE (VIDEO_CTRL_CLASS_CAMERA + 0)
  37. #define VIDEO_CID_CAMERA_GAIN (VIDEO_CTRL_CLASS_CAMERA + 1)
  38. #define VIDEO_CID_CAMERA_ZOOM (VIDEO_CTRL_CLASS_CAMERA + 2)
  39. #define VIDEO_CID_CAMERA_BRIGHTNESS (VIDEO_CTRL_CLASS_CAMERA + 3)
  40. #define VIDEO_CID_CAMERA_SATURATION (VIDEO_CTRL_CLASS_CAMERA + 4)
  41. #define VIDEO_CID_CAMERA_WHITE_BAL (VIDEO_CTRL_CLASS_CAMERA + 5)
  42. #define VIDEO_CID_CAMERA_CONTRAST (VIDEO_CTRL_CLASS_CAMERA + 6)
  43. #define VIDEO_CID_CAMERA_COLORBAR (VIDEO_CTRL_CLASS_CAMERA + 7)
  44. #define VIDEO_CID_CAMERA_QUALITY (VIDEO_CTRL_CLASS_CAMERA + 8)
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. /* Controls */
  49. /**
  50. * @}
  51. */
  52. #endif /* ZEPHYR_INCLUDE_VIDEO_H_ */