Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
454
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
fce5fafb
Commit
fce5fafb
authored
6 years ago
by
Steve Lhomme
Browse files
Options
Downloads
Patches
Plain Diff
d3d11: don't use the primary conversion for unknown primaries
parent
1c738dee
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/video_output/win32/d3d11_shaders.c
+16
-1
16 additions, 1 deletion
modules/video_output/win32/d3d11_shaders.c
with
16 additions
and
1 deletion
modules/video_output/win32/d3d11_shaders.c
+
16
−
1
View file @
fce5fafb
...
...
@@ -512,7 +512,22 @@ HRESULT D3D11_CompilePixelShader(vlc_object_t *o, d3d11_handle_t *hd3d, bool leg
}
if
(
display
->
colorspace
->
primaries
!=
primaries
)
psz_primaries_transform
=
"return max(mul(rgb, Primaries), 0)"
;
{
switch
(
primaries
)
{
case
COLOR_PRIMARIES_BT601_525
:
case
COLOR_PRIMARIES_BT601_625
:
case
COLOR_PRIMARIES_BT709
:
case
COLOR_PRIMARIES_BT2020
:
case
COLOR_PRIMARIES_DCI_P3
:
case
COLOR_PRIMARIES_FCC1953
:
psz_primaries_transform
=
"return max(mul(rgb, Primaries), 0)"
;
break
;
default:
/* see STANDARD_PRIMARIES */
msg_Warn
(
o
,
"unhandled color primaries %d"
,
primaries
);
}
}
int
range_adjust
=
0
;
if
(
display
->
colorspace
->
b_full_range
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment