VirtualBox

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

Last change on this file since 79723 was 71027, checked in by vboxsync, 7 years ago

FE/Qt: big svn props cleanup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 299 bytes
Line 
1/* $Id: cconvApplyAYUV.c 71027 2018-02-15 14:33:48Z vboxsync $ */
2void 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.

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