SRM  v0.11.0-1
Simple Rendering Manager
SRMTypes

SRM data types. More...

Detailed Description

SRM data types.

Functions

const char * srmGetRenderModeString (SRM_RENDER_MODE mode)
 Get a string representation of a rendering mode. More...
 
const char * srmGetPlaneTypeString (SRM_PLANE_TYPE type)
 Get a string representation of a plane type. More...
 
const char * srmGetConnectorStateString (SRM_CONNECTOR_STATE state)
 Get a string representation of a connector state. More...
 
const char * srmGetConnectorTypeString (UInt32 type)
 Get a string representation of a connector type. More...
 
const char * srmGetConnectorSubPixelString (SRM_CONNECTOR_SUBPIXEL subpixel)
 Get a string representation of a connector subpixel layout. More...
 
const char * srmGetConnectorContentTypeString (SRM_CONNECTOR_CONTENT_TYPE contentType)
 Get a string representation of a connector content type hint. More...
 
void srmSaveContext ()
 Saves the current EGL context state. More...
 
void srmRestoreContext ()
 Restores the previously saved context. More...
 

Typedef Documentation

◆ Int8

Alias for a signed 8-bit integer (int8_t).

◆ UInt8

Alias for an unsigned 8-bit integer (uint8_t).

◆ Int16

Alias for a signed 16-bit integer (int16_t).

◆ UInt16

Alias for an unsigned 16-bit integer (uint16_t).

◆ Int32

Alias for a signed 32-bit integer (int32_t).

◆ UInt32

Alias for an unsigned 32-bit integer (uint32_t).

◆ Int64

Alias for a signed 64-bit integer (int64_t).

◆ UInt64

Alias for an unsigned 64-bit integer (uint64_t).

◆ Float32

Alias for a 32-bit floating point (float).

◆ Float64

Alias for a 64-bit floating point (double).

◆ SRM_BUFFER_FORMAT

A DRM format defined in drm_fourcc.h.

◆ SRM_BUFFER_MODIFIER

A DRM format modifier defined in drm_fourcc.h.

Function Documentation

◆ srmGetRenderModeString()

const char* srmGetRenderModeString ( SRM_RENDER_MODE  mode)

Get a string representation of a rendering mode.

Parameters
modeThe rendering mode to retrieve the string for.
Returns
A pointer to the string representation of the rendering mode.

◆ srmGetPlaneTypeString()

const char* srmGetPlaneTypeString ( SRM_PLANE_TYPE  type)

Get a string representation of a plane type.

Parameters
typeThe plane type to retrieve the string for.
Returns
A pointer to the string representation of the plane type.

◆ srmGetConnectorStateString()

const char* srmGetConnectorStateString ( SRM_CONNECTOR_STATE  state)

Get a string representation of a connector state.

Parameters
stateThe connector state to retrieve the string for.
Returns
A pointer to the string representation of the connector state.

◆ srmGetConnectorTypeString()

const char* srmGetConnectorTypeString ( UInt32  type)

Get a string representation of a connector type.

Parameters
typeThe connector type to retrieve the string for.
Returns
A pointer to the string representation of the connector type.

◆ srmGetConnectorSubPixelString()

const char* srmGetConnectorSubPixelString ( SRM_CONNECTOR_SUBPIXEL  subpixel)

Get a string representation of a connector subpixel layout.

Parameters
subpixelThe connector subpixel layout to retrieve the string for.
Returns
A pointer to the string representation of the subpixel layout.

◆ srmGetConnectorContentTypeString()

const char* srmGetConnectorContentTypeString ( SRM_CONNECTOR_CONTENT_TYPE  contentType)

Get a string representation of a connector content type hint.

Parameters
contentTypeThe connector content type hint to retrieve the string for.
Returns
A pointer to the string representation of the content type hint.

◆ srmSaveContext()

void srmSaveContext ( )

Saves the current EGL context state.

This method stores the currently bound EGLDisplay, as well as the read and write EGLSurfaces and EGLContext.

◆ srmRestoreContext()

void srmRestoreContext ( )

Restores the previously saved context.

See also
srmSaveContext()