# lv_draw_dave2d_utils.h (/api/draw/renesas/dave2d/lv_draw_dave2d_utils_h)



<ApiSummary functions="4" />

Functions [#functions]

<ApiMember kind="function" name="lv_draw_dave2d_lv_colour_to_d2_colour" file="draw/renesas/dave2d/lv_draw_dave2d_utils.h" line="29" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/renesas/dave2d/lv_draw_dave2d_utils.h#L29">
  lv_draw_dave2d_lv_colour_to_d2_colour [#lv_draw_dave2d_lv_colour_to_d2_colour]

  ```c title=" " lineNumbers=1
  d2_color lv_draw_dave2d_lv_colour_to_d2_colour(lv_color_t color)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name    | Type                          |
  | ------- | ----------------------------- |
  | `color` | <ApiLink name="lv_color_t" /> |
</ApiMember>

<ApiMember kind="function" name="lv_draw_dave2d_lv_colour_fmt_to_d2_fmt" file="draw/renesas/dave2d/lv_draw_dave2d_utils.h" line="31" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/renesas/dave2d/lv_draw_dave2d_utils.h#L31">
  lv_draw_dave2d_lv_colour_fmt_to_d2_fmt [#lv_draw_dave2d_lv_colour_fmt_to_d2_fmt]

  ```c title=" " lineNumbers=1
  d2_u32 lv_draw_dave2d_lv_colour_fmt_to_d2_fmt(lv_color_format_t colour_format)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name            | Type                                 |
  | --------------- | ------------------------------------ |
  | `colour_format` | <ApiLink name="lv_color_format_t" /> |
</ApiMember>

<ApiMember kind="function" name="d2_framebuffer_from_layer" file="draw/renesas/dave2d/lv_draw_dave2d_utils.h" line="33" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/renesas/dave2d/lv_draw_dave2d_utils.h#L33">
  d2_framebuffer_from_layer [#d2_framebuffer_from_layer]

  ```c title=" " lineNumbers=1
  void d2_framebuffer_from_layer(d2_device *handle, lv_layer_t *layer)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name     | Type                                                 |
  | -------- | ---------------------------------------------------- |
  | `handle` | `d2_device *`                                        |
  | `layer`  | <ApiLink name="lv_layer_t" display="lv_layer_t *" /> |
</ApiMember>

<ApiMember kind="function" name="lv_draw_dave2d_is_dest_cf_supported" file="draw/renesas/dave2d/lv_draw_dave2d_utils.h" line="35" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/renesas/dave2d/lv_draw_dave2d_utils.h#L35">
  lv_draw_dave2d_is_dest_cf_supported [#lv_draw_dave2d_is_dest_cf_supported]

  ```c title=" " lineNumbers=1
  bool lv_draw_dave2d_is_dest_cf_supported(lv_color_format_t cf)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name | Type                                 |
  | ---- | ------------------------------------ |
  | `cf` | <ApiLink name="lv_color_format_t" /> |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includedBy="[&#x22;lv_draw_dave2d.h&#x22;]" />
