glmemory: base classify and add the pbo memory on top
authorMatthew Waters <matthew@centricular.com>
Mon, 14 Dec 2015 02:43:59 +0000 (13:43 +1100)
committerMatthew Waters <matthew@centricular.com>
Mon, 14 Dec 2015 05:35:32 +0000 (16:35 +1100)
The base class is useful for having multiple backing memory types other
than the default.  e.g. IOSurface, EGLImage, dmabuf?

The PBO transfer logic is now inside GstGLMemoryPBO which uses GstGLBuffer
to manage the PBO memory.

This also moves the format utility functions into their own file.

ext/qt/gstqsgtexture.cc

index 0986a82..13208c0 100644 (file)
@@ -111,7 +111,7 @@ GstQSGTexture::bind ()
   mem = gst_buffer_peek_memory (this->buffer_, 0);
   g_assert (gst_is_gl_memory (mem));
 
-  context = ((GstGLBaseBuffer *)mem)->context;
+  context = ((GstGLBaseMemory *)mem)->context;
 
   sync_meta = gst_buffer_get_gl_sync_meta (this->sync_buffer_);
   if (!sync_meta)