Skip to content
Snippets Groups Projects
Commit 68554e48 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

access/vnc: use RGB565LE/BE for 16-bit/default depth

This corresponds to the mask given to the client, depending on endianness.
parent 8c98fc91
No related branches found
No related tags found
1 merge request!4336access/vnc: use RGB565LE/BE for 16-bit/default depth
Pipeline #391699 passed with stage
in 31 minutes and 39 seconds
......@@ -162,7 +162,7 @@ static rfbBool mallocFrameBufferHandler( rfbClient* p_client )
break;
default:
case 16:
i_chroma = VLC_CODEC_RGB16;
i_chroma = p_client->format.bigEndian ? VLC_CODEC_RGB565BE : VLC_CODEC_RGB565LE;
break;
case 24:
i_chroma = VLC_CODEC_RGB24;
......@@ -174,7 +174,8 @@ static rfbBool mallocFrameBufferHandler( rfbClient* p_client )
switch( i_chroma )
{
case VLC_CODEC_RGB16:
case VLC_CODEC_RGB565BE:
case VLC_CODEC_RGB565LE:
p_client->format.redShift = 11;
p_client->format.greenShift = 5;
p_client->format.blueShift = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment