SRM  v0.7.2-1
Simple Rendering Manager
SRMEncoder

Connector encoder in a DRM context. More...

Detailed Description

Connector encoder in a DRM context.

An SRMEncoder represents a connector encoder device responsible for driving displays (e.g., monitors or screens). This module provides functions to work with display encoders, including retrieving their information and associated resources.

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

Functions

UInt32 srmEncoderGetID (SRMEncoder *encoder)
 Get the unique identifier of the encoder. More...
 
SRMDevicesrmEncoderGetDevice (SRMEncoder *encoder)
 Get the device to which this encoder belongs. More...
 
SRMListsrmEncoderGetCrtcs (SRMEncoder *encoder)
 Get a list of CRTCs (Cathode Ray Tube Controllers) compatible with this encoder. More...
 
SRMConnectorsrmEncoderGetCurrentConnector (SRMEncoder *encoder)
 Get the connector that is currently using this encoder. More...
 

Typedef Documentation

◆ SRMEncoder

typedef struct SRMEncoderStruct SRMEncoder

Function Documentation

◆ srmEncoderGetID()

UInt32 srmEncoderGetID ( SRMEncoder encoder)

Get the unique identifier of the encoder.

Parameters
encoderA pointer to the SRMEncoder instance.
Returns
The ID of the encoder.

◆ srmEncoderGetDevice()

SRMDevice* srmEncoderGetDevice ( SRMEncoder encoder)

Get the device to which this encoder belongs.

Parameters
encoderA pointer to the SRMEncoder instance.
Returns
A pointer to the SRMDevice representing the device to which the encoder belongs.

◆ srmEncoderGetCrtcs()

SRMList* srmEncoderGetCrtcs ( SRMEncoder encoder)

Get a list of CRTCs (Cathode Ray Tube Controllers) compatible with this encoder.

Parameters
encoderA pointer to the SRMEncoder instance.
Returns
A list of pointers to the CRTCs (SRMCrtc) compatible with the encoder.

◆ srmEncoderGetCurrentConnector()

SRMConnector* srmEncoderGetCurrentConnector ( SRMEncoder encoder)

Get the connector that is currently using this encoder.

Parameters
encoderA pointer to the SRMEncoder instance.
Returns
A pointer to the SRMConnector currently utilizing this encoder, or NULL if not in use.