5#ifndef LV_DRAW_SDL_UTILS_H
6#define LV_DRAW_SDL_UTILS_H
23#include LV_GPU_SDL_INCLUDE_PATH
37void _lv_draw_sdl_utils_init();
39void _lv_draw_sdl_utils_deinit();
41void lv_area_to_sdl_rect(
const lv_area_t * in, SDL_Rect * out);
43void lv_color_to_sdl_color(
const lv_color_t * in, SDL_Color * out);
45void lv_area_zoom_to_sdl_rect(
const lv_area_t * in, SDL_Rect * out, uint16_t zoom,
const lv_point_t * pivot);
47SDL_Palette * lv_sdl_alloc_palette_for_bpp(
const uint8_t * mapping, uint8_t bpp);
49SDL_Surface * lv_sdl_create_opa_surface(lv_opa_t * opa, lv_coord_t width, lv_coord_t height, lv_coord_t stride);
51SDL_Texture * lv_sdl_create_opa_texture(SDL_Renderer * renderer, lv_opa_t * pixels, lv_coord_t width,
52 lv_coord_t height, lv_coord_t stride);
54void lv_sdl_to_8bpp(uint8_t * dest,
const uint8_t * src,
int width,
int height,
int stride, uint8_t bpp);