Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
7ef848f2 by Steve Lhomme at 2024-02-18T06:40:22+00:00
vout_subpictures: fix the picture format colorimetry too

For now both format coexist but the following patches now rely on the picture 
format:
- a1c8e5b5c85826db429be6c278a97595acf78b18
- d14eadc24764c030885bca90283507a9120b6fd0

The region format should go away at some point, for the rendered subpictures.

- - - - -


1 changed file:

- src/video_output/vout_subpictures.c


Changes:

=====================================
src/video_output/vout_subpictures.c
=====================================
@@ -379,6 +379,14 @@ static void region_FixFmt(subpicture_region_t *region)
         region->fmt.space = COLOR_SPACE_SRGB;
     if (region->fmt.color_range == COLOR_RANGE_UNDEF)
         region->fmt.color_range = COLOR_RANGE_FULL;
+    if (region->p_picture->format.transfer == TRANSFER_FUNC_UNDEF)
+        region->p_picture->format.transfer = TRANSFER_FUNC_SRGB;
+    if (region->p_picture->format.primaries == COLOR_PRIMARIES_UNDEF)
+        region->p_picture->format.primaries = COLOR_PRIMARIES_SRGB;
+    if (region->p_picture->format.space == COLOR_SPACE_UNDEF)
+        region->p_picture->format.space = COLOR_SPACE_SRGB;
+    if (region->p_picture->format.color_range == COLOR_RANGE_UNDEF)
+        region->p_picture->format.color_range = COLOR_RANGE_FULL;
 }
 
 static subpicture_region_t *SpuRenderText(spu_t *spu,



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/7ef848f29b9a215adfebacea6646c96abffe7758

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/7ef848f29b9a215adfebacea6646c96abffe7758
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to