Last change
on this file since 22640 was 22640, checked in by vboxsync, 15 years ago |
OSE fix
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
355 bytes
|
Line | |
---|
1 | /* AYUV <-> GL_BGRA_EXT
|
---|
2 | * A <-> B
|
---|
3 | * Y <-> G
|
---|
4 | * U <-> R
|
---|
5 | * V <-> A */
|
---|
6 | void cconvApplyAYUV(vec4 color)
|
---|
7 | {
|
---|
8 | float y, u, v, r, g, b;
|
---|
9 | y = color.g;
|
---|
10 | u = color.r;
|
---|
11 | v = color.a;
|
---|
12 | u = u - 0.5;
|
---|
13 | v = v - 0.5;
|
---|
14 | y = 1.164*(y-0.0625);
|
---|
15 | b = y + 2.018*u;
|
---|
16 | g = y - 0.813*v - 0.391*u;
|
---|
17 | r = y + 1.596*v;
|
---|
18 | gl_FragColor = vec4(r,g,b,1.0);
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.