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_List * | ecore_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 void | ecore_drm2_output_dpi_get (Ecore_Drm2_Output *output, int *xdpi, int *ydpi) |
Get the dpi 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_latest_fb_get (Ecore_Drm2_Output *output) |
Return the most recently set Ecore_Drm2_Fb for 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_List * | ecore_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... | |
EAPI void | ecore_drm2_output_gamma_set (Ecore_Drm2_Output *output, uint16_t size, uint16_t *red, uint16_t *green, uint16_t *blue) |
Set the gamma level of an Ecore_Drm_Output. More... | |
EAPI int | ecore_drm2_output_supported_rotations_get (Ecore_Drm2_Output *output) |
Get the supported rotations of a given output. More... | |
EAPI Eina_Bool | ecore_drm2_output_rotation_set (Ecore_Drm2_Output *output, int rotation) |
Set a rotation on a given output. More... | |
EAPI void | ecore_drm2_output_user_data_set (Ecore_Drm2_Output *o, void *data) |
Set the user data for the output's page flip handler. More... | |
EAPI unsigned int | ecore_drm2_output_subpixel_get (const Ecore_Drm2_Output *output) |
Get the subpixel state of the output. More... | |
EAPI void * | ecore_drm2_fb_bo_get (Ecore_Drm2_Fb *fb) |
Get the Framebuffer's gbm buffer object. More... | |
EAPI void | ecore_drm2_fb_status_handler_set (Ecore_Drm2_Fb *fb, Ecore_Drm2_Fb_Status_Handler handler, void *data) |
Register a callback for buffer status updates. More... | |
Functions that deal with setup of outputs.
Iterate drm resources and create outputs.
device |
EAPI void ecore_drm2_outputs_destroy | ( | Ecore_Drm2_Device * | device | ) |
Destroy any created outputs.
device |
Get the list of outputs from a drm device.
device |
EAPI int ecore_drm2_output_dpms_get | ( | Ecore_Drm2_Output * | output | ) |
Get the dpms level of a given output.
output |
EAPI void ecore_drm2_output_dpms_set | ( | Ecore_Drm2_Output * | output, |
int | level | ||
) |
Set the dpms level of a given output.
output | |
level |
EAPI char* ecore_drm2_output_edid_get | ( | Ecore_Drm2_Output * | output | ) |
Get the edid of a given output.
output |
Get if a given output has a backlight.
output |
EAPI Ecore_Drm2_Output* ecore_drm2_output_find | ( | Ecore_Drm2_Device * | device, |
int | x, | ||
int | y | ||
) |
Find an output at the given position.
device | |
x | |
y |
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.
output | |
x | |
y | |
w | |
h |
EAPI void ecore_drm2_output_dpi_get | ( | Ecore_Drm2_Output * | output, |
int * | xdpi, | ||
int * | ydpi | ||
) |
Get the dpi of a given output.
output | |
xdpi | |
ydpi |
EAPI unsigned int ecore_drm2_output_crtc_get | ( | Ecore_Drm2_Output * | output | ) |
Get the id of the crtc that an output is using.
output |
EAPI Ecore_Drm2_Fb* ecore_drm2_output_latest_fb_get | ( | Ecore_Drm2_Output * | output | ) |
Return the most recently set Ecore_Drm2_Fb for a given output.
This may be the currently scanned out buffer, a buffer currently being flipped to scanout, or a buffer that has been submit but may not actually ever hit scanout at all.
output |
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.
output | |
*w | |
*h |
Get if a given output is marked as the primary output.
output |
Set a given output to be primary.
output | |
primary |
Get if a given output is enabled.
output |
Set if a given output is enabled.
output | |
enabled |
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
output | |
*w | |
*h |
Get a list of the modes supported on a given output.
output |
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.
mode | |
w | |
h | |
refresh | |
flags |
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.
output | |
mode | |
x | |
y |
References EINA_TRUE.
EAPI char* ecore_drm2_output_name_get | ( | Ecore_Drm2_Output * | output | ) |
Get the name of a given output.
output |
EAPI char* ecore_drm2_output_model_get | ( | Ecore_Drm2_Output * | output | ) |
Get the model of a given output.
output |
Get if a given output is connected.
output |
Get if a given output is cloned.
output |
EAPI unsigned int ecore_drm2_output_connector_type_get | ( | Ecore_Drm2_Output * | output | ) |
Get the connector type of a given output.
output |
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.
output | |
*w | |
*h | |
*refresh |
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
output | |
crtc |
References EINA_FALSE.
EAPI void ecore_drm2_output_gamma_set | ( | Ecore_Drm2_Output * | output, |
uint16_t | size, | ||
uint16_t * | red, | ||
uint16_t * | green, | ||
uint16_t * | blue | ||
) |
Set the gamma level of an Ecore_Drm_Output.
This function will set the gamma of an Ecore_Drm2_Output
output | The Ecore_Drm2_Output to set the gamma level on |
size | The gamma table size to set |
red | The amount to scale the red channel |
green | The amount to scale the green channel |
blue | The amount to scale the blue channel |
EAPI int ecore_drm2_output_supported_rotations_get | ( | Ecore_Drm2_Output * | output | ) |
Get the supported rotations of a given output.
output |
Set a rotation on a given output.
output | |
rotation |
References EINA_FALSE.
EAPI void ecore_drm2_output_user_data_set | ( | Ecore_Drm2_Output * | o, |
void * | data | ||
) |
Set the user data for the output's page flip handler.
output | The output to update user data for |
data | The new user data pointer |
EAPI unsigned int ecore_drm2_output_subpixel_get | ( | const Ecore_Drm2_Output * | output | ) |
Get the subpixel state of the output.
output | the output |
EAPI void* ecore_drm2_fb_bo_get | ( | Ecore_Drm2_Fb * | fb | ) |
Get the Framebuffer's gbm buffer object.
fb | The framebuffer to query |
EAPI void ecore_drm2_fb_status_handler_set | ( | Ecore_Drm2_Fb * | fb, |
Ecore_Drm2_Fb_Status_Handler | handler, | ||
void * | data | ||
) |
Register a callback for buffer status updates.
When a flip completes ecore_drm2 may release a buffer. Use this callback if you need to do bookkeeping or locking on buffer release.
Additionally, an fb may be placed on scanout or removed from scanout by evas. When this happens a compositor needs to ensure the buffers aren't released back to a client while they're on scanout.
fb | The fb to register the callback on |
handler | The function to handle the callback |
data | The user data to pass to the callback |