/lvgl-3.6.0/src/draw/ |
D | lv_img_buf.c | 46 …if(dsc->header.cf == LV_IMG_CF_TRUE_COLOR || dsc->header.cf == LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED || in lv_img_buf_get_px_color() 47 dsc->header.cf == LV_IMG_CF_TRUE_COLOR_ALPHA || dsc->header.cf == LV_IMG_CF_RGB565A8) { in lv_img_buf_get_px_color() 48 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_get_px_color() 55 else if(dsc->header.cf == LV_IMG_CF_INDEXED_1BIT) { in lv_img_buf_get_px_color() 66 else if(dsc->header.cf == LV_IMG_CF_INDEXED_2BIT) { in lv_img_buf_get_px_color() 77 else if(dsc->header.cf == LV_IMG_CF_INDEXED_4BIT) { in lv_img_buf_get_px_color() 88 else if(dsc->header.cf == LV_IMG_CF_INDEXED_8BIT) { in lv_img_buf_get_px_color() 93 else if(dsc->header.cf == LV_IMG_CF_ALPHA_1BIT || dsc->header.cf == LV_IMG_CF_ALPHA_2BIT || in lv_img_buf_get_px_color() 94 dsc->header.cf == LV_IMG_CF_ALPHA_4BIT || dsc->header.cf == LV_IMG_CF_ALPHA_8BIT) { in lv_img_buf_get_px_color() 104 if(dsc->header.cf == LV_IMG_CF_TRUE_COLOR_ALPHA) { in lv_img_buf_get_px_alpha() [all …]
|
D | lv_draw_img.c | 94 uint8_t lv_img_cf_get_px_size(lv_img_cf_t cf) in lv_img_cf_get_px_size() argument 98 switch(cf) { in lv_img_cf_get_px_size() 139 bool lv_img_cf_is_chroma_keyed(lv_img_cf_t cf) in lv_img_cf_is_chroma_keyed() argument 143 switch(cf) { in lv_img_cf_is_chroma_keyed() 162 bool lv_img_cf_has_alpha(lv_img_cf_t cf) in lv_img_cf_has_alpha() argument 166 switch(cf) { in lv_img_cf_has_alpha() 250 lv_img_cf_t cf; local 251 if(lv_img_cf_is_chroma_keyed(cdsc->dec_dsc.header.cf)) cf = LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED; 252 else if(LV_IMG_CF_ALPHA_8BIT == cdsc->dec_dsc.header.cf) cf = LV_IMG_CF_ALPHA_8BIT; 253 else if(LV_IMG_CF_RGB565A8 == cdsc->dec_dsc.header.cf) cf = LV_IMG_CF_RGB565A8; [all …]
|
D | lv_img_decoder.c | 279 lv_img_cf_t cf = ((lv_img_dsc_t *)src)->header.cf; in lv_img_decoder_built_in_info() local 280 if(cf < CF_BUILT_IN_FIRST || cf > CF_BUILT_IN_LAST) return LV_RES_INV; in lv_img_decoder_built_in_info() 284 header->cf = ((lv_img_dsc_t *)src)->header.cf; in lv_img_decoder_built_in_info() 302 if(header->cf < CF_BUILT_IN_FIRST || header->cf > CF_BUILT_IN_LAST) return LV_RES_INV; in lv_img_decoder_built_in_info() 311 header->cf = LV_IMG_CF_ALPHA_1BIT; in lv_img_decoder_built_in_info() 362 lv_img_cf_t cf = dsc->header.cf; in lv_img_decoder_built_in_open() local 364 if(cf == LV_IMG_CF_ALPHA_8BIT || cf == LV_IMG_CF_RGB565A8) { in lv_img_decoder_built_in_open() 374 len *= cf == LV_IMG_CF_RGB565A8 ? 3 : 1; in lv_img_decoder_built_in_open() 390 else if(cf == LV_IMG_CF_TRUE_COLOR || cf == LV_IMG_CF_TRUE_COLOR_ALPHA || in lv_img_decoder_built_in_open() 391 cf == LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED) { in lv_img_decoder_built_in_open() [all …]
|
D | lv_draw_img.h | 84 uint8_t lv_img_cf_get_px_size(lv_img_cf_t cf); 91 bool lv_img_cf_is_chroma_keyed(lv_img_cf_t cf); 98 bool lv_img_cf_has_alpha(lv_img_cf_t cf);
|
D | lv_draw_transform.c | 39 …lv_coord_t src_stride, const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_o… in lv_draw_transform() argument 47 …draw_ctx->draw_transform(draw_ctx, dest_area, src_buf, src_w, src_h, src_stride, draw_dsc, cf, cbu… in lv_draw_transform()
|
D | lv_img_buf.h | 122 uint32_t cf : 5; /*Color format: See `lv_img_color_format_t`*/ member 128 uint32_t cf : 5; /*Color format: See `lv_img_color_format_t`*/ member 158 lv_img_dsc_t * lv_img_buf_alloc(lv_coord_t w, lv_coord_t h, lv_img_cf_t cf); 227 uint32_t lv_img_buf_get_img_size(lv_coord_t w, lv_coord_t h, lv_img_cf_t cf);
|
D | lv_draw_transform.h | 34 …lv_coord_t src_stride, const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_o…
|
/lvgl-3.6.0/src/extra/others/snapshot/ |
D | lv_snapshot.c | 46 uint32_t lv_snapshot_buf_size_needed(lv_obj_t * obj, lv_img_cf_t cf) in lv_snapshot_buf_size_needed() argument 49 switch(cf) { in lv_snapshot_buf_size_needed() 70 uint8_t px_size = lv_img_cf_get_px_size(cf); in lv_snapshot_buf_size_needed() 84 lv_res_t lv_snapshot_take_to_buf(lv_obj_t * obj, lv_img_cf_t cf, lv_img_dsc_t * dsc, void * buf, ui… in lv_snapshot_take_to_buf() argument 90 switch(cf) { in lv_snapshot_take_to_buf() 102 if(lv_snapshot_buf_size_needed(obj, cf) > buff_size) in lv_snapshot_take_to_buf() 125 lv_disp_drv_use_generic_set_px_cb(&driver, cf); in lv_snapshot_take_to_buf() 153 dsc->header.cf = cf; in lv_snapshot_take_to_buf() 164 lv_img_dsc_t * lv_snapshot_take(lv_obj_t * obj, lv_img_cf_t cf) in lv_snapshot_take() argument 167 uint32_t buff_size = lv_snapshot_buf_size_needed(obj, cf); in lv_snapshot_take() [all …]
|
D | lv_snapshot.h | 42 lv_img_dsc_t * lv_snapshot_take(lv_obj_t * obj, lv_img_cf_t cf); 60 uint32_t lv_snapshot_buf_size_needed(lv_obj_t * obj, lv_img_cf_t cf); 72 lv_res_t lv_snapshot_take_to_buf(lv_obj_t * obj, lv_img_cf_t cf, lv_img_dsc_t * dsc, void * buf, ui…
|
/lvgl-3.6.0/src/draw/nxp/pxp/ |
D | lv_draw_pxp_blend.c | 93 const lv_draw_img_dsc_t * dsc, lv_img_cf_t cf); 110 const lv_draw_img_dsc_t * dsc, lv_img_cf_t cf); 127 const lv_draw_img_dsc_t * dsc, lv_img_cf_t cf); 296 const lv_draw_img_dsc_t * dsc, lv_img_cf_t cf) in lv_gpu_nxp_pxp_blit_transform() argument 302 …f(dsc->opa >= (lv_opa_t)LV_OPA_MAX && !lv_img_cf_has_alpha(cf) && !lv_img_cf_is_chroma_keyed(cf)) { in lv_gpu_nxp_pxp_blit_transform() 303 … lv_pxp_blit_cover(dest_buf, dest_area, dest_stride, src_buf, src_area, src_stride, dsc, cf); in lv_gpu_nxp_pxp_blit_transform() 308 … lv_pxp_blit_opa(dest_buf, dest_area, dest_stride, src_buf, src_area, src_stride, dsc, cf); in lv_gpu_nxp_pxp_blit_transform() 313 lv_pxp_blit_cf(dest_buf, dest_area, dest_stride, src_buf, src_area, src_stride, dsc, cf); in lv_gpu_nxp_pxp_blit_transform() 349 const lv_draw_img_dsc_t * dsc, lv_img_cf_t cf) in lv_pxp_blit_opa() argument 358 …lit_cover((lv_color_t *)temp_buf, &temp_area, temp_stride, src_buf, src_area, src_stride, dsc, cf); in lv_pxp_blit_opa() [all …]
|
D | lv_draw_pxp.c | 65 … const lv_area_t * coords, const uint8_t * map_p, lv_img_cf_t cf); 176 const lv_area_t * coords, const uint8_t * map_p, lv_img_cf_t cf) in lv_draw_pxp_img_decoded() argument 182 lv_draw_sw_img_decoded(draw_ctx, dsc, coords, map_p, cf); in lv_draw_pxp_img_decoded() 188 lv_draw_sw_img_decoded(draw_ctx, dsc, coords, map_p, cf); in lv_draw_pxp_img_decoded() 240 || lv_img_cf_has_alpha(cf) in lv_draw_pxp_img_decoded() 243 lv_draw_sw_img_decoded(draw_ctx, dsc, coords, map_p, cf); in lv_draw_pxp_img_decoded() 258 dsc, cf); in lv_draw_pxp_img_decoded()
|
/lvgl-3.6.0/src/draw/sw/ |
D | lv_draw_sw_img.c | 30 …lv_coord_t src_stride, const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_o… 48 lv_img_cf_t cf) in lv_draw_sw_img_decoded() argument 66 …if(!mask_any && !transform && cf == LV_IMG_CF_TRUE_COLOR && draw_dsc->recolor_opa == LV_OPA_TRANSP… in lv_draw_sw_img_decoded() 72 else if(!mask_any && !transform && cf == LV_IMG_CF_ALPHA_8BIT) { in lv_draw_sw_img_decoded() 86 …else if(!mask_any && !transform && cf == LV_IMG_CF_RGB565A8 && draw_dsc->recolor_opa == LV_OPA_TRA… in lv_draw_sw_img_decoded() 134 lv_draw_mask_res_t mask_res_def = (cf != LV_IMG_CF_TRUE_COLOR || draw_dsc->angle || in lv_draw_sw_img_decoded() 146 draw_dsc, cf, rgb_buf, mask_buf); in lv_draw_sw_img_decoded() 149 … convert_cb(&transform_area, src_buf, src_w, src_h, src_w, draw_dsc, cf, rgb_buf, mask_buf); in lv_draw_sw_img_decoded() 205 …lv_coord_t src_stride, const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_o… in convert_cb() argument 215 if(cf == LV_IMG_CF_TRUE_COLOR || cf == LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED) { in convert_cb() [all …]
|
D | lv_draw_sw_transform.c | 56 int32_t x_end, lv_color_t * cbuf, uint8_t * abuf, lv_img_cf_t cf); 66 int32_t x_end, lv_color_t * cbuf, uint8_t * abuf, lv_img_cf_t cf); 82 … const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_opa_t * abuf) in lv_draw_sw_transform() argument 129 switch(cf) { in lv_draw_sw_transform() 135 …c_buf, src_w, src_h, src_stride, xs_ups, ys_ups, xs_step_256, ys_step_256, dest_w, cbuf, abuf, cf); in lv_draw_sw_transform() 148 …c_buf, src_w, src_h, src_stride, xs_ups, ys_ups, xs_step_256, ys_step_256, dest_w, cbuf, abuf, cf); in lv_draw_sw_transform() 162 int32_t x_end, lv_color_t * cbuf, uint8_t * abuf, lv_img_cf_t cf) in rgb_no_aa() argument 197 if(cf == LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED && cbuf[x].full == ck.full) { in rgb_no_aa() 270 int32_t x_end, lv_color_t * cbuf, uint8_t * abuf, lv_img_cf_t cf) in argb_and_rgb_aa() argument 277 switch(cf) { in argb_and_rgb_aa() [all …]
|
D | lv_draw_sw.h | 67 lv_img_cf_t cf); 81 … const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_opa_t * abuf);
|
/lvgl-3.6.0/src/widgets/ |
D | lv_canvas.c | 66 void lv_canvas_set_buffer(lv_obj_t * obj, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf) in lv_canvas_set_buffer() argument 73 canvas->dsc.header.cf = cf; in lv_canvas_set_buffer() 150 uint32_t px_size = lv_img_cf_get_px_size(canvas->dsc.header.cf) >> 3; in lv_canvas_copy_buf() 194 &draw_dsc, canvas->dsc.header.cf, cbuf, abuf); in lv_canvas_transform() 256 bool has_alpha = lv_img_cf_has_alpha(canvas->dsc.header.cf); in lv_canvas_blur_hor() 258 lv_coord_t line_w = lv_img_buf_get_img_size(canvas->dsc.header.w, 1, canvas->dsc.header.cf); in lv_canvas_blur_hor() 266 line_img.header.cf = canvas->dsc.header.cf; in lv_canvas_blur_hor() 384 bool has_alpha = lv_img_cf_has_alpha(canvas->dsc.header.cf); in lv_canvas_blur_ver() 385 lv_coord_t col_w = lv_img_buf_get_img_size(1, canvas->dsc.header.h, canvas->dsc.header.cf); in lv_canvas_blur_ver() 393 line_img.header.cf = canvas->dsc.header.cf; in lv_canvas_blur_ver() [all …]
|
/lvgl-3.6.0/src/draw/arm2d/ |
D | lv_gpu_arm2d.c | 171 uint8_t px_size_byte = cf == LV_IMG_CF_TRUE_COLOR_ALPHA \ 440 lv_img_cf_t cf, 469 lv_img_cf_t cf); 905 lv_img_cf_t cf) in lv_draw_arm2d_img_decoded() argument 923 if(lv_img_cf_is_chroma_keyed(cf)) cf = LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED; in lv_draw_arm2d_img_decoded() 924 else if(cf == LV_IMG_CF_ALPHA_8BIT) {} in lv_draw_arm2d_img_decoded() 925 else if(cf == LV_IMG_CF_RGB565A8) {} in lv_draw_arm2d_img_decoded() 926 else if(lv_img_cf_has_alpha(cf)) cf = LV_IMG_CF_TRUE_COLOR_ALPHA; in lv_draw_arm2d_img_decoded() 927 else cf = LV_IMG_CF_TRUE_COLOR; in lv_draw_arm2d_img_decoded() 931 …if(!mask_any && !transform && cf == LV_IMG_CF_TRUE_COLOR && draw_dsc->recolor_opa == LV_OPA_TRANSP… in lv_draw_arm2d_img_decoded() [all …]
|
/lvgl-3.6.0/src/draw/renesas/ |
D | lv_gpu_d2_ra6m3.c | 71 static d2_s32 lv_port_gpu_cf_lv_to_d2(lv_img_cf_t cf) argument 76 switch(cf & ~(1 << 5)) { 78 switch(cf) { 126 return d2_cf | (cf & (1 << 5) ? d2_mode_rle : 0); 132 static bool lv_port_gpu_cf_fb_valid(d2_s32 cf) argument 134 if((cf & (d2_mode_rle | d2_mode_clut)) || cf < 0) { 138 switch(cf) { 151 static bool lv_port_gpu_cf_has_alpha(d2_s32 cf) argument 153 switch(cf & ~(d2_mode_clut | d2_mode_rle)) { 175 static bool lv_port_gpu_cf_is_alpha(d2_s32 cf) argument [all …]
|
/lvgl-3.6.0/src/extra/libs/png/ |
D | lv_png.c | 94 header->cf = LV_IMG_CF_TRUE_COLOR_ALPHA; in decoder_info() 112 if(img_dsc->header.cf) { in decoder_info() 113 header->cf = img_dsc->header.cf; /*Save the color format*/ in decoder_info() 116 header->cf = LV_IMG_CF_TRUE_COLOR_ALPHA; in decoder_info()
|
/lvgl-3.6.0/examples/libs/gif/ |
D | img_bulb_gif.c | 1126 .header.cf = LV_IMG_CF_RAW,
|
/lvgl-3.6.0/examples/assets/ |
D | img_cogwheel_indexed16.c | 138 .header.cf = LV_IMG_CF_INDEXED_4BIT,
|
D | img_cogwheel_alpha16.c | 121 .header.cf = LV_IMG_CF_ALPHA_4BIT,
|
/lvgl-3.6.0/demos/benchmark/assets/ |
D | img_benchmark_cogwheel_alpha16.c | 121 .header.cf = LV_IMG_CF_ALPHA_4BIT,
|
D | img_benchmark_cogwheel_indexed16.c | 138 .header.cf = LV_IMG_CF_INDEXED_4BIT,
|
D | img_benchmark_cogwheel_rgb565a8.c | 217 .header.cf = LV_IMG_CF_RGB565A8,
|
/lvgl-3.6.0/examples/libs/png/ |
D | img_wink_png.c | 344 .header.cf = LV_IMG_CF_RAW_ALPHA,
|