logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

v4l2-common.h (2056B)


  1. /* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) */
  2. /*
  3. * include/linux/v4l2-common.h
  4. *
  5. * Common V4L2 and V4L2 subdev definitions.
  6. *
  7. * Users are advised to #include this file either through videodev2.h
  8. * (V4L2) or through v4l2-subdev.h (V4L2 subdev) rather than to refer
  9. * to this file directly.
  10. *
  11. * Copyright (C) 2012 Nokia Corporation
  12. * Contact: Sakari Ailus <sakari.ailus@iki.fi>
  13. */
  14. #ifndef __V4L2_COMMON__
  15. #define __V4L2_COMMON__
  16. #include <linux/types.h>
  17. /*
  18. *
  19. * Selection interface definitions
  20. *
  21. */
  22. /* Current cropping area */
  23. #define V4L2_SEL_TGT_CROP 0x0000
  24. /* Default cropping area */
  25. #define V4L2_SEL_TGT_CROP_DEFAULT 0x0001
  26. /* Cropping bounds */
  27. #define V4L2_SEL_TGT_CROP_BOUNDS 0x0002
  28. /* Native frame size */
  29. #define V4L2_SEL_TGT_NATIVE_SIZE 0x0003
  30. /* Current composing area */
  31. #define V4L2_SEL_TGT_COMPOSE 0x0100
  32. /* Default composing area */
  33. #define V4L2_SEL_TGT_COMPOSE_DEFAULT 0x0101
  34. /* Composing bounds */
  35. #define V4L2_SEL_TGT_COMPOSE_BOUNDS 0x0102
  36. /* Current composing area plus all padding pixels */
  37. #define V4L2_SEL_TGT_COMPOSE_PADDED 0x0103
  38. /* Selection flags */
  39. #define V4L2_SEL_FLAG_GE (1 << 0)
  40. #define V4L2_SEL_FLAG_LE (1 << 1)
  41. #define V4L2_SEL_FLAG_KEEP_CONFIG (1 << 2)
  42. struct v4l2_edid {
  43. __u32 pad;
  44. __u32 start_block;
  45. __u32 blocks;
  46. __u32 reserved[5];
  47. __u8 *edid;
  48. };
  49. /* Backward compatibility target definitions --- to be removed. */
  50. #define V4L2_SEL_TGT_CROP_ACTIVE V4L2_SEL_TGT_CROP
  51. #define V4L2_SEL_TGT_COMPOSE_ACTIVE V4L2_SEL_TGT_COMPOSE
  52. #define V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL V4L2_SEL_TGT_CROP
  53. #define V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL V4L2_SEL_TGT_COMPOSE
  54. #define V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS V4L2_SEL_TGT_CROP_BOUNDS
  55. #define V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS V4L2_SEL_TGT_COMPOSE_BOUNDS
  56. /* Backward compatibility flag definitions --- to be removed. */
  57. #define V4L2_SUBDEV_SEL_FLAG_SIZE_GE V4L2_SEL_FLAG_GE
  58. #define V4L2_SUBDEV_SEL_FLAG_SIZE_LE V4L2_SEL_FLAG_LE
  59. #define V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG V4L2_SEL_FLAG_KEEP_CONFIG
  60. #endif /* __V4L2_COMMON__ */