VNC: server is code complete

This commit is contained in:
Gregory Nutt
2016-04-18 10:42:44 -06:00
parent 48d4a9672a
commit f5f461da20
2 changed files with 383 additions and 58 deletions
+3 -31
View File
@@ -102,7 +102,7 @@
# define RFB_GSHIFT 8
# define RFB_BSHIFT 0
#else
# error Unspecified color format
# error Unspecified/unsupported color format
#endif
#ifndef CONFIG_VNCSERVER_SCREENWIDTH
@@ -179,7 +179,8 @@ enum vnc_server_e
VNCSERVER_CONNECTED, /* Connect to a client, but not yet configured */
VNCSERVER_CONFIGURED, /* Configured and ready to transfer graphics */
VNCSERVER_RUNNING, /* Running and activly transferring graphics */
VNCSERVER_STOPPING /* The server has been asked to stop */
VNCSERVER_STOPPING, /* The updater has been asked to stop */
VNCSERVER_STOPPED /* The updater has stopped */
};
/* This structure is used to queue FrameBufferUpdate event. It includes a
@@ -383,35 +384,6 @@ void vnc_key_map(FAR struct vnc_session_s *session, uint16_t keysym,
FAR struct vnc_session_s *vnc_find_session(int display);
/****************************************************************************
* Name: vnc_convert_rgbNN
*
* Description:
* Convert the native framebuffer color format (either RGB16 5:6:5 or RGB32
* 8:8:8) to the remote framebuffer color format (either RGB16 5:6:5,
* RGB16 5:5:5, or RGB32 8:8:)
*
* Input Parameters:
* pixel - The src color in local framebuffer format.
*
* Returned Value:
* The pixel in the remote framebuffer color format.
*
****************************************************************************/
#if defined(CONFIG_VNCSERVER_COLORFMT_RGB16)
uint16_t vnc_convert_rgb16_555(uint16_t rgb);
uint16_t vnc_convert_rgb16_565(uint16_t rgb);
uint32_t vnc_convert_rgb32_888(uint16_t rgb);
#elif defined(CONFIG_VNCSERVER_COLORFMT_RGB32)
uint16_t vnc_convert_rgb16_555(uint32_t rgb);
uint16_t vnc_convert_rgb16_565(uint32_t rgb);
uint32_t vnc_convert_rgb32_888(uint32_t rgb);
#else
# error Unspecified color format
#endif
#undef EXTERN
#ifdef __cplusplus
}
File diff suppressed because it is too large Load Diff