Functions
Drm output functions

Functions that deal with setup of outputs. More...

Functions

EAPI Eina_Bool ecore_drm2_outputs_create (Ecore_Drm2_Device *device)
 Iterate drm resources and create outputs. More...
 
EAPI void ecore_drm2_outputs_destroy (Ecore_Drm2_Device *device)
 Destroy any created outputs. More...
 
EAPI const Eina_Listecore_drm2_outputs_get (Ecore_Drm2_Device *device)
 Get the list of outputs from a drm device. More...
 
EAPI int ecore_drm2_output_dpms_get (Ecore_Drm2_Output *output)
 Get the dpms level of a given output. More...
 
EAPI void ecore_drm2_output_dpms_set (Ecore_Drm2_Output *output, int level)
 Set the dpms level of a given output. More...
 
EAPI char * ecore_drm2_output_edid_get (Ecore_Drm2_Output *output)
 Get the edid of a given output. More...
 
EAPI Eina_Bool ecore_drm2_output_backlight_get (Ecore_Drm2_Output *output)
 Get if a given output has a backlight. More...
 
EAPI Ecore_Drm2_Output * ecore_drm2_output_find (Ecore_Drm2_Device *device, int x, int y)
 Find an output at the given position. More...
 
EAPI void ecore_drm2_output_geometry_get (Ecore_Drm2_Output *output, int *x, int *y, int *w, int *h)
 Get the geometry of a given output. More...
 
EAPI unsigned int ecore_drm2_output_crtc_get (Ecore_Drm2_Output *output)
 Get the id of the crtc that an output is using. More...
 
EAPI Ecore_Drm2_Fb * ecore_drm2_output_next_fb_get (Ecore_Drm2_Output *output)
 Return the next Ecore_Drm2_Fb to be used on a given output. More...
 
EAPI Ecore_Drm2_Fb * ecore_drm2_output_current_fb_get (Ecore_Drm2_Output *output)
 Return the current Ecore_Drm2_Fb used on a given output. More...
 
EAPI void ecore_drm2_output_next_fb_set (Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb)
 Set the next Ecore_Drm2_Fb to be used on a given output. More...
 
EAPI void ecore_drm2_output_crtc_size_get (Ecore_Drm2_Output *output, int *w, int *h)
 Get the size of the crtc for a given output. More...
 
EAPI Eina_Bool ecore_drm2_output_primary_get (Ecore_Drm2_Output *output)
 Get if a given output is marked as the primary output. More...
 
EAPI void ecore_drm2_output_primary_set (Ecore_Drm2_Output *output, Eina_Bool primary)
 Set a given output to be primary. More...
 
EAPI Eina_Bool ecore_drm2_output_enabled_get (Ecore_Drm2_Output *output)
 Get if a given output is enabled. More...
 
EAPI void ecore_drm2_output_enabled_set (Ecore_Drm2_Output *output, Eina_Bool enabled)
 Set if a given output is enabled. More...
 
EAPI void ecore_drm2_output_physical_size_get (Ecore_Drm2_Output *output, int *w, int *h)
 Get the physical size of a given output. More...
 
EAPI const Eina_Listecore_drm2_output_modes_get (Ecore_Drm2_Output *output)
 Get a list of the modes supported on a given output. More...
 
EAPI void ecore_drm2_output_mode_info_get (Ecore_Drm2_Output_Mode *mode, int *w, int *h, unsigned int *refresh, unsigned int *flags)
 Get information from an existing output mode. More...
 
EAPI Eina_Bool ecore_drm2_output_mode_set (Ecore_Drm2_Output *output, Ecore_Drm2_Output_Mode *mode, int x, int y)
 Set a given mode to be used on a given output. More...
 
EAPI char * ecore_drm2_output_name_get (Ecore_Drm2_Output *output)
 Get the name of a given output. More...
 
EAPI char * ecore_drm2_output_model_get (Ecore_Drm2_Output *output)
 Get the model of a given output. More...
 
EAPI Eina_Bool ecore_drm2_output_connected_get (Ecore_Drm2_Output *output)
 Get if a given output is connected. More...
 
EAPI Eina_Bool ecore_drm2_output_cloned_get (Ecore_Drm2_Output *output)
 Get if a given output is cloned. More...
 
EAPI unsigned int ecore_drm2_output_connector_type_get (Ecore_Drm2_Output *output)
 Get the connector type of a given output. More...
 
EAPI void ecore_drm2_output_resolution_get (Ecore_Drm2_Output *output, int *w, int *h, unsigned int *refresh)
 Get the current resolution of a given output. More...
 
EAPI Eina_Bool ecore_drm2_output_possible_crtc_get (Ecore_Drm2_Output *output, unsigned int crtc)
 Get if an output can be used on a given crtc. More...
 

Detailed Description

Functions that deal with setup of outputs.

Function Documentation

§ ecore_drm2_outputs_create()

EAPI Eina_Bool ecore_drm2_outputs_create ( Ecore_Drm2_Device *  device)

Iterate drm resources and create outputs.

Parameters
device
Returns
EINA_TRUE on success, EINA_FALSE otherwise
Since
1.18

§ ecore_drm2_outputs_destroy()

EAPI void ecore_drm2_outputs_destroy ( Ecore_Drm2_Device *  device)

Destroy any created outputs.

Parameters
device
Since
1.18

§ ecore_drm2_outputs_get()

EAPI const Eina_List* ecore_drm2_outputs_get ( Ecore_Drm2_Device *  device)

Get the list of outputs from a drm device.

Parameters
device
Returns
Since
1.18

§ ecore_drm2_output_dpms_get()

EAPI int ecore_drm2_output_dpms_get ( Ecore_Drm2_Output *  output)

Get the dpms level of a given output.

Parameters
output
Returns
Integer value representing the state of DPMS on a given output or -1 on error
Since
1.18

§ ecore_drm2_output_dpms_set()

EAPI void ecore_drm2_output_dpms_set ( Ecore_Drm2_Output *  output,
int  level 
)

Set the dpms level of a given output.

Parameters
output
level
Since
1.18

§ ecore_drm2_output_edid_get()

EAPI char* ecore_drm2_output_edid_get ( Ecore_Drm2_Output *  output)

Get the edid of a given output.

Parameters
output
Returns
A string representing the edid
Since
1.18

§ ecore_drm2_output_backlight_get()

EAPI Eina_Bool ecore_drm2_output_backlight_get ( Ecore_Drm2_Output *  output)

Get if a given output has a backlight.

Parameters
output
Returns
EINA_TRUE if this output has a backlight, EINA_FALSE otherwise
Since
1.18

§ ecore_drm2_output_find()

EAPI Ecore_Drm2_Output* ecore_drm2_output_find ( Ecore_Drm2_Device *  device,
int  x,
int  y 
)

Find an output at the given position.

Parameters
device
x
y
Returns
An Ecore_Drm2_Output which exists at the given coordinates, or NULL on failure
Since
1.18

§ ecore_drm2_output_geometry_get()

EAPI void ecore_drm2_output_geometry_get ( Ecore_Drm2_Output *  output,
int *  x,
int *  y,
int *  w,
int *  h 
)

Get the geometry of a given output.

Parameters
output
x
y
w
h
Since
1.18

§ ecore_drm2_output_crtc_get()

EAPI unsigned int ecore_drm2_output_crtc_get ( Ecore_Drm2_Output *  output)

Get the id of the crtc that an output is using.

Parameters
output
Returns
A valid crtc id or 0 on failure
Since
1.18

§ ecore_drm2_output_next_fb_get()

EAPI Ecore_Drm2_Fb* ecore_drm2_output_next_fb_get ( Ecore_Drm2_Output *  output)

Return the next Ecore_Drm2_Fb to be used on a given output.

Parameters
output
Returns
The next Ecore_Drm2_Fb which is scheduled to to be flipped, or NULL otherwise
Since
1.18

§ ecore_drm2_output_current_fb_get()

EAPI Ecore_Drm2_Fb* ecore_drm2_output_current_fb_get ( Ecore_Drm2_Output *  output)

Return the current Ecore_Drm2_Fb used on a given output.

Parameters
output
Returns
The current Ecore_Drm2_Fb used on this output, or NULL otherwise
Since
1.18

§ ecore_drm2_output_next_fb_set()

EAPI void ecore_drm2_output_next_fb_set ( Ecore_Drm2_Output *  output,
Ecore_Drm2_Fb *  fb 
)

Set the next Ecore_Drm2_Fb to be used on a given output.

Parameters
output
fb
Since
1.18

§ ecore_drm2_output_crtc_size_get()

EAPI void ecore_drm2_output_crtc_size_get ( Ecore_Drm2_Output *  output,
int *  w,
int *  h 
)

Get the size of the crtc for a given output.

Parameters
output
*w
*h
Since
1.18

§ ecore_drm2_output_primary_get()

EAPI Eina_Bool ecore_drm2_output_primary_get ( Ecore_Drm2_Output *  output)

Get if a given output is marked as the primary output.

Parameters
output
Returns
EINA_TRUE if output is primary, EINA_FALSE otherwise
Since
1.18

§ ecore_drm2_output_primary_set()

EAPI void ecore_drm2_output_primary_set ( Ecore_Drm2_Output *  output,
Eina_Bool  primary 
)

Set a given output to be primary.

Parameters
output
primary
Since
1.18

§ ecore_drm2_output_enabled_get()

EAPI Eina_Bool ecore_drm2_output_enabled_get ( Ecore_Drm2_Output *  output)

Get if a given output is enabled.

Parameters
output
Returns
EINA_TRUE if enabled, EINA_FALSE otherwise.
Since
1.18

§ ecore_drm2_output_enabled_set()

EAPI void ecore_drm2_output_enabled_set ( Ecore_Drm2_Output *  output,
Eina_Bool  enabled 
)

Set if a given output is enabled.

Parameters
output
enabled
Since
1.18

§ ecore_drm2_output_physical_size_get()

EAPI void ecore_drm2_output_physical_size_get ( Ecore_Drm2_Output *  output,
int *  w,
int *  h 
)

Get the physical size of a given output.

This function will give the physical size (in mm) of an output

Parameters
output
*w
*h
Since
1.18

§ ecore_drm2_output_modes_get()

EAPI const Eina_List* ecore_drm2_output_modes_get ( Ecore_Drm2_Output *  output)

Get a list of the modes supported on a given output.

Parameters
output
Returns
An Eina_List of the modes supported for this output
Note
The returned list should not be freed
Since
1.18

§ ecore_drm2_output_mode_info_get()

EAPI void ecore_drm2_output_mode_info_get ( Ecore_Drm2_Output_Mode *  mode,
int *  w,
int *  h,
unsigned int *  refresh,
unsigned int *  flags 
)

Get information from an existing output mode.

Parameters
mode
w
h
refresh
flags
Since
1.18

§ ecore_drm2_output_mode_set()

EAPI Eina_Bool ecore_drm2_output_mode_set ( Ecore_Drm2_Output *  output,
Ecore_Drm2_Output_Mode *  mode,
int  x,
int  y 
)

Set a given mode to be used on a given output.

Parameters
output
mode
x
y
Returns
EINA_TRUE on success, EINA_FALSE otherwise
Since
1.18

References EINA_TRUE.

§ ecore_drm2_output_name_get()

EAPI char* ecore_drm2_output_name_get ( Ecore_Drm2_Output *  output)

Get the name of a given output.

Parameters
output
Returns
A string representing the output's name. Caller should free this return.
Since
1.18

§ ecore_drm2_output_model_get()

EAPI char* ecore_drm2_output_model_get ( Ecore_Drm2_Output *  output)

Get the model of a given output.

Parameters
output
Returns
A string representing the output's model. Caller should free this return.
Since
1.18

§ ecore_drm2_output_connected_get()

EAPI Eina_Bool ecore_drm2_output_connected_get ( Ecore_Drm2_Output *  output)

Get if a given output is connected.

Parameters
output
Returns
EINA_TRUE if connected, EINA_FALSE otherwise
Since
1.18

§ ecore_drm2_output_cloned_get()

EAPI Eina_Bool ecore_drm2_output_cloned_get ( Ecore_Drm2_Output *  output)

Get if a given output is cloned.

Parameters
output
Returns
EINA_TRUE if cloned, EINA_FALSE otherwise.
Since
1.18

§ ecore_drm2_output_connector_type_get()

EAPI unsigned int ecore_drm2_output_connector_type_get ( Ecore_Drm2_Output *  output)

Get the connector type of a given output.

Parameters
output
Returns
An unsigned integer representing the type of connector for this output
Since
1.18

§ ecore_drm2_output_resolution_get()

EAPI void ecore_drm2_output_resolution_get ( Ecore_Drm2_Output *  output,
int *  w,
int *  h,
unsigned int *  refresh 
)

Get the current resolution of a given output.

Parameters
output
*w
*h
*refresh
Since
1.18

§ ecore_drm2_output_possible_crtc_get()

EAPI Eina_Bool ecore_drm2_output_possible_crtc_get ( Ecore_Drm2_Output *  output,
unsigned int  crtc 
)

Get if an output can be used on a given crtc.

This function will loop the possible crtcs of an encoder to determine if a given output can be assigned to a given crtc

Parameters
output
crtc
Returns
EINA_TRUE if the output can be assigned to given crtc, EINA_FALSE otherwise
Since
1.18

References EINA_FALSE.