Lines Matching full:h
9 #include <stddef.h>
10 #include <string.h>
11 #include "lv_img_buf.h"
12 #include "lv_draw_img.h"
13 #include "../misc/lv_math.h"
14 #include "../misc/lv_log.h"
15 #include "../misc/lv_mem.h"
279 lv_img_dsc_t * lv_img_buf_alloc(lv_coord_t w, lv_coord_t h, lv_img_cf_t cf) in lv_img_buf_alloc() argument
289 dsc->data_size = lv_img_buf_get_img_size(w, h, cf); in lv_img_buf_alloc()
306 dsc->header.h = h; in lv_img_buf_alloc()
321 uint32_t lv_img_buf_get_img_size(lv_coord_t w, lv_coord_t h, lv_img_cf_t cf) in lv_img_buf_get_img_size() argument
325 return LV_IMG_BUF_SIZE_TRUE_COLOR(w, h); in lv_img_buf_get_img_size()
328 return LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h); in lv_img_buf_get_img_size()
330 return LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h); in lv_img_buf_get_img_size()
332 return LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h); in lv_img_buf_get_img_size()
334 return LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h); in lv_img_buf_get_img_size()
336 return LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h); in lv_img_buf_get_img_size()
338 return LV_IMG_BUF_SIZE_ALPHA_8BIT(w, h); in lv_img_buf_get_img_size()
340 return LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h); in lv_img_buf_get_img_size()
342 return LV_IMG_BUF_SIZE_INDEXED_2BIT(w, h); in lv_img_buf_get_img_size()
344 return LV_IMG_BUF_SIZE_INDEXED_4BIT(w, h); in lv_img_buf_get_img_size()
346 return LV_IMG_BUF_SIZE_INDEXED_8BIT(w, h); in lv_img_buf_get_img_size()
352 void _lv_img_buf_get_transformed_area(lv_area_t * res, lv_coord_t w, lv_coord_t h, int16_t angle, u… in _lv_img_buf_get_transformed_area() argument
360 res->y2 = h - 1; in _lv_img_buf_get_transformed_area()
367 {0, h}, in _lv_img_buf_get_transformed_area()
368 {w, h}, in _lv_img_buf_get_transformed_area()
386 res->y2 = h - 1; in _lv_img_buf_get_transformed_area()