mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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>
This commit is contained in:
parent
bb2248ab66
commit
a0b325c19a
2 changed files with 25 additions and 25 deletions
|
@ -93,8 +93,10 @@ coded_buffer_unmap (GstVaapiCodedBuffer * buf)
|
|||
GST_VAAPI_OBJECT_UNLOCK_DISPLAY (buf);
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#define gst_vaapi_coded_buffer_finalize coded_buffer_destroy
|
||||
GST_VAAPI_OBJECT_DEFINE_CLASS (GstVaapiCodedBuffer, gst_vaapi_coded_buffer)
|
||||
/* *INDENT-ON* */
|
||||
|
||||
/*
|
||||
* gst_vaapi_coded_buffer_new:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue