# lv_g2d_buf_map.h (/api/draw/nxp/g2d/lv_g2d_buf_map_h)



<ApiSummary functions="6" structs="2" typedefs="2" />

Functions [#functions]

<ApiMember kind="function" name="g2d_create_buf_map" file="draw/nxp/g2d/lv_g2d_buf_map.h" line="60" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/g2d/lv_g2d_buf_map.h#L60">
  g2d_create_buf_map [#g2d_create_buf_map]

  ```c title=" " lineNumbers=1
  void g2d_create_buf_map(void)
  ```
</ApiMember>

<ApiMember kind="function" name="g2d_free_buf_map" file="draw/nxp/g2d/lv_g2d_buf_map.h" line="62" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/g2d/lv_g2d_buf_map.h#L62">
  g2d_free_buf_map [#g2d_free_buf_map]

  ```c title=" " lineNumbers=1
  void g2d_free_buf_map(void)
  ```
</ApiMember>

<ApiMember kind="function" name="g2d_insert_buf_map" file="draw/nxp/g2d/lv_g2d_buf_map.h" line="64" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/g2d/lv_g2d_buf_map.h#L64">
  g2d_insert_buf_map [#g2d_insert_buf_map]

  ```c title=" " lineNumbers=1
  void g2d_insert_buf_map(void *key, struct g2d_buf *value)
  ```

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

  | Name    | Type               |
  | ------- | ------------------ |
  | `key`   | `void *`           |
  | `value` | `struct g2d_buf *` |
</ApiMember>

<ApiMember kind="function" name="g2d_search_buf_map" file="draw/nxp/g2d/lv_g2d_buf_map.h" line="66" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/g2d/lv_g2d_buf_map.h#L66">
  g2d_search_buf_map [#g2d_search_buf_map]

  ```c title=" " lineNumbers=1
  struct g2d_buf * g2d_search_buf_map(void *key)
  ```

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

  | Name  | Type     |
  | ----- | -------- |
  | `key` | `void *` |
</ApiMember>

<ApiMember kind="function" name="g2d_free_item" file="draw/nxp/g2d/lv_g2d_buf_map.h" line="68" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/g2d/lv_g2d_buf_map.h#L68">
  g2d_free_item [#g2d_free_item]

  ```c title=" " lineNumbers=1
  void g2d_free_item(void *key)
  ```

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

  | Name  | Type     |
  | ----- | -------- |
  | `key` | `void *` |
</ApiMember>

<ApiMember kind="function" name="g2d_print_table" file="draw/nxp/g2d/lv_g2d_buf_map.h" line="70" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/g2d/lv_g2d_buf_map.h#L70">
  g2d_print_table [#g2d_print_table]

  ```c title=" " lineNumbers=1
  void g2d_print_table(void)
  ```
</ApiMember>

Structs [#structs]

<ApiMember kind="struct" name="lv_map_item">
  lv_map_item [#lv_map_item]

  Copyright 2024 NXP

  SPDX-License-Identifier: MIT

  | Member  | Type               | Description |
  | ------- | ------------------ | ----------- |
  | `key`   | `void *`           |             |
  | `value` | `struct g2d_buf *` |             |
</ApiMember>

<ApiMember kind="struct" name="lv_buf_map">
  lv_buf_map [#lv_buf_map]

  | Member          | Type                                                        | Description |
  | --------------- | ----------------------------------------------------------- | ----------- |
  | `items`         | <ApiLink name="lv_map_item_t" display="lv_map_item_t **" /> |             |
  | `overflow_list` | <ApiLink name="lv_array_t" display="lv_array_t **" />       |             |
  | `size`          | `int`                                                       |             |
  | `count`         | `int`                                                       |             |
</ApiMember>

Typedefs [#typedefs]

<ApiMember kind="typedef" name="lv_map_item_t" file="draw/nxp/g2d/lv_g2d_buf_map.h" line="45" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/g2d/lv_g2d_buf_map.h#L45">
  lv_map_item_t [#lv_map_item_t]

  ```c title=" " lineNumbers=1
  typedef struct lv_map_item lv_map_item_t
  ```

  Copyright 2024 NXP

  SPDX-License-Identifier: MIT
</ApiMember>

<ApiMember kind="typedef" name="lv_buf_map_t" file="draw/nxp/g2d/lv_g2d_buf_map.h" line="54" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/g2d/lv_g2d_buf_map.h#L54">
  lv_buf_map_t [#lv_buf_map_t]

  ```c title=" " lineNumbers=1
  typedef struct lv_buf_map lv_buf_map_t
  ```
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_array.h&#x22;, &#x22;string.h&#x22;]" transitiveIncludes="[&#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_types.h&#x22;]" />
