SRM  v0.10.0-1
Simple Rendering Manager
SRMCrtc

Cathode Ray Tube Controllers (CRTCs). More...

Detailed Description

Cathode Ray Tube Controllers (CRTCs).

A Cathode Ray Tube Controller (CRTC) is responsible for controlling the display timings and attributes for a connected display device. This module provides functions to work with CRTCs in a SRM context.

Note
This module is primarily used by SRM internally and may not be of much use to users.

Functions

UInt32 srmCrtcGetID (SRMCrtc *crtc)
 Get the DRM ID of this CRTC. More...
 
SRMDevicesrmCrtcGetDevice (SRMCrtc *crtc)
 Get the device this CRTC belongs to. More...
 
SRMConnectorsrmCrtcGetCurrentConnector (SRMCrtc *crtc)
 Returns a pointer to the SRMConnector that is currently using this CRTC, or NULL if it is not used by any connector. More...
 
UInt64 srmCrtcGetGammaSize (SRMCrtc *crtc)
 Gets the number of elements used to represent each RGB gamma correction curve. More...
 

Typedef Documentation

◆ SRMCrtc

typedef struct SRMCrtcStruct SRMCrtc

Function Documentation

◆ srmCrtcGetID()

UInt32 srmCrtcGetID ( SRMCrtc crtc)

Get the DRM ID of this CRTC.

Parameters
crtcA pointer to the SRMCrtc instance.
Returns
The DRM ID of the CRTC.

◆ srmCrtcGetDevice()

SRMDevice* srmCrtcGetDevice ( SRMCrtc crtc)

Get the device this CRTC belongs to.

Parameters
crtcA pointer to the SRMCrtc instance.
Returns
A pointer to the SRMDevice that this CRTC belongs to.

◆ srmCrtcGetCurrentConnector()

SRMConnector* srmCrtcGetCurrentConnector ( SRMCrtc crtc)

Returns a pointer to the SRMConnector that is currently using this CRTC, or NULL if it is not used by any connector.

Parameters
crtcA pointer to the SRMCrtc instance.
Returns
A pointer to the SRMConnector currently using this CRTC, or NULL if not in use.

◆ srmCrtcGetGammaSize()

UInt64 srmCrtcGetGammaSize ( SRMCrtc crtc)

Gets the number of elements used to represent each RGB gamma correction curve.

This function retrieves the number of elements (N) used to represent each RGB gamma correction curve, where N is the count of UInt16 elements for red, green, and blue curves.

See also
srmConnectorSetGamma()
Parameters
connectorPointer to the SRMCrtc.
Returns
The number of elements used to represent each RGB gamma correction curve, or 0 if the driver does not support gamma correction.