lv_draw_sw_arm2d.h

API reference for lv_draw_sw_arm2d.h

Report on GitHub

Functions

arm_2d_helper_swap_rgb16

 
void arm_2d_helper_swap_rgb16(uint16_t *phwBuffer, uint32_t wCount)
Parameters
NameType
phwBufferuint16_t *
wCountuint32_t

lv_draw_sw_rgb565_swap_helium

 
static lv_result_t lv_draw_sw_rgb565_swap_helium(void *buf, uint32_t buf_size_px)
Parameters
NameType
bufvoid *
buf_size_pxuint32_t

lv_draw_sw_image_helium

< Fully transparent if opa <= LV_OPA_MIN

< Log if something unwanted happened but didn't caused problem.

< Log if something unwanted happened but didn't caused problem.

< Log only critical issues, when system may fail.

< Halt by default

< Fully cover if opa >= LV_OPA_MAX

< Log only critical issues, when system may fail.

< Halt by default

< Fully cover if opa >= LV_OPA_MAX

 
static lv_result_t lv_draw_sw_image_helium(bool is_transform, lv_color_format_t src_cf, const uint8_t *src_buf, const lv_area_t *coords, int32_t src_stride, const lv_area_t *des_area, lv_draw_task_t *t, const lv_draw_image_dsc_t *draw_dsc)
Parameters

while

 
while(0)
Parameters
NameType
``0

lv_draw_sw_image_recolor_rgb565

 
static lv_result_t lv_draw_sw_image_recolor_rgb565(const uint8_t *src_buf, const lv_area_t *blend_area, lv_color_t color, lv_opa_t opa)
Parameters

lv_draw_sw_image_recolor_rgb888

 
static lv_result_t lv_draw_sw_image_recolor_rgb888(const uint8_t *src_buf, const lv_area_t *blend_area, lv_color_t color, lv_opa_t opa, lv_color_format_t src_cf)
Parameters

Macros

ARM_2D_IMPL

 
#define __ARM_2D_IMPL__

LV_DRAW_SW_RGB565_SWAP

 
#define LV_DRAW_SW_RGB565_SWAP(__buf_ptr, __buf_size_px) \
    lv_draw_sw_rgb565_swap_helium((__buf_ptr), (__buf_size_px))

LV_DRAW_SW_IMAGE

 
#define LV_DRAW_SW_IMAGE(__transformed, __cf, __src_buf, __img_coords, __src_stride, __blend_area, __draw_task, __draw_dsc) \
    lv_draw_sw_image_helium(   (__transformed), \
                                        (__cf), \
                                        (uint8_t *)(__src_buf), \
                                        (__img_coords), \
                                        (__src_stride), \
                                        (__blend_area), \
                                        (__draw_task), \
                                        (__draw_dsc))

LV_DRAW_SW_RGB565_RECOLOR

 
#define LV_DRAW_SW_RGB565_RECOLOR(__src_buf, __blend_area, __color, __opa) \
    lv_draw_sw_image_recolor_rgb565(   (__src_buf), \
                                                &(__blend_area), \
                                                (__color), \
                                                (__opa))

LV_DRAW_SW_RGB888_RECOLOR

 
#define LV_DRAW_SW_RGB888_RECOLOR(__src_buf, __blend_area, __color, __opa, __cf) \
    lv_draw_sw_image_recolor_rgb888(   (__src_buf), \
                                                &(__blend_area), \
                                                (__color), \
                                                (__opa), \
                                                (__cf))

__RECOLOUR_BEGIN

 
#define __RECOLOUR_BEGIN()

__RECOLOUR_END

 
#define __RECOLOUR_END() \
    } while(0); \
            if (NULL != rgb_tmp_buf) { \
                lv_free(rgb_tmp_buf); \
            } \
        } while(0);

Variables

result

 
return result

Dependencies

How is this guide?

Last updated on

On this page