diff options
author | Sven Gothel <[email protected]> | 2014-04-09 08:35:30 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-04-09 08:35:30 +0200 |
commit | 9bcf943a1c149fd2a196a321260a32b51814a0b0 (patch) | |
tree | 151c0fb04fcccffb0b20bc627a96492ffad414b7 /src/jogl/classes/jogamp/opengl/util/av | |
parent | f43b1f946159007b31162f765b1fa7b37991f940 (diff) |
FFMPEGMediaPlayer: Use 'const' qualifier in shader stub
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util/av')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java index 344ba48ee..6121172c8 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java +++ b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java @@ -677,8 +677,8 @@ public class FFMPEGMediaPlayer extends GLMediaPlayerImpl { case YUV420P: // < planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples) return "vec4 "+texLookupFuncName+"(in "+getTextureSampler2DType()+" image, in vec2 texCoord) {\n"+ - " vec2 u_off = vec2("+tc_w_1+", 0.0);\n"+ - " vec2 v_off = vec2("+tc_w_1+", 0.5);\n"+ + " const vec2 u_off = vec2("+tc_w_1+", 0.0);\n"+ + " const vec2 v_off = vec2("+tc_w_1+", 0.5);\n"+ " vec2 tc_half = texCoord*0.5;\n"+ " float y,u,v,r,g,b;\n"+ " y = texture2D(image, texCoord)."+singleTexComp+";\n"+ @@ -698,8 +698,8 @@ public class FFMPEGMediaPlayer extends GLMediaPlayerImpl { case YUV422P: ///< planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples) return "vec4 "+texLookupFuncName+"(in "+getTextureSampler2DType()+" image, in vec2 texCoord) {\n"+ - " vec2 u_off = vec2("+tc_w_1+" , 0.0);\n"+ - " vec2 v_off = vec2("+tc_w_1+" * 1.5, 0.0);\n"+ + " const vec2 u_off = vec2("+tc_w_1+" , 0.0);\n"+ + " const vec2 v_off = vec2("+tc_w_1+" * 1.5, 0.0);\n"+ " vec2 tc_halfw = vec2(texCoord.x*0.5, texCoord.y);\n"+ " float y,u,v,r,g,b;\n"+ " y = texture2D(image, texCoord)."+singleTexComp+";\n"+ |