2016-04-13 23:42:56 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig VNCSERVER
|
|
|
|
bool "VNC server"
|
|
|
|
default n
|
2018-06-17 18:30:01 +02:00
|
|
|
depends on NET_TCP && !NX_LCDDRIVER
|
2016-04-17 17:17:37 +02:00
|
|
|
select NET_TCP_READAHEAD
|
2016-04-17 20:26:03 +02:00
|
|
|
select NX_UPDATE
|
2016-04-13 23:42:56 +02:00
|
|
|
---help---
|
|
|
|
Enable support for a VNC Remote Frame Buffer (RFB) server.
|
|
|
|
|
|
|
|
if VNCSERVER
|
|
|
|
|
2016-04-16 20:50:23 +02:00
|
|
|
choice
|
|
|
|
prompt "VNC server protocol"
|
2016-04-19 16:33:16 +02:00
|
|
|
default VNCSERVER_PROTO3p8
|
2016-04-16 20:50:23 +02:00
|
|
|
|
|
|
|
config VNCSERVER_PROTO3p3
|
|
|
|
bool "Version 3.3"
|
2016-04-19 16:33:16 +02:00
|
|
|
depends on EXPERIMENTAL
|
2016-04-16 20:50:23 +02:00
|
|
|
|
2016-04-17 00:33:04 +02:00
|
|
|
config VNCSERVER_PROTO3p8
|
2016-04-16 20:50:23 +02:00
|
|
|
bool "Version 3.8"
|
|
|
|
|
|
|
|
endchoice # VNC server protocol
|
|
|
|
|
2016-04-14 21:52:59 +02:00
|
|
|
config VNCSERVER_NDISPLAYS
|
|
|
|
int "Number of displays"
|
|
|
|
default 1
|
|
|
|
range 1 99
|
|
|
|
---help---
|
|
|
|
Specifies the number of RFB displays supported by the server.
|
|
|
|
Normally this should be one.
|
|
|
|
|
2016-04-21 01:47:47 +02:00
|
|
|
config VNCSERVER_NAME
|
|
|
|
string "VNC display name"
|
|
|
|
default "NuttX"
|
|
|
|
|
2016-04-14 21:52:59 +02:00
|
|
|
config VNCSERVER_PRIO
|
2016-04-17 16:20:14 +02:00
|
|
|
int "VNC server task priority"
|
2016-04-14 21:52:59 +02:00
|
|
|
default 100
|
|
|
|
|
|
|
|
config VNCSERVER_STACKSIZE
|
|
|
|
int "VNC server stack size"
|
|
|
|
default 2048
|
|
|
|
|
2016-04-17 16:20:14 +02:00
|
|
|
config VNCSERVER_UPDATER_PRIO
|
|
|
|
int "VNC updater thread priority"
|
|
|
|
default 100
|
|
|
|
|
|
|
|
config VNCSERVER_UPDATER_STACKSIZE
|
|
|
|
int "VNC updater thread stack size"
|
|
|
|
default 2048
|
|
|
|
|
2016-04-16 23:59:00 +02:00
|
|
|
choice
|
|
|
|
prompt "VNC color format"
|
|
|
|
default VNCSERVER_COLORFMT_RGB16
|
|
|
|
|
2016-04-21 01:47:47 +02:00
|
|
|
config VNCSERVER_COLORFMT_RGB8
|
|
|
|
bool "RGB8 3:3:2"
|
|
|
|
|
2016-04-16 23:59:00 +02:00
|
|
|
config VNCSERVER_COLORFMT_RGB16
|
|
|
|
bool "RGB16 5:6:5"
|
|
|
|
|
|
|
|
config VNCSERVER_COLORFMT_RGB32
|
2016-04-21 01:47:47 +02:00
|
|
|
bool "RGB32 8:8:8"
|
2016-04-16 23:59:00 +02:00
|
|
|
|
|
|
|
endchoice # VNC color format
|
|
|
|
|
|
|
|
config VNCSERVER_SCREENWIDTH
|
|
|
|
int "Framebuffer width (pixels)"
|
|
|
|
default 320
|
2016-04-19 16:33:16 +02:00
|
|
|
---help---
|
|
|
|
This setting defines the width in pixels of the local framebuffer.
|
|
|
|
|
|
|
|
Memory usage: PixelWidth * ScreenWidth * ScreenHeight
|
|
|
|
|
|
|
|
So, for example, a 320x240 screen with RGB16 pixels would require
|
|
|
|
2x320x240 = 150 KB of RAM.
|
2016-04-16 23:59:00 +02:00
|
|
|
|
|
|
|
config VNCSERVER_SCREENHEIGHT
|
|
|
|
int "Framebuffer height (rows)"
|
|
|
|
default 240
|
2016-04-19 16:33:16 +02:00
|
|
|
---help---
|
|
|
|
This setting defines the height in rows of the local framebuffer.
|
|
|
|
|
|
|
|
Memory usage: PixelWidth * ScreenWidth * ScreenHeight
|
|
|
|
|
|
|
|
So, for example, a 320x240 screen with RGB16 pixels would require
|
|
|
|
2x320x240 = 150 KB of RAM.
|
2016-04-16 23:59:00 +02:00
|
|
|
|
2016-04-18 00:48:30 +02:00
|
|
|
config VNCSERVER_NUPDATES
|
|
|
|
int "Number of pre-allocate update structures"
|
|
|
|
default 48
|
|
|
|
---help---
|
|
|
|
This setting provides the number of pre-allocated update structures
|
|
|
|
that will be used. Dynamic memory allocations are never made. In
|
|
|
|
the likely event that we run out of update structures, the graphics
|
|
|
|
subsystem will pause and wait for the next structures to be released.
|
|
|
|
|
|
|
|
Overhead is 12-bytes per update structure.
|
|
|
|
|
|
|
|
config VNCSERVER_UPDATE_BUFSIZE
|
|
|
|
int "Max update buffer size (bytes)"
|
2016-04-19 23:39:58 +02:00
|
|
|
default 1024
|
2016-04-18 00:48:30 +02:00
|
|
|
---help---
|
|
|
|
A single buffer is pre-allocated for rendering updates. This
|
|
|
|
setting specifies the maximum in bytes of that update buffer. For
|
2016-04-19 23:39:58 +02:00
|
|
|
example, an update buffers of 32 pixels at 8-bits per pixel and
|
|
|
|
32-rows would yield a buffer size of 1024!
|
|
|
|
|
|
|
|
Ideally, this buffer should fit in one network packet to avoid
|
|
|
|
accessive re-assembly of partial TCP packets.
|
2016-04-18 00:48:30 +02:00
|
|
|
|
2016-04-15 00:19:04 +02:00
|
|
|
config VNCSERVER_KBDENCODE
|
|
|
|
bool "Encode keyboard input"
|
|
|
|
default n
|
2016-04-21 22:52:25 +02:00
|
|
|
depends on LIB_KBDCODEC
|
2016-04-15 00:19:04 +02:00
|
|
|
---help---
|
|
|
|
Use a special encoding of keyboard characters as defined in
|
|
|
|
include/nuttx/input/kbd_coded.h.
|
|
|
|
|
2016-04-18 00:48:30 +02:00
|
|
|
config VNCSERVER_INBUFFER_SIZE
|
2016-04-21 17:47:26 +02:00
|
|
|
int "Input buffer size"
|
2016-04-16 21:06:39 +02:00
|
|
|
default 80
|
|
|
|
|
2016-04-23 17:06:39 +02:00
|
|
|
config VNCSERVER_DEBUG
|
|
|
|
bool "VNC Server debug"
|
|
|
|
default n
|
2016-06-11 22:14:08 +02:00
|
|
|
depends on DEBUG_FEATURES && !DEBUG_GRAPHICS
|
2016-04-23 17:06:39 +02:00
|
|
|
---help---
|
|
|
|
Normally VNC debug output is selected with DEBUG_GRAPHICS. The VNC
|
2018-07-09 02:24:45 +02:00
|
|
|
server server support this special option to enable GRAPHICS debug
|
2016-04-23 17:06:39 +02:00
|
|
|
output for the VNC server while GRAPHICS debug is disabled. This
|
|
|
|
provides an cleaner, less cluttered output when you only wish to
|
|
|
|
debug the VNC server versus enabling DEBUG_GRAPHICS globally.
|
|
|
|
|
2016-04-21 17:47:26 +02:00
|
|
|
config VNCSERVER_UPDATE_DEBUG
|
|
|
|
bool "Detailed updater debug"
|
|
|
|
default n
|
2016-04-23 17:06:39 +02:00
|
|
|
depends on DEBUG_GRAPHICS || VNCSERVER_DEBUG
|
2016-04-21 17:47:26 +02:00
|
|
|
|
2016-04-13 23:42:56 +02:00
|
|
|
endif # VNCSERVER
|