[vlc-commits] [Git][videolan/vlc][master] 4 commits: access/vnc: only apply mask for chromas with a mask

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Sep 2 13:36:57 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
b1d2361f by Steve Lhomme at 2023-09-02T13:19:11+00:00
access/vnc: only apply mask for chromas with a mask

It will be useful for the next commit(s).

- - - - -
7c34718e by Steve Lhomme at 2023-09-02T13:19:11+00:00
access/vnc: apply the local values for the masks

- - - - -
36f39dce by Steve Lhomme at 2023-09-02T13:19:11+00:00
access/vnc: use shifted values for the mask

So they can be compared to the default mask in FixRgb.

- - - - -
8c12f195 by Steve Lhomme at 2023-09-02T13:19:11+00:00
access/vnc: use FixRGB to set the RGB16/24/32 mask

The mask is exactly what we would set. It's better to signal we use the
default values.

- - - - -


1 changed file:

- modules/access/vnc.c


Changes:

=====================================
modules/access/vnc.c
=====================================
@@ -219,6 +219,8 @@ static rfbBool mallocFrameBufferHandler( rfbClient* p_client )
 
     /* Fill input format */
     fmt.video.i_chroma = i_chroma;
+    video_format_FixRgb(&fmt.video);
+
     fmt.video.i_visible_width =
             fmt.video.i_width = i_width;
 
@@ -229,10 +231,6 @@ static rfbBool mallocFrameBufferHandler( rfbClient* p_client )
     fmt.video.i_frame_rate = 1000 * p_sys->f_fps;
 
     fmt.video.i_bits_per_pixel = i_bits_per_pixel;
-    fmt.video.i_rmask = p_client->format.redMax << p_client->format.redShift;
-    fmt.video.i_gmask = p_client->format.greenMax << p_client->format.greenShift;
-    fmt.video.i_bmask = p_client->format.blueMax << p_client->format.blueShift;
-
     fmt.video.i_sar_num = fmt.video.i_sar_den = 1;
 
     /* declare the new es */



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d94f507747a0c67ea7025256d30d313ceb6a0a11...8c12f1959263a7f9638660e738d44add62429211

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d94f507747a0c67ea7025256d30d313ceb6a0a11...8c12f1959263a7f9638660e738d44add62429211
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