ext-image-capture-source-v1.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <protocol name="ext_image_capture_source_v1">
  3. <copyright>
  4. Copyright © 2022 Andri Yngvason
  5. Copyright © 2024 Simon Ser
  6. Permission is hereby granted, free of charge, to any person obtaining a
  7. copy of this software and associated documentation files (the "Software"),
  8. to deal in the Software without restriction, including without limitation
  9. the rights to use, copy, modify, merge, publish, distribute, sublicense,
  10. and/or sell copies of the Software, and to permit persons to whom the
  11. Software is furnished to do so, subject to the following conditions:
  12. The above copyright notice and this permission notice (including the next
  13. paragraph) shall be included in all copies or substantial portions of the
  14. Software.
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  18. THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  20. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  21. DEALINGS IN THE SOFTWARE.
  22. </copyright>
  23. <description summary="opaque image capture source objects">
  24. This protocol serves as an intermediary between capturing protocols and
  25. potential image capture sources such as outputs and toplevels.
  26. This protocol may be extended to support more image capture sources in the
  27. future, thereby adding those image capture sources to other protocols that
  28. use the image capture source object without having to modify those
  29. protocols.
  30. Warning! The protocol described in this file is currently in the testing
  31. phase. Backward compatible changes may be added together with the
  32. corresponding interface version bump. Backward incompatible changes can
  33. only be done by creating a new major version of the extension.
  34. </description>
  35. <interface name="ext_image_capture_source_v1" version="1" frozen="true">
  36. <description summary="opaque image capture source object">
  37. The image capture source object is an opaque descriptor for a capturable
  38. resource. This resource may be any sort of entity from which an image
  39. may be derived.
  40. Note, because ext_image_capture_source_v1 objects are created from multiple
  41. independent factory interfaces, the ext_image_capture_source_v1 interface is
  42. frozen at version 1.
  43. </description>
  44. <request name="destroy" type="destructor">
  45. <description summary="delete this object">
  46. Destroys the image capture source. This request may be sent at any time
  47. by the client.
  48. </description>
  49. </request>
  50. </interface>
  51. <interface name="ext_output_image_capture_source_manager_v1" version="1">
  52. <description summary="image capture source manager for outputs">
  53. A manager for creating image capture source objects for wl_output objects.
  54. </description>
  55. <request name="create_source">
  56. <description summary="create source object for output">
  57. Creates a source object for an output. Images captured from this source
  58. will show the same content as the output. Some elements may be omitted,
  59. such as cursors and overlays that have been marked as transparent to
  60. capturing.
  61. </description>
  62. <arg name="source" type="new_id" interface="ext_image_capture_source_v1"/>
  63. <arg name="output" type="object" interface="wl_output"/>
  64. </request>
  65. <request name="destroy" type="destructor">
  66. <description summary="delete this object">
  67. Destroys the manager. This request may be sent at any time by the client
  68. and objects created by the manager will remain valid after its
  69. destruction.
  70. </description>
  71. </request>
  72. </interface>
  73. <interface name="ext_foreign_toplevel_image_capture_source_manager_v1" version="1">
  74. <description summary="image capture source manager for foreign toplevels">
  75. A manager for creating image capture source objects for
  76. ext_foreign_toplevel_handle_v1 objects.
  77. </description>
  78. <request name="create_source">
  79. <description summary="create source object for foreign toplevel">
  80. Creates a source object for a foreign toplevel handle. Images captured
  81. from this source will show the same content as the toplevel.
  82. </description>
  83. <arg name="source" type="new_id" interface="ext_image_capture_source_v1"/>
  84. <arg name="toplevel_handle" type="object" interface="ext_foreign_toplevel_handle_v1"/>
  85. </request>
  86. <request name="destroy" type="destructor">
  87. <description summary="delete this object">
  88. Destroys the manager. This request may be sent at any time by the client
  89. and objects created by the manager will remain valid after its
  90. destruction.
  91. </description>
  92. </request>
  93. </interface>
  94. </protocol>