projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3f9732b
)
Put the OpenGL XYZ -> RGB gammas the right way round (#2294).
author
Carl Hetherington
<cth@carlh.net>
Fri, 12 Aug 2022 14:18:02 +0000
(16:18 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 12 Aug 2022 14:18:24 +0000
(16:18 +0200)
1/2.6 is the correction when converting to XYZ, not to RGB.
src/wx/gl_video_view.cc
patch
|
blob
|
history
diff --git
a/src/wx/gl_video_view.cc
b/src/wx/gl_video_view.cc
index 29d44fcd2a6bf9bbd0126573b432a7dc815347b5..284624372fc7df7ac346054b97ec53fed2d1c170 100644
(file)
--- a/
src/wx/gl_video_view.cc
+++ b/
src/wx/gl_video_view.cc
@@
-209,8
+209,8
@@
static constexpr char fragment_source[] =
"\n"
"vec4 cubic(float x)\n"
"\n"
"\n"
"vec4 cubic(float x)\n"
"\n"
-"#define IN_GAMMA 2.
2
\n"
-"#define OUT_GAMMA 0.
384615385\n" // 1 / 2.6
+"#define IN_GAMMA 2.
6
\n"
+"#define OUT_GAMMA 0.
454545455\n" // 1 / 2.2
"#define DCI_COEFFICIENT 0.91655528\n" // 48 / 53.37
"\n"
"{\n"
"#define DCI_COEFFICIENT 0.91655528\n" // 48 / 53.37
"\n"
"{\n"