gl: Fix indentation
authorSebastian Dröge <sebastian@centricular.com>
Thu, 25 May 2017 10:06:03 +0000 (13:06 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:28 +0000 (19:32 +0000)
gst-libs/gst/gl/dispmanx/gstglwindow_dispmanx_egl.c
gst-libs/gst/gl/gstglframebuffer.c
gst-libs/gst/gl/gstglmemory.c
gst-libs/gst/gl/gstglshader.c

index 011f49f..d88db23 100644 (file)
@@ -130,7 +130,8 @@ gst_gl_window_dispmanx_egl_close (GstGLWindow * window)
 
   window_egl = GST_GL_WINDOW_DISPMANX_EGL (window);
 
-  if (window_egl->native.element && window_egl->native.element != window_egl->foreign.element) {
+  if (window_egl->native.element
+      && window_egl->native.element != window_egl->foreign.element) {
     dispman_update = vc_dispmanx_update_start (0);
     vc_dispmanx_element_remove (dispman_update, window_egl->native.element);
     vc_dispmanx_update_submit_sync (dispman_update);
@@ -184,10 +185,11 @@ gst_gl_window_dispmanx_egl_set_window_handle (GstGLWindow * window,
     guintptr handle)
 {
   GstGLWindowDispmanxEGL *window_egl = GST_GL_WINDOW_DISPMANX_EGL (window);
-  EGL_DISPMANX_WINDOW_T *foreign_window = (EGL_DISPMANX_WINDOW_T *)handle;
+  EGL_DISPMANX_WINDOW_T *foreign_window = (EGL_DISPMANX_WINDOW_T *) handle;
   DISPMANX_UPDATE_HANDLE_T dispman_update;
 
-  GST_DEBUG_OBJECT (window, "set window handle with size %dx%d", foreign_window->width, foreign_window->height);
+  GST_DEBUG_OBJECT (window, "set window handle with size %dx%d",
+      foreign_window->width, foreign_window->height);
 
   if (window_egl->native.element) {
     dispman_update = vc_dispmanx_update_start (0);
@@ -195,9 +197,11 @@ gst_gl_window_dispmanx_egl_set_window_handle (GstGLWindow * window,
     vc_dispmanx_update_submit_sync (dispman_update);
   }
 
-  window_egl->native.element = window_egl->foreign.element = foreign_window->element;
-  window_egl->native.width =  window_egl->foreign.width = foreign_window->width;
-  window_egl->native.height =  window_egl->foreign.height = foreign_window->height;
+  window_egl->native.element = window_egl->foreign.element =
+      foreign_window->element;
+  window_egl->native.width = window_egl->foreign.width = foreign_window->width;
+  window_egl->native.height = window_egl->foreign.height =
+      foreign_window->height;
 }
 
 static void
index dfc8e35..678bcb7 100644 (file)
@@ -515,7 +515,8 @@ gst_gl_framebuffer_get_effective_dimensions (GstGLFramebuffer * fb,
  * Since: 1.10
  */
 gboolean
-gst_gl_context_check_framebuffer_status (GstGLContext * context, GLenum fbo_target)
+gst_gl_context_check_framebuffer_status (GstGLContext * context,
+    GLenum fbo_target)
 {
   g_return_val_if_fail (GST_IS_GL_CONTEXT (context), FALSE);
 
index c762a9f..02848f0 100644 (file)
@@ -684,7 +684,8 @@ gst_gl_memory_copy_teximage (GstGLMemory * src, guint tex_id,
     gl->FramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
         gst_gl_texture_target_to_gl (src->tex_target), src_tex_id, 0);
 
-    if (!gst_gl_context_check_framebuffer_status (src->mem.context, GL_FRAMEBUFFER))
+    if (!gst_gl_context_check_framebuffer_status (src->mem.context,
+            GL_FRAMEBUFFER))
       goto fbo_error;
 
     gl->BindTexture (out_tex_target, tex_id);
@@ -713,7 +714,8 @@ gst_gl_memory_copy_teximage (GstGLMemory * src, guint tex_id,
     gl->FramebufferTexture2D (GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
         gst_gl_texture_target_to_gl (src->tex_target), src_tex_id, 0);
 
-    if (!gst_gl_context_check_framebuffer_status (src->mem.context, GL_READ_FRAMEBUFFER))
+    if (!gst_gl_context_check_framebuffer_status (src->mem.context,
+            GL_READ_FRAMEBUFFER))
       goto fbo_error;
 
     gl->BindFramebuffer (GL_DRAW_FRAMEBUFFER, fbo[1]);
@@ -721,7 +723,8 @@ gst_gl_memory_copy_teximage (GstGLMemory * src, guint tex_id,
     gl->FramebufferTexture2D (GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
         gst_gl_texture_target_to_gl (src->tex_target), tex_id, 0);
 
-    if (!gst_gl_context_check_framebuffer_status (src->mem.context, GL_DRAW_FRAMEBUFFER))
+    if (!gst_gl_context_check_framebuffer_status (src->mem.context,
+            GL_DRAW_FRAMEBUFFER))
       goto fbo_error;
 
     gl->BindTexture (out_tex_target, tex_id);
index c665296..c9f86aa 100644 (file)
 
 typedef struct _GstGLShaderVTable
 {
-  GLuint (GSTGLAPI *CreateProgram) (void);
-  void (GSTGLAPI *DeleteProgram) (GLuint program);
-  void (GSTGLAPI *UseProgram) (GLuint program);
-  void (GSTGLAPI *GetAttachedShaders) (GLuint program, GLsizei maxcount,
+  GLuint (GSTGLAPI * CreateProgram) (void);
+  void (GSTGLAPI * DeleteProgram) (GLuint program);
+  void (GSTGLAPI * UseProgram) (GLuint program);
+  void (GSTGLAPI * GetAttachedShaders) (GLuint program, GLsizei maxcount,
       GLsizei * count, GLuint * shaders);
 
-  GLuint (GSTGLAPI *CreateShader) (GLenum shaderType);
-  void (GSTGLAPI *DeleteShader) (GLuint shader);
-  void (GSTGLAPI *AttachShader) (GLuint program, GLuint shader);
-  void (GSTGLAPI *DetachShader) (GLuint program, GLuint shader);
+    GLuint (GSTGLAPI * CreateShader) (GLenum shaderType);
+  void (GSTGLAPI * DeleteShader) (GLuint shader);
+  void (GSTGLAPI * AttachShader) (GLuint program, GLuint shader);
+  void (GSTGLAPI * DetachShader) (GLuint program, GLuint shader);
 
-  void (GSTGLAPI *GetShaderiv) (GLuint program, GLenum pname, GLint * params);
-  void (GSTGLAPI *GetProgramiv) (GLuint program, GLenum pname, GLint * params);
-  void (GSTGLAPI *GetShaderInfoLog) (GLuint shader, GLsizei maxLength,
+  void (GSTGLAPI * GetShaderiv) (GLuint program, GLenum pname, GLint * params);
+  void (GSTGLAPI * GetProgramiv) (GLuint program, GLenum pname, GLint * params);
+  void (GSTGLAPI * GetShaderInfoLog) (GLuint shader, GLsizei maxLength,
       GLsizei * length, char *log);
-  void (GSTGLAPI *GetProgramInfoLog) (GLuint shader, GLsizei maxLength,
+  void (GSTGLAPI * GetProgramInfoLog) (GLuint shader, GLsizei maxLength,
       GLsizei * length, char *log);
 } GstGLShaderVTable;