Skip to content

Commit a5caef1

Browse files
mahkohppaalanen
authored andcommitted
color-management: add wp_image_description_reference_v1
Note that wp_image_description_v1 is not a frozen interface. Therefore it must always be a descendant of wp_color_manager_v1. In order to allow other protocols, such as ext-image-capture-source-v1, to define the equivalent of wp_color_management_output_v1.get_image_description, we must therefore create an indirection between the new protocol and wp_image_description_v1 that is resolved through wp_color_manager_v1 itself. This is a prerequisite for adding color management support to the ext-image-copy-capture-v1 protocol. Signed-off-by: Julian Orth <ju.orth@gmail.com>
1 parent 70442af commit a5caef1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

staging/color-management/color-management-v1.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,20 @@
581581
transfer functions and named primaries have been sent.
582582
</description>
583583
</event>
584+
585+
<request name="get_image_description" since="2">
586+
<description summary="create an image description from a reference">
587+
This request retrieves the image description backing a reference.
588+
589+
The get_information request can be used if and only if the request that
590+
creates the reference allows it.
591+
</description>
592+
593+
<arg name="image_description"
594+
type="new_id" interface="wp_image_description_v1"/>
595+
<arg name="reference"
596+
type="object" interface="wp_image_description_reference_v1"/>
597+
</request>
584598
</interface>
585599

586600
<interface name="wp_color_management_output_v1" version="2">
@@ -1689,4 +1703,22 @@
16891703
summary="Maximum frame-average light level (cd/m²)"/>
16901704
</event>
16911705
</interface>
1706+
1707+
<interface name="wp_image_description_reference_v1" version="1">
1708+
<description summary="Reference to an image description">
1709+
This object is a reference to an image description. This interface is
1710+
frozen at version 1 to allow other protocols to create
1711+
wp_image_description_v1 objects.
1712+
1713+
The wp_color_manager_v1.get_image_description request can be used to
1714+
retrieve the underlying image description.
1715+
</description>
1716+
1717+
<request name="destroy" type="destructor">
1718+
<description summary="destroy the reference">
1719+
Destroy this object. This has no effect on the referenced image
1720+
description.
1721+
</description>
1722+
</request>
1723+
</interface>
16921724
</protocol>

0 commit comments

Comments
 (0)