Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
5823da2f
Commit
5823da2f
authored
Dec 17, 2018
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vnc: hard code likable RGB format
parent
62319093
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
modules/access/vnc.c
modules/access/vnc.c
+18
-12
No files found.
modules/access/vnc.c
View file @
5823da2f
...
...
@@ -166,19 +166,25 @@ static rfbBool mallocFrameBufferHandler( rfbClient* p_client )
break
;
}
if
(
i_chroma
!=
VLC_CODEC_RGB8
)
/* Palette based, no mask */
switch
(
i_chroma
)
{
video_format_t
videofmt
;
video_format_Init
(
&
videofmt
,
i_chroma
);
video_format_FixRgb
(
&
videofmt
);
p_client
->
format
.
redShift
=
videofmt
.
i_lrshift
;
p_client
->
format
.
greenShift
=
videofmt
.
i_lgshift
;
p_client
->
format
.
blueShift
=
videofmt
.
i_lbshift
;
p_client
->
format
.
redMax
=
videofmt
.
i_rmask
>>
videofmt
.
i_lrshift
;
p_client
->
format
.
greenMax
=
videofmt
.
i_gmask
>>
videofmt
.
i_lgshift
;
p_client
->
format
.
blueMax
=
videofmt
.
i_bmask
>>
videofmt
.
i_lbshift
;
video_format_Clean
(
&
videofmt
);
case
VLC_CODEC_RGB16
:
p_client
->
format
.
redShift
=
11
;
p_client
->
format
.
greenShift
=
5
;
p_client
->
format
.
blueShift
=
0
;
p_client
->
format
.
redMax
=
0x1f
;
p_client
->
format
.
greenMax
=
0x3f
;
p_client
->
format
.
blueMax
=
0x1f
;
break
;
case
VLC_CODEC_RGB24
:
case
VLC_CODEC_RGB32
:
p_client
->
format
.
redShift
=
16
;
p_client
->
format
.
greenShift
=
8
;
p_client
->
format
.
blueShift
=
0
;
p_client
->
format
.
redMax
=
0xff
;
p_client
->
format
.
greenMax
=
0xff
;
p_client
->
format
.
blueMax
=
0xff
;
break
;
}
/* Set up framebuffer */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment