2019-11-01 20:45:29 +08:00
|
|
|
# SDL based emulated display configuration options
|
2018-10-17 03:35:06 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2018 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig SDL_DISPLAY
|
|
|
|
bool "SDL based emulated display"
|
2022-08-08 23:18:55 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ZEPHYR_SDL_DC_ENABLED
|
2018-10-17 03:35:06 +08:00
|
|
|
select HAS_SDL
|
|
|
|
help
|
|
|
|
Enable SDL based emulated display compliant with display driver API.
|
|
|
|
|
|
|
|
if SDL_DISPLAY
|
|
|
|
|
2019-07-20 01:45:21 +08:00
|
|
|
choice SDL_DISPLAY_DEFAULT_PIXEL_FORMAT
|
|
|
|
prompt "Default pixel format"
|
|
|
|
default SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_ARGB_8888
|
|
|
|
help
|
|
|
|
Default pixel format to be used by the display
|
|
|
|
|
|
|
|
config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_ARGB_8888
|
|
|
|
bool "ARGB 8888"
|
|
|
|
|
|
|
|
config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_RGB_888
|
|
|
|
bool "RGB 888"
|
|
|
|
|
|
|
|
config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01
|
|
|
|
bool "Mono Black=0"
|
|
|
|
|
|
|
|
config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10
|
|
|
|
bool "Mono Black=1"
|
|
|
|
|
2020-01-17 06:53:20 +08:00
|
|
|
config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_RGB_565
|
|
|
|
bool "RGB 565"
|
|
|
|
|
|
|
|
config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_BGR_565
|
|
|
|
bool "BGR 565"
|
|
|
|
|
2019-07-20 01:45:21 +08:00
|
|
|
endchoice
|
|
|
|
|
2023-11-22 17:07:21 +08:00
|
|
|
config SDL_DISPLAY_ZOOM_PCT
|
|
|
|
int "Default zoom percentage"
|
|
|
|
default 100
|
|
|
|
range 10 10000
|
|
|
|
help
|
|
|
|
SDL window zoom percentage to adjust readability on small screens
|
|
|
|
|
2024-01-10 22:19:30 +08:00
|
|
|
config SDL_DISPLAY_USE_HARDWARE_ACCELERATOR
|
|
|
|
bool "Use hardware accelerator"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable hardware acceleration for graphics rendering
|
|
|
|
|
2024-01-14 04:23:02 +08:00
|
|
|
config SDL_DISPLAY_MONO_MSB_FIRST
|
|
|
|
bool "Configure bit order in monochrome formats to MSB first"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
If selected, set the MSB to represent the first pixel.
|
|
|
|
This applies when the pixel format is MONO01/MONO10.
|
|
|
|
|
2019-07-20 01:45:21 +08:00
|
|
|
endif # SDL_DISPLAY
|