v4l2-selection-targets.rst 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _v4l2-selection-targets:
  3. *****************
  4. Selection targets
  5. *****************
  6. The precise meaning of the selection targets may be dependent on which
  7. of the two interfaces they are used.
  8. .. _v4l2-selection-targets-table:
  9. .. tabularcolumns:: |p{5.8cm}|p{1.4cm}|p{6.5cm}|p{1.2cm}|p{1.6cm}|
  10. .. flat-table:: Selection target definitions
  11. :header-rows: 1
  12. :stub-columns: 0
  13. * - Target name
  14. - id
  15. - Definition
  16. - Valid for V4L2
  17. - Valid for V4L2 subdev
  18. * - ``V4L2_SEL_TGT_CROP``
  19. - 0x0000
  20. - Crop rectangle. Defines the cropped area.
  21. - Yes
  22. - Yes
  23. * - ``V4L2_SEL_TGT_CROP_DEFAULT``
  24. - 0x0001
  25. - Suggested cropping rectangle that covers the "whole picture".
  26. - Yes
  27. - No
  28. * - ``V4L2_SEL_TGT_CROP_BOUNDS``
  29. - 0x0002
  30. - Bounds of the crop rectangle. All valid crop rectangles fit inside
  31. the crop bounds rectangle.
  32. - Yes
  33. - Yes
  34. * - ``V4L2_SEL_TGT_NATIVE_SIZE``
  35. - 0x0003
  36. - The native size of the device, e.g. a sensor's pixel array.
  37. ``left`` and ``top`` fields are zero for this target. Setting the
  38. native size will generally only make sense for memory to memory
  39. devices where the software can create a canvas of a given size in
  40. which for example a video frame can be composed. In that case
  41. V4L2_SEL_TGT_NATIVE_SIZE can be used to configure the size of
  42. that canvas.
  43. - Yes
  44. - Yes
  45. * - ``V4L2_SEL_TGT_COMPOSE``
  46. - 0x0100
  47. - Compose rectangle. Used to configure scaling and composition.
  48. - Yes
  49. - Yes
  50. * - ``V4L2_SEL_TGT_COMPOSE_DEFAULT``
  51. - 0x0101
  52. - Suggested composition rectangle that covers the "whole picture".
  53. - Yes
  54. - No
  55. * - ``V4L2_SEL_TGT_COMPOSE_BOUNDS``
  56. - 0x0102
  57. - Bounds of the compose rectangle. All valid compose rectangles fit
  58. inside the compose bounds rectangle.
  59. - Yes
  60. - Yes
  61. * - ``V4L2_SEL_TGT_COMPOSE_PADDED``
  62. - 0x0103
  63. - The active area and all padding pixels that are inserted or
  64. modified by hardware.
  65. - Yes
  66. - No