diff options
author | Matthew Waters <matthew@centricular.com> | 2015-12-14 13:43:59 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2015-12-14 16:35:32 +1100 |
commit | 2b7495bbc1ee60c0fa52c980daf440d45ae48d37 (patch) | |
tree | 7d6fc31ce976609988065d7439b51469eefc14a8 /ext/gl/gstgloverlay.c | |
parent | 6cf8da132b6eb75084871ac4409356be62537b2f (diff) |
glmemory: base classify and add the pbo memory on top
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.
Diffstat (limited to 'ext/gl/gstgloverlay.c')
-rw-r--r-- | ext/gl/gstgloverlay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gl/gstgloverlay.c b/ext/gl/gstgloverlay.c index a152fc22c..c26135237 100644 --- a/ext/gl/gstgloverlay.c +++ b/ext/gl/gstgloverlay.c @@ -696,7 +696,7 @@ gst_gl_overlay_load_jpeg (GstGLOverlay * overlay, FILE * fp) gst_video_info_align (&v_info, &v_align); overlay->image_memory = (GstGLMemory *) - gst_gl_memory_alloc (GST_GL_BASE_FILTER (overlay)->context, + gst_gl_memory_pbo_alloc (GST_GL_BASE_FILTER (overlay)->context, GST_GL_TEXTURE_TARGET_2D, NULL, &v_info, 0, &v_align); if (!gst_memory_map ((GstMemory *) overlay->image_memory, &map_info, @@ -801,7 +801,7 @@ gst_gl_overlay_load_png (GstGLOverlay * overlay, FILE * fp) gst_video_info_set_format (&v_info, GST_VIDEO_FORMAT_RGBA, width, height); overlay->image_memory = (GstGLMemory *) - gst_gl_memory_alloc (GST_GL_BASE_FILTER (overlay)->context, + gst_gl_memory_pbo_alloc (GST_GL_BASE_FILTER (overlay)->context, GST_GL_TEXTURE_TARGET_2D, NULL, &v_info, 0, NULL); if (!gst_memory_map ((GstMemory *) overlay->image_memory, &map_info, |