gl/egl: remove use of texture orientation
authorMatthew Waters <matthew@centricular.com>
Thu, 17 Nov 2016 07:00:39 +0000 (18:00 +1100)
committerMatthew Waters <matthew@centricular.com>
Tue, 10 Jan 2017 02:57:37 +0000 (13:57 +1100)
gst-libs/gst/gl/egl/gsteglimage.c
gst-libs/gst/gl/egl/gsteglimage.h
gst-libs/gst/gl/egl/gstglmemoryegl.c
gst-libs/gst/gl/egl/gstglmemoryegl.h

index ed1292a..c87adf3 100644 (file)
@@ -115,21 +115,6 @@ gst_egl_image_get_image (GstEGLImage * image)
   return image->image;
 }
 
-/**
- * gst_egl_image_get_orientation:
- * @image: a #GstEGLImage
- *
- * Returns: the orientation of @image
- */
-GstVideoGLTextureOrientation
-gst_egl_image_get_orientation (GstEGLImage * image)
-{
-  g_return_val_if_fail (GST_IS_EGL_IMAGE (image),
-      GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL);
-
-  return image->orientation;
-}
-
 static void
 _gst_egl_image_free_thread (GstGLContext * context, GstEGLImage * image)
 {
@@ -160,7 +145,6 @@ _gst_egl_image_copy (GstMiniObject * obj)
  * @context: a #GstGLContext (must be an EGL context)
  * @image: the image to wrap
  * @type: the #GstVideoGLTextureType
- * @orientation: the #GstVideoGLTextureOrientation
  * @user_data: user data
  * @user_data_destroy: called when @user_data is no longer needed
  *
@@ -168,8 +152,8 @@ _gst_egl_image_copy (GstMiniObject * obj)
  */
 GstEGLImage *
 gst_egl_image_new_wrapped (GstGLContext * context, EGLImageKHR image,
-    GstVideoGLTextureType type, GstVideoGLTextureOrientation orientation,
-    gpointer user_data, GstEGLImageDestroyNotify user_data_destroy)
+    GstVideoGLTextureType type, gpointer user_data,
+    GstEGLImageDestroyNotify user_data_destroy)
 {
   GstEGLImage *img = NULL;
 
@@ -186,7 +170,6 @@ gst_egl_image_new_wrapped (GstGLContext * context, EGLImageKHR image,
   img->context = gst_object_ref (context);
   img->image = image;
   img->type = type;
-  img->orientation = orientation;
 
   img->destroy_data = user_data;
   img->destroy_notify = user_data_destroy;
@@ -346,9 +329,8 @@ gst_egl_image_from_texture (GstGLContext * context, GstGLMemory * gl_mem,
   if (!img)
     return NULL;
 
-  return gst_egl_image_new_wrapped (context, img, gl_mem->tex_type,
-      GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL,
-      NULL, (GstEGLImageDestroyNotify) _destroy_egl_image);
+  return gst_egl_image_new_wrapped (context, img, gl_mem->tex_type, NULL,
+      (GstEGLImageDestroyNotify) _destroy_egl_image);
 }
 
 #if GST_GL_HAVE_DMABUF
@@ -479,8 +461,7 @@ gst_egl_image_from_dmabuf (GstGLContext * context,
     return NULL;
   }
 
-  return gst_egl_image_new_wrapped (context, img, type,
-      GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL,
-      NULL, (GstEGLImageDestroyNotify) _destroy_egl_image);
+  return gst_egl_image_new_wrapped (context, img, type, NULL,
+      (GstEGLImageDestroyNotify) _destroy_egl_image);
 }
 #endif /* GST_GL_HAVE_DMABUF */
index 0b93e10..9499952 100644 (file)
@@ -54,8 +54,6 @@ struct _GstEGLImage
   GstGLContext *context;
   EGLImageKHR image;
   GstVideoGLTextureType type;
-  /* FIXME: remove this and use the affine transformation meta instead */
-  GstVideoGLTextureOrientation orientation;
 
   /* <private> */
   gpointer destroy_data;
@@ -67,11 +65,9 @@ struct _GstEGLImage
 GstEGLImage *             gst_egl_image_new_wrapped             (GstGLContext * context,
                                                                  EGLImageKHR image,
                                                                  GstVideoGLTextureType type,
-                                                                 GstVideoGLTextureOrientation orientation,
                                                                  gpointer user_data,
                                                                  GstEGLImageDestroyNotify user_data_destroy);
 EGLImageKHR             gst_egl_image_get_image                 (GstEGLImage * image);
-GstVideoGLTextureOrientation gst_egl_image_get_orientation      (GstEGLImage * image);
 
 GstEGLImage *           gst_egl_image_from_texture              (GstGLContext * context,
                                                                  GstGLMemory * gl_mem,
index 8c23122..8ce7523 100644 (file)
@@ -104,23 +104,6 @@ gst_gl_memory_egl_get_display (GstGLMemoryEGL * mem)
       context)->egl_display;
 }
 
-/**
- * gst_gl_memory_egl_get_orientation:
- * @mem: a #GstGLMemoryEGL
- *
- * Returns: The orientation of @mem
- *
- * Since: 1.10
- */
-GstVideoGLTextureOrientation
-gst_gl_memory_egl_get_orientation (GstGLMemoryEGL * mem)
-{
-  g_return_val_if_fail (gst_is_gl_memory_egl (GST_MEMORY_CAST (mem)),
-      GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL);
-
-  return gst_egl_image_get_orientation (_gl_mem_get_parent (mem)->image);
-}
-
 static GstMemory *
 _gl_mem_alloc (GstAllocator * allocator, gsize size,
     GstAllocationParams * params)
index 78f962a..5879552 100644 (file)
@@ -73,9 +73,6 @@ gboolean      gst_is_gl_memory_egl                      (GstMemory * mem);
 EGLImageKHR   gst_gl_memory_egl_get_image               (GstGLMemoryEGL * mem);
 EGLDisplay    gst_gl_memory_egl_get_display             (GstGLMemoryEGL * mem);
 
-GstVideoGLTextureOrientation gst_gl_memory_egl_get_orientation
-                                                        (GstGLMemoryEGL * mem);
-
 /**
  * GstGLMemoryEGLAllocator
  *