diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/modules/engines/gl_common/shader/yuy2_nomul_frag.shd | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/src/modules/engines/gl_common/shader/yuy2_nomul_frag.shd')
-rw-r--r-- | libraries/evas/src/modules/engines/gl_common/shader/yuy2_nomul_frag.shd | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/gl_common/shader/yuy2_nomul_frag.shd b/libraries/evas/src/modules/engines/gl_common/shader/yuy2_nomul_frag.shd new file mode 100644 index 0000000..fd82e2a --- /dev/null +++ b/libraries/evas/src/modules/engines/gl_common/shader/yuy2_nomul_frag.shd | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifdef GL_ES | ||
2 | #ifdef GL_FRAGMENT_PRECISION_HIGH | ||
3 | precision highp float; | ||
4 | #else | ||
5 | precision mediump float; | ||
6 | #endif | ||
7 | #endif | ||
8 | uniform sampler2D tex, texuv; | ||
9 | varying vec2 tex_c, tex_cuv; | ||
10 | void main() | ||
11 | { | ||
12 | float y,u,v,vmu,r,g,b; | ||
13 | y=texture2D(tex,tex_c).r; | ||
14 | u=texture2D(texuv,tex_cuv).g; | ||
15 | v=texture2D(texuv,tex_cuv).a; | ||
16 | |||
17 | u=u-0.5; | ||
18 | v=v-0.5; | ||
19 | vmu=v*0.813+u*0.391; | ||
20 | u=u*2.018; | ||
21 | v=v*1.596; | ||
22 | y=(y-0.062)*1.164; | ||
23 | |||
24 | r=y+v; | ||
25 | g=y-vmu; | ||
26 | b=y+u; | ||
27 | |||
28 | gl_FragColor=vec4(r,g,b,1.0); | ||
29 | } | ||
30 | |||