|
Sunshine master
Self-hosted game stream host for Moonlight.
|
DRM card, render node, and plane metadata used for KMS capture. More...
Public Types | |
| using | connector_interal_t = util::safe_ptr<drmModeConnector, drmModeFreeConnector> |
| Internal connector metadata tuple used while selecting a monitor. | |
Public Member Functions | |
| plane_it_t | begin () const |
| Return an iterator to the first byte in the buffer view. | |
| connector_interal_t | connector (std::uint32_t id) |
| Return the DRM connector object for the display. | |
| std::vector< std::pair< prop_t, std::uint64_t > > | connector_props (std::uint32_t id) |
| Return DRM connector properties. | |
| std::uint32_t | count () |
| Return the number of items in the wrapped DRM collection. | |
| crtc_t | crtc (std::uint32_t id) |
| Return the DRM CRTC object for the monitor. | |
| std::vector< std::pair< prop_t, std::uint64_t > > | crtc_props (std::uint32_t id) |
| Return DRM CRTC properties. | |
| encoder_t | encoder (std::uint32_t id) |
| Return the DRM encoder object for the connector. | |
| plane_it_t | end () const |
| Return an iterator one past the final byte in the buffer view. | |
| fb_t | fb (plane_t::pointer plane) |
| Return framebuffer metadata for the current CRTC. | |
| int | get_crtc_index_by_id (std::uint32_t crtc_id) |
| Get crtc index by ID. | |
| std::uint32_t | get_panel_orientation (std::uint32_t plane_id) |
| Get panel orientation. | |
| file_t | handleFD (std::uint32_t handle) |
| Return the DRM file descriptor owned by the object. | |
| int | init (const char *path) |
| Open a DRM connector and cache its monitor metadata. | |
| bool | is_cursor (std::uint32_t plane_id) |
| Check whether cursor. | |
| bool | is_nvidia () |
| Check whether nvidia. | |
| std::vector< connector_t > | monitors (conn_type_count_t &conn_type_count) |
| Refresh the monitor list reported by the display server. | |
| plane_t | operator[] (std::uint32_t index) |
| Fetch DRM plane metadata by plane-list index. | |
| std::vector< std::pair< prop_t, std::uint64_t > > | plane_props (std::uint32_t id) |
| Return DRM plane properties. | |
| std::optional< std::uint64_t > | prop_value_by_name (const std::vector< std::pair< prop_t, std::uint64_t > > &props, std::string_view name) |
| Look up a DRM property value by property name. | |
| std::vector< std::pair< prop_t, std::uint64_t > > | props (std::uint32_t id, std::uint32_t type) |
| Return DRM object properties for the resource. | |
| res_t | res () |
| Return the DRM resource list for the card. | |
Public Attributes | |
| file_t | fd |
| DRM card file descriptor. | |
| plane_res_t | plane_res |
| Plane res. | |
| file_t | render_fd |
| Render fd. | |
DRM card, render node, and plane metadata used for KMS capture.
|
inline |
Return an iterator to the first byte in the buffer view.
|
inline |
Return the DRM connector object for the display.
| id | DRM connector ID. |
|
inline |
Return DRM connector properties.
| id | DRM connector ID. |
|
inline |
Return the number of items in the wrapped DRM collection.
|
inline |
Return the DRM CRTC object for the monitor.
| id | DRM CRTC ID. |
|
inline |
Return DRM CRTC properties.
| id | DRM CRTC ID. |
|
inline |
Return the DRM encoder object for the connector.
| id | DRM encoder ID. |
|
inline |
Return an iterator one past the final byte in the buffer view.
|
inline |
Return framebuffer metadata for the current CRTC.
| plane | DRM or EGL plane index being described. |
|
inline |
Get crtc index by ID.
| crtc_id | Crtc ID. |
|
inline |
Get panel orientation.
| plane_id | Plane ID. |
|
inline |
Return the DRM file descriptor owned by the object.
| handle | GEM handle exported by the DRM framebuffer. |
|
inline |
Open a DRM connector and cache its monitor metadata.
| path | Filesystem path for the DRM device or resource. |
|
inline |
Check whether cursor.
| plane_id | Plane ID. |
|
inline |
Check whether nvidia.
|
inline |
Refresh the monitor list reported by the display server.
| conn_type_count | Conn type count. |
|
inline |
Fetch DRM plane metadata by plane-list index.
| index | Zero-based index into the DRM plane resource list. |
|
inline |
Return DRM plane properties.
| id | DRM plane ID. |
|
inline |
Look up a DRM property value by property name.
| props | DRM property collection to inspect. |
| name | DRM property name to search for. |
|
inline |
Return DRM object properties for the resource.
| id | DRM object ID. |
| type | DRM object type. |
|
inline |
Return the DRM resource list for the card.