Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 36) sorted by relevance

12

/lvgl-3.7.0/src/misc/
Dlv_printf.c116 typedef void (*out_fct_type)(char character, void * buffer, size_t idx, size_t maxlen);
125 static inline void _out_buffer(char character, void * buffer, size_t idx, size_t maxlen) in _out_buffer() argument
128 ((char *)buffer)[idx] = character; in _out_buffer()
133 static inline void _out_null(char character, void * buffer, size_t idx, size_t maxlen) in _out_null() argument
136 LV_UNUSED(buffer); in _out_null()
168 static size_t _out_rev(out_fct_type out, char * buffer, size_t idx, size_t maxlen, const char * buf… in _out_rev() argument
177 out(' ', buffer, idx++, maxlen); in _out_rev()
183 out(buf[--len], buffer, idx++, maxlen); in _out_rev()
189 out(' ', buffer, idx++, maxlen); in _out_rev()
197 static size_t _ntoa_format(out_fct_type out, char * buffer, size_t idx, size_t maxlen, char * buf, … in _ntoa_format() argument
[all …]
Dlv_fs.c118 if(file_p->cache->buffer) { in lv_fs_close()
119 lv_mem_free(file_p->cache->buffer); in lv_fs_close()
138 char * buffer = file_p->cache->buffer; in lv_fs_read_cached() local
148 lv_memcpy(buf, buffer + buffer_offset, btr); in lv_fs_read_cached()
153 lv_memcpy(buf, buffer + buffer_offset, buffer_remaining_length); in lv_fs_read_cached()
163 …res = file_p->drv->read_cb(file_p->drv, file_p->file_d, (void *)buffer, buffer_size, &bytes_read_t… in lv_fs_read_cached()
168 lv_memcpy(buf + buffer_remaining_length, buffer, data_chunk_remaining); in lv_fs_read_cached()
181 if(buffer == NULL) { in lv_fs_read_cached()
182 file_p->cache->buffer = lv_mem_alloc(buffer_size); in lv_fs_read_cached()
183 LV_ASSERT_MALLOC(file_p->cache->buffer); in lv_fs_read_cached()
[all …]
Dlv_printf.h87 int lv_snprintf(char * buffer, size_t count, const char * format, ...) LV_FORMAT_ATTRIBUTE(3, 4);
88 int lv_vsnprintf(char * buffer, size_t count, const char * format, va_list va) LV_FORMAT_ATTRIBUTE(…
Dlv_fs.h94 void * buffer; member
/lvgl-3.7.0/docs/porting/
Ddisplay.md4 - `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…
[all …]
Dgpu.md6 It contains a pointer to a buffer where drawing should happen and a couple of callbacks to draw rec…
10 - `void * buf` Pointer to a buffer to draw into
20 - `void (*draw_bg)()` Replace the buffer with a rect without decoration like radius or borders.
134         /*Got the first pixel on the buffer*/
135 …lv_coord_t dest_stride = lv_area_get_width(draw_ctx->buf_area); /*Width of the destination buffer*/
139         /*Make the blend area relative to the buffer*/      
/lvgl-3.7.0/src/extra/libs/png/
Dlodepng.c282 static ucvector ucvector_init(unsigned char* buffer, size_t size) { in ucvector_init() argument
284 v.data = buffer; in ucvector_init()
320 static unsigned lodepng_read32bitInt(const unsigned char* buffer) { in lodepng_read32bitInt() argument
321 return (((unsigned)buffer[0] << 24u) | ((unsigned)buffer[1] << 16u) | in lodepng_read32bitInt()
322 ((unsigned)buffer[2] << 8u) | (unsigned)buffer[3]); in lodepng_read32bitInt()
328 static void lodepng_set32bitInt(unsigned char* buffer, unsigned value) { in lodepng_set32bitInt() argument
329 buffer[0] = (unsigned char)((value >> 24) & 0xff); in lodepng_set32bitInt()
330 buffer[1] = (unsigned char)((value >> 16) & 0xff); in lodepng_set32bitInt()
331 buffer[2] = (unsigned char)((value >> 8) & 0xff); in lodepng_set32bitInt()
332 buffer[3] = (unsigned char)((value ) & 0xff); in lodepng_set32bitInt()
[all …]
Dlodepng.h992 unsigned lodepng_save_file(const unsigned char* buffer, size_t buffersize, const char* filename);
1032 unsigned load_file(std::vector<unsigned char>& buffer, const std::string& filename);
1038 unsigned save_file(const std::vector<unsigned char>& buffer, const std::string& filename);
/lvgl-3.7.0/src/extra/libs/tiny_ttf/
Dlv_tiny_ttf.c150 uint8_t * buffer = NULL; in ttf_get_glyph_bitmap_cb() local
151 lv_lru_get(dsc->bitmap_cache, &cache_key, sizeof(cache_key), (void **)&buffer); in ttf_get_glyph_bitmap_cb()
152 if(buffer) { in ttf_get_glyph_bitmap_cb()
153 return buffer; in ttf_get_glyph_bitmap_cb()
158 buffer = lv_mem_alloc(szb); in ttf_get_glyph_bitmap_cb()
159 if(!buffer) { in ttf_get_glyph_bitmap_cb()
163 lv_memset(buffer, 0, szb); in ttf_get_glyph_bitmap_cb()
164 if(LV_LRU_OK != lv_lru_set(dsc->bitmap_cache, &cache_key, sizeof(cache_key), buffer, szb)) { in ttf_get_glyph_bitmap_cb()
166 lv_mem_free(buffer); in ttf_get_glyph_bitmap_cb()
170 stbtt_MakeGlyphBitmap(info, buffer, w, h, stride, dsc->scale, dsc->scale, g1); in ttf_get_glyph_bitmap_cb()
[all …]
Dstb_truetype_htcw.h377 char buffer[24 << 20];
387 fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb"));
388 stbtt_InitFont(&font, buffer, 0);
4330 unsigned char buffer[STBTT_MAX_OVERSAMPLE]; local
4333 STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze
4337 STBTT_memset(buffer, 0, kernel_width);
4345 total += pixels[i] - buffer[i & STBTT__OVER_MASK];
4346 buffer[(i + kernel_width) & STBTT__OVER_MASK] = pixels[i];
4352 total += pixels[i] - buffer[i & STBTT__OVER_MASK];
4353 buffer[(i + kernel_width) & STBTT__OVER_MASK] = pixels[i];
[all …]
/lvgl-3.7.0/docs/widgets/core/
Dcanvas.md17 The Canvas needs a buffer in which stores the drawn image.
18 To assign a buffer to a Canvas, use `lv_canvas_set_buffer(canvas, buffer, width, height, LV_IMG_CF_…
19 Where `buffer` is a static buffer (not just a local variable) to hold the image of the canvas.
21 `static lv_color_t buffer[LV_CANVAS_BUF_SIZE_TRUE_COLOR(width, height)]`.
22 `LV_CANVAS_BUF_SIZE_...` macros help to determine the size of the buffer with different color forma…
43 The color format of the buffer and the canvas need to match.
Dlabel.md15 This will allocate a buffer dynamically, and the provided string will be copied into that buffer.
20 Labels are able to show text from a static character buffer. To do so, use `lv_label_set_text_stat…
21 In this case, the text is not stored in the dynamic memory and the given buffer is used directly in…
23 …t_static` (except when used with `LV_LABEL_LONG_DOT`, as it modifies the buffer in-place), as they…
41 Note that `LV_LABEL_LONG_DOT` manipulates the text buffer in-place in order to add/remove the dots.
42 When `lv_label_set_text` or `lv_label_set_array_text` are used, a separate buffer is allocated and …
43 This is not the case with `lv_label_set_text_static`. The buffer you pass to `lv_label_set_text_sta…
/lvgl-3.7.0/src/extra/libs/gif/
Dgifdec.c491 render_frame_rect(gd_GIF *gif, uint8_t *buffer) in render_frame_rect() argument
502 buffer[(i+k)*4 + 0] = *(color + 2); in render_frame_rect()
503 buffer[(i+k)*4 + 1] = *(color + 1); in render_frame_rect()
504 buffer[(i+k)*4 + 2] = *(color + 0); in render_frame_rect()
505 buffer[(i+k)*4 + 3] = 0xFF; in render_frame_rect()
508 buffer[(i+k)*3 + 0] = c.full & 0xff; in render_frame_rect()
509 buffer[(i+k)*3 + 1] = (c.full >> 8) & 0xff; in render_frame_rect()
510 buffer[(i+k)*3 + 2] = 0xff; in render_frame_rect()
513 buffer[(i+k)*2 + 0] = c.full; in render_frame_rect()
514 buffer[(i+k)*2 + 1] = 0xff; in render_frame_rect()
[all …]
Dgifdec.h52 void gd_render_frame(gd_GIF *gif, uint8_t *buffer);
/lvgl-3.7.0/docs/overview/
Ddrawing.md7 …lay but rather to first draw on an internal draw buffer. When a drawing (rendering) is ready that
9 The draw buffer can be smaller than a display's size. LVGL will simply render in "tiles" that fit i…
13 2. It's faster to modify a buffer in internal RAM and finally write one pixel only once than readin…
17 …show on the display, and rendering happens to the other (inactive) frame buffer, and they are swap…
18 …rame buffers (which usually requires external RAM) but only smaller draw buffer(s) that can easily…
27 …d and new area into a buffer, called an *Invalid area buffer*. For optimization, in some cases, ob…
34 …ined area, if it's smaller than the *draw buffer*, then simply renders the area's content into the…
35 If the area doesn't fit into the buffer, draw as many lines as possible to the *draw buffer*.
37 - If the area was larger than the buffer, render the remaining parts too.
44 1. **One buffer** - LVGL needs to wait for `lv_disp_flush_ready()` (called from `flush_cb`) before …
[all …]
/lvgl-3.7.0/docs/others/
Dsnapshot.md46buffer is not enough, which may happen when object size changes. It's recommended to use API `lv_s…
/lvgl-3.7.0/docs/get-started/platforms/
Drenesas.md54 /*Initialize `disp_buf` with the buffer(s). With only one buffer use NULL instead buf_2 */
62 /*Set a display buffer*/
65 /*Used to copy the buffer's content to the display*/
115 - The last step is to create a function to output the frame buffer to your LCD. The specifics of th…
Dnxp.md45 - First step is to recolor/rotate the image to a temporary buffer (statically allocated)
139 …requirement for a pixel depends on the specific pixel format. Both buffer address and buffer stride
140 …must be aligned. As general rule, the alignment is set to 16 pixels. This makes the buffer address…
142 …- For pixel engine (PE) destination, the alignment should be 64 bytes for all tiled (4x4) buffer l…
143 …The pixel engine has no additional alignment requirement for linear buffer layouts (`VG_LITE_LINEA…
152 …to 0, then no tessellation buffer is created, in which case VGLite is initialized only for blittin…
170 - src/draw/nxp/vglite/lv_vglite_buf.c[.h]: init/get vglite buffer
/lvgl-3.7.0/docs/intro/
Dindex.md17 - Single frame buffer operation even with advanced graphic effects
37 …<li> Display buffer:  &gt; <em>"Horizontal resolution"</em> pixels (&gt; 10 &times; <em>"Horizonta…
38 <li> One frame buffer in the MCU or in an external display controller</li>
127 - Linux with frame buffer device such as /dev/fb0. This includes Single-board computers like the Ra…
196 - Increase the size of the display buffer
197 - Use two display buffers and flush the buffer with DMA (or similar peripheral) in the background
200 - Keep the display buffer in internal RAM (not in external SRAM) because LVGL uses it a lot and it …
208 - Lower the size of the *Display buffer*
/lvgl-3.7.0/
DREADME_zh.md46 * 即便仅有[单缓冲区(frame buffer)](https://docs.lvgl.io/master/porting/display.html)的情况下,也可保证渲染如丝般顺滑
84 <td> <strong>Draw buffer</strong></td>
104 - [Linux frame buffer](https://blog.lvgl.io/2018-01-03/linux_fb) (/dev/fb)
DREADME_pt_BR.md41 …erização suave mesmo com um [buffer de quadro único](https://docs.lvgl.io/master/porting/display.h…
94 <strong>Draw buffer</strong>
117 - [Linux frame buffer](https://blog.lvgl.io/2018-01-03/linux_fb) (/dev/fb)
DREADME.md44 * Smooth rendering even with a [single frame buffer](https://docs.lvgl.io/master/porting/display.ht…
82 <td> <strong>Draw buffer</strong></td>
101 - [Linux frame buffer](https://blog.lvgl.io/2018-01-03/linux_fb) (/dev/fb)
/lvgl-3.7.0/src/extra/libs/freetype/
Dlv_freetype.c340 return (const uint8_t *)(current_face->glyph->bitmap.buffer); in get_glyph_bitmap_cb_cache()
346 return (const uint8_t *)sbit->buffer; in get_glyph_bitmap_cb_cache()
349 return (const uint8_t *)glyph_bitmap->bitmap.buffer; in get_glyph_bitmap_cb_cache()
531 return (const uint8_t *)(face->glyph->bitmap.buffer); in get_glyph_bitmap_cb_nocache()
/lvgl-3.7.0/docs/get-started/
Dquick-overview.md25 - Create a draw buffer: LVGL will render the graphics here first, and send the rendered image to th…
26 The buffer size can be set freely but 1/10 screen size is a good starting point.
29 static lv_color_t buf1[DISP_HOR_RES * DISP_VER_RES / 10]; /*Declare a buffer
30 …&draw_buf, buf1, NULL, MY_DISP_HOR_RES * MY_DISP_VER_SER / 10); /*Initialize the display buffer.*/
37 disp_drv.draw_buf = &draw_buf; /*Assign the buffer to the display*/
/lvgl-3.7.0/tests/
DREADME.md47 If the compare fails `lvgl/test_screenshot_error.h` is created with the content of the frame buffer

12