Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0537a122
Commit
0537a122
authored
Dec 09, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Dec 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Don't clip intermediate values in YUV to RGB conversion code.
parent
e755a96f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
yuv.c
dlls/qcap/yuv.c
+5
-5
No files found.
dlls/qcap/yuv.c
View file @
0537a122
...
...
@@ -68,21 +68,21 @@ void YUV_Init(void) {
for
(
y_
=
0
;
y_
<=
255
;
y_
++
)
{
y
=
((
float
)
255
/
219
)
*
(
y_
-
16
);
yuv_xy
[
y_
]
=
ValidRange
((
int
)
(
y
))
;
yuv_xy
[
y_
]
=
y
;
}
for
(
cb
=
0
;
cb
<=
255
;
cb
++
)
{
u
=
((
float
)
255
/
224
)
*
(
cb
-
128
);
yuv_gu
[
cb
]
=
-
ValidRange
((
int
)
(
0
.
344
*
u
))
;
yuv_bu
[
cb
]
=
ValidRange
((
int
)
(
1
.
772
*
u
))
;
yuv_gu
[
cb
]
=
-
0
.
344
*
u
;
yuv_bu
[
cb
]
=
1
.
772
*
u
;
}
for
(
cr
=
0
;
cr
<=
255
;
cr
++
)
{
v
=
((
float
)
255
/
224
)
*
(
cr
-
128
);
yuv_rv
[
cr
]
=
ValidRange
((
int
)
(
1
.
402
*
v
))
;
yuv_gv
[
cr
]
=
-
ValidRange
((
int
)
(
0
.
714
*
v
))
;
yuv_rv
[
cr
]
=
1
.
402
*
v
;
yuv_gv
[
cr
]
=
-
0
.
714
*
v
;
}
TRACE
(
"Filled hash table
\n
"
);
}
...
...
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