[vlc-commits] [Git][videolan/vlc][master] access/vnc: use RGB565LE/BE for 16-bit/default depth
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Oct 4 15:03:09 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
68554e48 by Steve Lhomme at 2023-10-04T14:08:51+00:00
access/vnc: use RGB565LE/BE for 16-bit/default depth
This corresponds to the mask given to the client, depending on endianness.
- - - - -
1 changed file:
- modules/access/vnc.c
Changes:
=====================================
modules/access/vnc.c
=====================================
@@ -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;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/68554e484cea079ccbdf6ac0611e2d269b985d1e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/68554e484cea079ccbdf6ac0611e2d269b985d1e
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list