mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
VNC: Correct pixel width in RRE encoding
This commit is contained in:
@@ -691,6 +691,12 @@ struct rfb_copyrect_encoding_s
|
||||
* the header:"
|
||||
*/
|
||||
|
||||
struct rfb_rrehdr8_s
|
||||
{
|
||||
uint8_t nsubrects[4]; /* U32 Number of sub-rectangle */
|
||||
uint8_t pixel; /* U8 Background pixel */
|
||||
};
|
||||
|
||||
struct rfb_rrehdr16_s
|
||||
{
|
||||
uint8_t nsubrects[4]; /* U32 Number of sub-rectangle */
|
||||
@@ -707,6 +713,15 @@ struct rfb_rrehdr32_s
|
||||
* structure:"
|
||||
*/
|
||||
|
||||
struct rfb_rrerect8_s
|
||||
{
|
||||
uint8_t pixel; /* U8 sub-rect pixel value */
|
||||
uint8_t xpos[2]; /* U16 X position */
|
||||
uint8_t ypos[2]; /* U16 Y position */
|
||||
uint8_t width[2]; /* U16 Width */
|
||||
uint8_t height[2]; /* U16 Height */
|
||||
};
|
||||
|
||||
struct rfb_rrerect16_s
|
||||
{
|
||||
uint8_t pixel[2]; /* U16 sub-rect pixel value */
|
||||
@@ -771,6 +786,11 @@ struct rfb_rrerect32_s
|
||||
* background colour for this tile:"
|
||||
*/
|
||||
|
||||
struct rfb_backpixel8_s
|
||||
{
|
||||
uint8_t pixel; /* U8 Background pixel value */
|
||||
};
|
||||
|
||||
struct rfb_backpixel16_s
|
||||
{
|
||||
uint8_t pixel[2]; /* U16 Background pixel value */
|
||||
@@ -788,6 +808,11 @@ struct rfb_backpixel32_s
|
||||
* foreground colour to be used for all subrectangles in this tile:"
|
||||
*/
|
||||
|
||||
struct rfb_forepixel8_s
|
||||
{
|
||||
uint8_t pixel; /* U8 Foreground pixel value */
|
||||
};
|
||||
|
||||
struct rfb_forepixel16_s
|
||||
{
|
||||
uint8_t pixel[2]; /* U16 Foreground pixel value */
|
||||
@@ -816,6 +841,13 @@ struct rfb_nrects_s
|
||||
* value giving the colour of that subrectangle, so a subrectangle is:"
|
||||
*/
|
||||
|
||||
struct rfb_subrectscolored8_s
|
||||
{
|
||||
uint8_t pixel; /* U8 Sub-rect pixel value */
|
||||
uint8_t xy; /* U8 X and y position */
|
||||
uint8_t wh; /* U8 Width and height */
|
||||
};
|
||||
|
||||
struct rfb_subrectscolored16_s
|
||||
{
|
||||
uint8_t pixel[2]; /* U16 Sub-rect pixel value */
|
||||
@@ -916,6 +948,14 @@ struct rfb_srle_s
|
||||
* height are the width and height of the tile):"
|
||||
*/
|
||||
|
||||
struct rfb_rawpixel8_s
|
||||
{
|
||||
uint8_t pixels[1]; /* Actual size is w*h */
|
||||
};
|
||||
|
||||
#define SIZEOF_RFB_RAWPIXEL8_S(n,r) \
|
||||
(sizeof(struct rfb_rawpixel8_s) + (n) - 1)
|
||||
|
||||
struct rfb_rawpixel16_s
|
||||
{
|
||||
uint8_t pixels[2]; /* Actual size is 2*w*h */
|
||||
@@ -934,6 +974,11 @@ struct rfb_rawpixel32_s
|
||||
|
||||
/* "A solid tile consisting of a single colour. The pixel value follows:" */
|
||||
|
||||
struct rfb_solid8_s
|
||||
{
|
||||
uint8_t pixels; /* Pixel value */
|
||||
};
|
||||
|
||||
struct rfb_solid16_s
|
||||
{
|
||||
uint8_t pixels[2]; /* Pixel value */
|
||||
@@ -977,6 +1022,11 @@ struct rfb_solid32_s
|
||||
* (subencoding − 128) pixel values:"
|
||||
*/
|
||||
|
||||
struct rfb_palette8_s
|
||||
{
|
||||
uint8_t palette[1]; /* Actual size is palleteSize */
|
||||
};
|
||||
|
||||
struct rfb_palette16_s
|
||||
{
|
||||
uint8_t palette[2]; /* Actual size is 2*palleteSize */
|
||||
|
||||
Reference in New Issue
Block a user