Initializes mem with the required parameters
the #GstAllocator to initialize with
the parent #GstMemory to initialize with
the #GstGLContext to initialize with
the GstAllocationParams to initialize with
the number of bytes to be allocated
user data to call notify with
a #GDestroyNotify
Initializes mem with the required parameters