VirtualBox

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

最後變更 在這個檔案從22640是 22640,由 vboxsync 提交於 15 年 前

OSE fix

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 355 位元組
 
1/* AYUV <-> GL_BGRA_EXT
2 * A <-> B
3 * Y <-> G
4 * U <-> R
5 * V <-> A */
6void 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}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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