diff options
author | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2016-02-02 17:31:02 +0100 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2016-02-03 12:20:37 +0100 |
commit | a0b325c19afe0e67bb8093606425dda2723f0c2e (patch) | |
tree | 177e42f1a02477e949382ede5bb49eef0da2775d /gst-libs/gst/vaapi/gstvaapiwindow_egl.c | |
parent | bb2248ab663ea3e9a2bd124416a9d98548b09e94 (diff) | |
download | gst-vaapi-a0b325c19afe0e67bb8093606425dda2723f0c2e.tar.gz |
libs: avoid gst-indent mess up
Guard pieces of code to avoid gst-ident to mess up the following code.
Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapiwindow_egl.c')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiwindow_egl.c | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_egl.c b/gst-libs/gst/vaapi/gstvaapiwindow_egl.c index 006ca2eb..412e3a2d 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_egl.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow_egl.c @@ -96,34 +96,32 @@ typedef struct gboolean success; /* result */ } UploadSurfaceArgs; +/* *IDENT-OFF* */ static const gchar *vert_shader_text = - "#ifdef GL_ES\n" - "precision mediump float;\n" - "#endif\n" - "\n" - "uniform mat4 proj;\n" - "\n" - "attribute vec2 position;\n" - "attribute vec2 texcoord;\n" - "varying vec2 v_texcoord;\n" - "\n" - "void main () {\n" - " gl_Position = proj * vec4 (position, 0.0, 1.0);\n" - " v_texcoord = texcoord;\n" - "}\n"; + "#ifdef GL_ES \n" + "precision mediump float; \n" + "#endif \n" + "uniform mat4 proj; \n" + "attribute vec2 position; \n" + "attribute vec2 texcoord; \n" + "varying vec2 v_texcoord; \n" + "void main () \n" + "{ \n" + " gl_Position = proj * vec4 (position, 0.0, 1.0); \n" + " v_texcoord = texcoord; \n" + "} \n"; static const gchar *frag_shader_text_rgba = - "#ifdef GL_ES\n" - "precision mediump float;\n" - "#endif\n" - "\n" - "uniform sampler2D tex0;\n" - "\n" - "varying vec2 v_texcoord;\n" - "\n" - "void main () {\n" - " gl_FragColor = texture2D (tex0, v_texcoord);\n" - "}\n"; + "#ifdef GL_ES \n" + "precision mediump float; \n" + "#endif \n" + "uniform sampler2D tex0; \n" + "varying vec2 v_texcoord; \n" + "void main () \n" + "{ \n" + " gl_FragColor = texture2D (tex0, v_texcoord); \n" + "} \n"; +/* *IDENT-ON* */ static gboolean ensure_texture (GstVaapiWindowEGL * window, guint width, guint height) |