Last change
on this file since 64802 was 55401, checked in by vboxsync, 10 years ago |
added a couple of missing Id headers
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
299 bytes
|
Line | |
---|
1 | /* $Id: cconvApplyAYUV.c 55401 2015-04-23 10:03:17Z vboxsync $ */
|
---|
2 | void vboxCConvApplyAYUV(vec4 color)
|
---|
3 | {
|
---|
4 | float y, u, v, r, g, b;
|
---|
5 | y = color.g;
|
---|
6 | u = color.r;
|
---|
7 | v = color.a;
|
---|
8 | u = u - 0.5;
|
---|
9 | v = v - 0.5;
|
---|
10 | y = 1.164*(y-0.0625);
|
---|
11 | b = y + 2.018*u;
|
---|
12 | g = y - 0.813*v - 0.391*u;
|
---|
13 | r = y + 1.596*v;
|
---|
14 | gl_FragColor = vec4(r,g,b,1.0);
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.