<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 11/08/15 11:28, Hamdi Rakkez wrote:<br>
<blockquote
cite="mid:%3CCAFXmeVt4a4RS_6qMi6FbxztY3kkfY3Dk9b_VHEog+ErDC8SNSg@mail.gmail.com%3E"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Hi,</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">I'm using
gstreamer1.5.1 on ubuntu 14.04.</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">I want to know if
it is possible to have a color saturation on a video stream
with opengl shaders.</div>
</div>
</blockquote>
<br>
Sure, it's possible. Two options<br>
<br>
1. You can write your own shader and use the glshader element.<br>
2. You can write an element based on glbasefilter/glfilter<br>
<br>
Here's an example shader for use in the glshader element<br>
<br>
#ifdef GL_ES<br>
precision mediump float;<br>
#endif<br>
varying vec2 v_texcoord;<br>
uniform sampler2D tex;<br>
uniform float time;<br>
uniform float width;<br>
uniform float height;<br>
<br>
void main () {<br>
gl_FragColor = texture2D( tex, v_texcoord ) * vec4(0.2, 0.8, 0.7,
1.0);<br>
}<br>
<br>
Cheers<br>
-Matt<br>
<br>
<blockquote
cite="mid:%3CCAFXmeVt4a4RS_6qMi6FbxztY3kkfY3Dk9b_VHEog+ErDC8SNSg@mail.gmail.com%3E"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Thanks.</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Best,</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Hamdi</div>
</div>
</blockquote>
<br>
</body>
</html>