Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
0761ceec by Steve Lhomme at 2026-01-31T08:39:13+00:00
direct3d11: adapt DXGI_HDR_METADATA_HDR10 to VLC internal format
The VLC and libvlc format is the one from HEVC SEI which is ANSI/CTA 861-G.
The Microsoft format differs from this format in MaxMasteringLuminance where the
values is not in 1/10000th of a nit but in nit.
We also reorder the setting of values to match the order of the structure.
This is also the same order as libvlc.
(cherry picked from commit d8732800bd19cfb5c8366f03c23d1bf51ad568bc) (edited)
edited:
- 3.0 doesn't use an indirect callback to set the DXGI_HDR_METADATA_HDR10 data
- - - - -
1 changed file:
- modules/video_output/win32/direct3d11.c
Changes:
=====================================
modules/video_output/win32/direct3d11.c
=====================================
@@ -1231,8 +1231,8 @@ static void Prepare(vout_display_t *vd, picture_t
*picture, subpicture_t *subpic
hdr10.RedPrimary[1] = picture->format.mastering.primaries[5];
hdr10.WhitePoint[0] = picture->format.mastering.white_point[0];
hdr10.WhitePoint[1] = picture->format.mastering.white_point[1];
+ hdr10.MaxMasteringLuminance =
picture->format.mastering.max_luminance / 10000;
hdr10.MinMasteringLuminance =
picture->format.mastering.min_luminance;
- hdr10.MaxMasteringLuminance =
picture->format.mastering.max_luminance;
hdr10.MaxContentLightLevel = picture->format.lighting.MaxCLL;
hdr10.MaxFrameAverageLightLevel = picture->format.lighting.MaxFALL;
if (memcmp(&sys->hdr10, &hdr10, sizeof(hdr10)))
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/0761ceecb3dfddd6ac5f237fa310aeab7b0a26ee
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/0761ceecb3dfddd6ac5f237fa310aeab7b0a26ee
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits