Lines Matching refs:buffer
4 - `lv_disp_draw_buf_t` contains internal graphic buffer(s) called draw buffer(s).
7 ## Draw buffer
9 Draw buffer(s) are simple array(s) that LVGL uses to render the screen content.
10 Once rendering is ready the content of the draw buffer is sent to the display using the `flush_cb` …
12 A draw buffer can be initialized via a `lv_disp_draw_buf_t` variable like this:
17 /*Static or global buffer(s). The second buffer is optional*/
21 /*Initialize `disp_buf` with the buffer(s). With only one buffer use NULL instead buf_2 */
27 …ve, the draw buffer may be smaller than the screen. In this case, larger areas are redrawn in smal…
30 A larger buffer results in better performance but above 1/10 screen sized buffer(s) there is no sig…
31 Therefore it's recommended to choose the size of the draw buffer(s) to be at least 1/10 screen size…
39 ### One buffer
40 If only one buffer is used LVGL draws the content of the screen into that draw buffer and sends it …
41 LVGL then needs to wait until the content of the buffer is sent to the display before drawing somet…
44 If two buffers are used LVGL can draw into one buffer while the content of the other buffer is sen…
49 …ll force LVGL to always redraw the whole screen. This works in both *one buffer* and *two buffers*…
55 … driver LVGL will draw directly into a **screen sized frame buffer**. That is the draw buffer(s) n…
57 With `direct_mode` the frame buffer always contains the current frame as it should be displayed on …
60 1. Display the frame buffer pointed by `color_p`
61 2. Copy the redrawn areas from `color_p` to the other buffer.
71 Once the buffer initialization is ready a `lv_disp_drv_t` display driver needs to be:
83 - `flush_cb` a callback function to copy a buffer's content to a specific area of the display.
99 - `direct_mode` draw directly into the frame buffer (see above)
104 …` a custom function to write the draw buffer. It can be used to store the pixels more compactly in…
119 disp_drv.draw_buf = &disp_buf; /*Set an initialized buffer*/
172 /* Write to the buffer as required for the display.
199 …available to avoid unwanted slowdowns. In this mode, LVGL draws into the buffer as if your screen …