diff options
Diffstat (limited to 'libraries/evas/src/modules/engines/gl_common/shader/yuv_nomul_frag.shd')
-rw-r--r-- | libraries/evas/src/modules/engines/gl_common/shader/yuv_nomul_frag.shd | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/libraries/evas/src/modules/engines/gl_common/shader/yuv_nomul_frag.shd b/libraries/evas/src/modules/engines/gl_common/shader/yuv_nomul_frag.shd deleted file mode 100644 index ce24622..0000000 --- a/libraries/evas/src/modules/engines/gl_common/shader/yuv_nomul_frag.shd +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
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, texu, texv; | ||
9 | varying vec2 tex_c, tex_c2, tex_c3; | ||
10 | void main() | ||
11 | { | ||
12 | float r, g, b, y, u, v; | ||
13 | y = texture2D(tex, tex_c.xy).r; | ||
14 | u = texture2D(texu, tex_c2.xy).r; | ||
15 | v = texture2D(texv, tex_c3.xy).r; | ||
16 | y = (y - 0.0625) * 1.164; | ||
17 | u = u - 0.5; | ||
18 | v = v - 0.5; | ||
19 | r = y + (1.402 * v); | ||
20 | g = y - (0.34414 * u) - (0.71414 * v); | ||
21 | b = y + (1.772 * u); | ||
22 | gl_FragColor = vec4(r, g, b, 1.0); | ||
23 | } | ||