| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
#ifndef LV_PXP_UTILS_H |
| 13 |
#define LV_PXP_UTILS_H |
| 14 |
|
| 15 |
#ifdef __cplusplus |
| 16 |
extern "C" { |
| 17 |
#endif |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#include "../../../lv_conf_internal.h" |
| 23 |
|
| 24 |
#if LV_USE_PXP |
| 25 |
#if LV_USE_DRAW_PXP || LV_USE_ROTATE_PXP |
| 26 |
#include "fsl_pxp.h" |
| 27 |
#include "../../../misc/lv_color.h" |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
#if LV_USE_PXP_ASSERT |
| 34 |
#define PXP_ASSERT(expr) LV_ASSERT(expr) |
| 35 |
#else |
| 36 |
#define PXP_ASSERT(expr) |
| 37 |
#endif |
| 38 |
|
| 39 |
#define PXP_ASSERT_MSG(expr, msg) \ |
| 40 |
do { \ |
| 41 |
if(!(expr)) { \ |
| 42 |
LV_LOG_ERROR(msg); \ |
| 43 |
PXP_ASSERT(false); \ |
| 44 |
} \ |
| 45 |
} while(0) |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
pxp_output_pixel_format_t pxp_get_out_px_format(lv_color_format_t cf); |
| 60 |
|
| 61 |
pxp_as_pixel_format_t pxp_get_as_px_format(lv_color_format_t cf); |
| 62 |
|
| 63 |
#if LV_USE_DRAW_PXP |
| 64 |
pxp_ps_pixel_format_t pxp_get_ps_px_format(lv_color_format_t cf); |
| 65 |
|
| 66 |
bool pxp_buf_aligned(const void * buf, uint32_t stride); |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
#endif |
| 77 |
#endif |
| 78 |
#endif |
| 79 |
|
| 80 |
#ifdef __cplusplus |
| 81 |
} |
| 82 |
#endif |
| 83 |
|
| 84 |
#endif |