Atlas - single-pixel-buffer-v1.xml

Home / ext / SDL / wayland-protocols Lines: 1 | Size: 3492 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1<?xml version="1.0" encoding="UTF-8"?> 2<protocol name="single_pixel_buffer_v1"> 3 <copyright> 4 Copyright © 2022 Simon Ser 5 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 13 The above copyright notice and this permission notice (including the next 14 paragraph) shall be included in all copies or substantial portions of the 15 Software. 16 17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 23 DEALINGS IN THE SOFTWARE. 24 </copyright> 25 26 <description summary="single pixel buffer factory"> 27 This protocol extension allows clients to create single-pixel buffers. 28 29 Compositors supporting this protocol extension should also support the 30 viewporter protocol extension. Clients may use viewporter to scale a 31 single-pixel buffer to a desired size. 32 33 Warning! The protocol described in this file is currently in the testing 34 phase. Backward compatible changes may be added together with the 35 corresponding interface version bump. Backward incompatible changes can 36 only be done by creating a new major version of the extension. 37 </description> 38 39 <interface name="wp_single_pixel_buffer_manager_v1" version="1"> 40 <description summary="global factory for single-pixel buffers"> 41 The wp_single_pixel_buffer_manager_v1 interface is a factory for 42 single-pixel buffers. 43 </description> 44 45 <request name="destroy" type="destructor"> 46 <description summary="destroy the manager"> 47 Destroy the wp_single_pixel_buffer_manager_v1 object. 48 49 The child objects created via this interface are unaffected. 50 </description> 51 </request> 52 53 <request name="create_u32_rgba_buffer"> 54 <description summary="create a 1×1 buffer from 32-bit RGBA values"> 55 Create a single-pixel buffer from four 32-bit RGBA values. 56 57 Unless specified in another protocol extension, the RGBA values use 58 pre-multiplied alpha. 59 60 The width and height of the buffer are 1. 61 62 The r, g, b and a arguments valid range is from UINT32_MIN (0) 63 to UINT32_MAX (0xffffffff). 64 65 These arguments should be interpreted as a percentage, i.e. 66 - UINT32_MIN = 0% of the given color component 67 - UINT32_MAX = 100% of the given color component 68 </description> 69 <arg name="id" type="new_id" interface="wl_buffer"/> 70 <arg name="r" type="uint" summary="value of the buffer's red channel"/> 71 <arg name="g" type="uint" summary="value of the buffer's green channel"/> 72 <arg name="b" type="uint" summary="value of the buffer's blue channel"/> 73 <arg name="a" type="uint" summary="value of the buffer's alpha channel"/> 74 </request> 75 </interface> 76</protocol> 77
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.