projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef71f7f
)
Reverted RGB2V
author
Armin Novak
<armin.novak@thincast.com>
Tue, 31 Jan 2017 09:04:00 +0000
(10:04 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Tue, 31 Jan 2017 09:04:00 +0000
(10:04 +0100)
libfreerdp/primitives/prim_YUV.c
patch
|
blob
|
history
diff --git
a/libfreerdp/primitives/prim_YUV.c
b/libfreerdp/primitives/prim_YUV.c
index
617c597
..
5549533
100644
(file)
--- a/
libfreerdp/primitives/prim_YUV.c
+++ b/
libfreerdp/primitives/prim_YUV.c
@@
-549,8
+549,8
@@
static INLINE BYTE RGB2U(INT32 R, INT32 G, INT32 B)
static INLINE BYTE RGB2V(INT32 R, INT32 G, INT32 B)
{
- const INT32 v = (128L
/ 4 * (R) - 116L / 4 * (G) - 12L / 4
* (B));
- const INT32 v8 = (v >>
6
L) + 128L;
+ const INT32 v = (128L
* (R) - 116L * (G) - 12L
* (B));
+ const INT32 v8 = (v >>
8
L) + 128L;
return CLIP(v8);
}