aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2015-09-13 20:51:40 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2015-10-11 11:18:30 +0200
commitd209a08d36ce554a8d689ae44d2cc384b1b86ade (patch)
treebb699b56cd0fb3f116ac8272fee72514e5d37377
parenta18833cbb0cf0170dc85e057c7e94be44aa8aaf3 (diff)
qv4l2: fix opengl typodcip3
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/qv4l2/capture-win-gl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/qv4l2/capture-win-gl.cpp b/utils/qv4l2/capture-win-gl.cpp
index 12665508..f6f99031 100644
--- a/utils/qv4l2/capture-win-gl.cpp
+++ b/utils/qv4l2/capture-win-gl.cpp
@@ -737,11 +737,11 @@ QString CaptureWinGLEngine::codeTransformToLinear()
" g = pow(g, 2.6);"
" b = pow(b, 2.6);");
case V4L2_XFER_FUNC_SMPTE2084:
- return QString(" m1 = 1.0 / ((2610.0 / 4096.0) / 4.0);"
- " m2 = 1.0 / (128.0 * 2523.0 / 4096.0);"
- " c1 = 3424.0 / 4096.0;"
- " c2 = 32.0 * 2413.0 / 4096.0;"
- " c3 = 32.0 * 2392.0 / 4096.0;"
+ return QString(" float m1 = 1.0 / ((2610.0 / 4096.0) / 4.0);"
+ " float m2 = 1.0 / (128.0 * 2523.0 / 4096.0);"
+ " float c1 = 3424.0 / 4096.0;"
+ " float c2 = 32.0 * 2413.0 / 4096.0;"
+ " float c3 = 32.0 * 2392.0 / 4096.0;"
" r = pow(r, m2);"
" g = pow(g, m2);"
" b = pow(b, m2);"

Privacy Policy