VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/shaders/cconvApplyAYUV.c@ 52889

Last change on this file since 52889 was 35579, checked in by vboxsync, 14 years ago

scm: cleanups and adjustments

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 288 bytes
Line 
1void vboxCConvApplyAYUV(vec4 color)
2{
3 float y, u, v, r, g, b;
4 y = color.g;
5 u = color.r;
6 v = color.a;
7 u = u - 0.5;
8 v = v - 0.5;
9 y = 1.164*(y-0.0625);
10 b = y + 2.018*u;
11 g = y - 0.813*v - 0.391*u;
12 r = y + 1.596*v;
13 gl_FragColor = vec4(r,g,b,1.0);
14}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette