Ecore DRM Output

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files
- Examples

Functions
Ecore DRM Output

Functions to manage DRM outputs. More...

## Functions
EAPI Eina_Bool | ecore_drm_outputs_create (Ecore_Drm_Device *dev)
| Create outputs for a drm device. More...
EAPI void | ecore_drm_output_free (Ecore_Drm_Output *output)
| Free an Ecore_Drm_Output. More...
EAPI void | ecore_drm_output_cursor_size_set (Ecore_Drm_Output *output, int handle, int w, int h)
| Set the cursor size for Ecore_Drm_Output. More...
EAPI Eina_Bool | ecore_drm_output_enable (Ecore_Drm_Output *output)
| Enable a Ecore_Drm_Output. More...
EAPI void | ecore_drm_output_disable (Ecore_Drm_Output *output)
| Disable a Ecore_Drm_Output. More...
EAPI void | ecore_drm_output_size_get (Ecore_Drm_Device *dev, int output, int *w, int *h)
| Get the output size of Ecore_Drm_Device. More...
EAPI unsigned int | ecore_drm_output_crtc_id_get (Ecore_Drm_Output *output)
| Get the crtc id of an output. More...
EAPI unsigned int | ecore_drm_output_crtc_buffer_get (Ecore_Drm_Output *output)
| Get the crtc buffer of an output. More...
EAPI unsigned int | ecore_drm_output_connector_id_get (Ecore_Drm_Output *output)
| Get the connector id of an output. More...
EAPI void | ecore_drm_output_position_get (Ecore_Drm_Output *output, int *x, int *y)
| Get the output position of Ecore_Drm_Output. More...
EAPI void | ecore_drm_output_current_resolution_get (Ecore_Drm_Output *output, int *w, int *h, unsigned int *refresh)
| Get the current resolution of Ecore_Drm_Output. More...
EAPI void | ecore_drm_output_physical_size_get (Ecore_Drm_Output *output, int *w, int *h)
| Get the physical size of Ecore_Drm_Output. More...
EAPI unsigned int | ecore_drm_output_subpixel_order_get (Ecore_Drm_Output *output)
| Get the subpixel order of Ecore_Drm_Output. More...
EAPI Eina_Stringshare * | ecore_drm_output_model_get (Ecore_Drm_Output *output)
| Get the model of Ecore_Drm_Output. More...
EAPI Eina_Stringshare * | ecore_drm_output_make_get (Ecore_Drm_Output *output)
| Get the make of Ecore_Drm_Output. More...
EAPI void | ecore_drm_output_dpms_set (Ecore_Drm_Output *output, int level)
| Set the dpms level of an Ecore_Drm_Output. More...
EAPI void | ecore_drm_output_gamma_set (Ecore_Drm_Output *output, uint16_t size, uint16_t *r, uint16_t *g, uint16_t *b)
| Set the gamma level of an Ecore_Drm_Output. More...

## Detailed Description

Functions to manage DRM outputs.

## Function Documentation

EAPI Eina_Bool ecore_drm_outputs_create | ( | Ecore_Drm_Device * | dev | ) |

Create outputs for a drm device.

This function will create outputs for Ecore_Drm_Device

Parameters

  dev | The Ecore_Drm_Device device for which outputs needs to be created

Returns
  EINA_TRUE on success, EINA_FALSE on failure.

References EINA_FALSE, eina_list_count(), EINA_TRUE, and ERR.

EAPI void ecore_drm_output_free | ( | Ecore_Drm_Output * | output | ) |

Free an Ecore_Drm_Output.

This function will cleanup and free any previously allocated Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to free

Referenced by ecore_drm_device_free().

EAPI void ecore_drm_output_cursor_size_set | ( | Ecore_Drm_Output * | output,
|  | int | handle,
|  | int | w,
|  | int | h
| ) |  |

Set the cursor size for Ecore_Drm_Output.

This function will set the cursor size of Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to set
  handle | The Drm handle
  w | The width of cursor
  h | The height of cursor

Referenced by ecore_drm_output_disable().

EAPI Eina_Bool ecore_drm_output_enable | ( | Ecore_Drm_Output * | output | ) |

Enable a Ecore_Drm_Output.

This function will enable rendering on an Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to enable

Since
  1.14

References ecore_drm_output_dpms_set(), EINA_FALSE, EINA_TRUE, and ERR.

EAPI void ecore_drm_output_disable | ( | Ecore_Drm_Output * | output | ) |

Disable a Ecore_Drm_Output.

This function will disable rendering on an Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to disable

Since
  1.14

References ecore_drm_output_cursor_size_set(), ecore_drm_output_dpms_set(), and EINA_FALSE.

EAPI void ecore_drm_output_size_get | ( | Ecore_Drm_Device * | dev,
|  | int | output,
|  | int * | w,
|  | int * | h
| ) |  |

Get the output size of Ecore_Drm_Device.

This function will give the output size of Ecore_Drm_Device

Parameters

  dev | The Ecore_Drm_Device to get output size
  output | The output id whose information needs to be retrived
  *w | The parameter in which output width is stored
  *h | The parameter in which output height is stored

EAPI unsigned int ecore_drm_output_crtc_id_get | ( | Ecore_Drm_Output * | output | ) |

Get the crtc id of an output.

This function will return the default crtc id for an output

Parameters

  output | The Ecore_Drm_Output to get the default crtc of

Returns
  The id of the default crtc for this output

Since
  1.14

EAPI unsigned int ecore_drm_output_crtc_buffer_get | ( | Ecore_Drm_Output * | output | ) |

Get the crtc buffer of an output.

This function will return the default buffer id for an output

Parameters

  output | The Ecore_Drm_Output to get the default buffer of

Returns
  The id of the default buffer for this output

Since
  1.14

EAPI unsigned int ecore_drm_output_connector_id_get | ( | Ecore_Drm_Output * | output | ) |

Get the connector id of an output.

This function will return the default connector id for an output

Parameters

  output | The Ecore_Drm_Output to get the default connector of

Returns
  The id of the default connector id for this output

Since
  1.14

EAPI void ecore_drm_output_position_get | ( | Ecore_Drm_Output * | output,
|  | int * | x,
|  | int * | y
| ) |  |

Get the output position of Ecore_Drm_Output.

This function will give the output position of Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to get position for
  *x | The parameter in which output x co-ordinate is stored
  *y | The parameter in which output y co-ordinate is stored

Since
  1.14

EAPI void ecore_drm_output_current_resolution_get | ( | Ecore_Drm_Output * | output,
|  | int * | w,
|  | int * | h,
|  | unsigned int * | refresh
| ) |  |

Get the current resolution of Ecore_Drm_Output.

This function will give the current resolution of Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to get resolution for
  *w | The parameter in which output width is stored
  *h | The parameter in which output height is stored
  *refresh | The parameter in which output refresh rate is stored

Since
  1.14

EAPI void ecore_drm_output_physical_size_get | ( | Ecore_Drm_Output * | output,
|  | int * | w,
|  | int * | h
| ) |  |

Get the physical size of Ecore_Drm_Output.

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

Parameters

  output | The Ecore_Drm_Output to get physical size for
  *w | The parameter in which output physical width is stored
  *h | The parameter in which output physical height is stored

Since
  1.14

EAPI unsigned int ecore_drm_output_subpixel_order_get | ( | Ecore_Drm_Output * | output | ) |

Get the subpixel order of Ecore_Drm_Output.

This function will give the subpixel order of Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to get subpixel order for

Returns
  The output subpixel order

Since
  1.14

EAPI Eina_Stringshare* ecore_drm_output_model_get | ( | Ecore_Drm_Output * | output | ) |

Get the model of Ecore_Drm_Output.

This function will give the model of Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to get model for

Returns
  The model (do NOT eina_stringshare_del this return!)

Since
  1.14

EAPI Eina_Stringshare* ecore_drm_output_make_get | ( | Ecore_Drm_Output * | output | ) |

Get the make of Ecore_Drm_Output.

This function will give the make of Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to get model for

Returns
  The make (do NOT eina_stringshare_del this return!)

Since
  1.14

EAPI void ecore_drm_output_dpms_set | ( | Ecore_Drm_Output * | output,
|  | int | level
| ) |  |

Set the dpms level of an Ecore_Drm_Output.

This function will set the DPMS level of an Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to set the dpms level on
  level | The level to set

Since
  1.14

Referenced by ecore_drm_output_disable(), and ecore_drm_output_enable().

EAPI void ecore_drm_output_gamma_set | ( | Ecore_Drm_Output * | output,
|  | uint16_t | size,
|  | uint16_t * | r,
|  | uint16_t * | g,
|  | uint16_t * | b
| ) |  |

Set the gamma level of an Ecore_Drm_Output.

This function will set the gamma of an Ecore_Drm_Output

Parameters

  output | The Ecore_Drm_Output to set the gamma level on
  size | The gamma table size to set
  r | The amount to scale the red channel
  g | The amount to scale the green channel
  b | The amount to scale the blue channel

Since
  1.14

References ERR.