VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/shaders/cconvYV12.c@ 23454

Last change on this file since 23454 was 22883, checked in by vboxsync, 15 years ago

fideo hw accel: fix for ATI + small optimizations

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 655 bytes
Line 
1#extension GL_ARB_texture_rectangle : enable
2uniform sampler2DRect uSrcTex;
3uniform sampler2DRect uVTex;
4uniform sampler2DRect uUTex;
5float vboxSplitBGRA(vec4 color, float coord);
6void vboxCConvApplyAYUV(vec4 color);
7void vboxCConv()
8{
9 vec2 coordY = vec2(gl_TexCoord[0]);
10 vec2 coordV = vec2(gl_TexCoord[1]);
11 vec4 clrY = texture2DRect(uSrcTex, vec2(coordY));
12 vec4 clrV = texture2DRect(uVTex, vec2(coordV));
13 vec4 clrU = texture2DRect(uUTex, vec2(coordV));
14 float y = vboxSplitBGRA(clrY, coordY.x);
15 float v = vboxSplitBGRA(clrV, coordV.x);
16 float u = vboxSplitBGRA(clrU, coordV.x);
17 vboxCConvApplyAYUV(vec4(u, y, 0.0, v));
18}
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