Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
dce22e69
Commit
dce22e69
authored
Aug 13, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl: stick to single precision
parent
ae8de060
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/video_output/opengl.c
modules/video_output/opengl.c
+2
-2
No files found.
modules/video_output/opengl.c
View file @
dce22e69
...
...
@@ -309,12 +309,12 @@ static void BuildYUVFragmentShader(vout_display_opengl_t *vgl,
code
=
NULL
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
float
correction
=
i
<
3
?
yuv_range_correction
:
1
.
0
;
float
correction
=
i
<
3
?
yuv_range_correction
:
1
.
f
;
/* We place coefficient values for coefficient[4] in one array from matrix values.
Notice that we fill values from top down instead of left to right.*/
for
(
int
j
=
0
;
j
<
4
;
j
++
)
local_value
[
*
local_count
+
i
*
4
+
j
]
=
j
<
3
?
correction
*
matrix
[
j
*
4
+
i
]
:
0
.
0
;
:
0
.
f
;
}
(
*
local_count
)
+=
4
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment