NVIDIA EGLStream
- external
wl_eglstream
error { bad_alloc, bad_handle, bad_attribs, bad_address }
参数 | 值 | 描述 |
|---|---|---|
| bad_alloc | 0 | 分配错误 |
| bad_handle | 1 | 句柄错误 |
| bad_attribs | 2 | 属性错误 |
| bad_address | 3 | IP 地址错误 |
attrib { inet_addr, inet_port, y_inverted }
参数 | 值 | 描述 |
|---|---|---|
| inet_addr | 0 | Inet IPv4 地址 |
| inet_port | 1 | IP 端口 |
| y_inverted | 2 | 图像 Y 反转位 |
create_stream(id: new_id<wl_buffer>, width: int, height: int, handle: fd, type: int, attribs: array)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<wl_buffer> | New ID |
| width | int | Stream framebuffer width |
| height | int | Stream framebuffer height |
| handle | fd | Handle for the stream creation |
| type | int | Handle type |
| attribs | array | Stream extra connection attribs List of attributes with extra connection data It contains key-value pairs compatible with intptr_t type. A key must be one of wl_eglstream_display_attrib enumeration values. What a value represents is attribute-specific. |
创建对应于给定句柄的 wl_buffer。属性列表可用于定义额外的 EGLStream 连接数据(如 inet 地址/端口)。 服务器可以使用 wl_buffer 中编码的信息创建其 EGLStream 句柄。
设置给定 EGLStream 消费者的交换间隔。交换间隔在服务器端被静默限制在有效范围内。
caps(caps: int)
参数 | 类型 | 描述 |
|---|---|---|
| caps | int | Capabilities mask |
在绑定 wl_eglstream_display 时发送能力事件。 它允许服务器通告其支持的功能,以便客户端知道哪些是安全可用的。
swapinterval_override(swapinterval: int, stream: object<wl_buffer>)
参数 | 类型 | 描述 |
|---|---|---|
| swapinterval | int | Server swap interval override value |
| stream | object<wl_buffer> | wl_buffer corresponding to an EGLStream |
当客户端通过 swap_interval() 请求交换间隔设置,且存在覆盖使该请求被忽略时,将发出 swapinterval_override 事件。 swapinterval_override 事件将提供覆盖值,以便客户端知晓。
cap { stream_fd, stream_inet, stream_socket }
参数 | 值 | 描述 |
|---|---|---|
| stream_fd | 1 | 使用 FD 的流连接 |
| stream_inet | 2 | 流 inet 连接 |
| stream_socket | 4 | 流 unix 连接 |
此枚举值应作为位掩码使用。
合成器支持
Cage | COSMIC | GameScope | Hyprland | Jay | KWin | Labwc | Louvre | Mir | Muffin | Mutter | niri | phoc | river | Sway | Treeland | Wayfire | Weston | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wl_eglstream_display | x | x | x | x | x | x | x | 1 | x | x | x | x | x | x | x | x | x | x |
Copyright
Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.