mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
[592/906] memory: update for up/download API changes
This commit is contained in:
parent
9086b0c870
commit
fad1b94c41
1 changed files with 5 additions and 4 deletions
|
@ -60,9 +60,10 @@ _gl_mem_init (GstGLMemory * mem, GstAllocator * allocator, GstMemory * parent,
|
||||||
mem->notify = notify;
|
mem->notify = notify;
|
||||||
mem->user_data = user_data;
|
mem->user_data = user_data;
|
||||||
mem->wrapped = FALSE;
|
mem->wrapped = FALSE;
|
||||||
mem->upload = gst_gl_display_find_upload (display, v_format, width, height);
|
mem->upload = gst_gl_display_find_upload (display, v_format,
|
||||||
mem->download =
|
width, height, width, height);
|
||||||
gst_gl_display_find_download (display, v_format, width, height);
|
mem->download = gst_gl_display_find_download (display, v_format,
|
||||||
|
width, height);
|
||||||
|
|
||||||
GST_CAT_DEBUG (GST_CAT_GL_MEMORY,
|
GST_CAT_DEBUG (GST_CAT_GL_MEMORY,
|
||||||
"new GL texture memory:%p format:%u dimensions:%ux%u", mem, v_format,
|
"new GL texture memory:%p format:%u dimensions:%ux%u", mem, v_format,
|
||||||
|
@ -109,7 +110,7 @@ _gl_mem_map (GstGLMemory * gl_mem, gsize maxsize, GstMapFlags flags)
|
||||||
if (!GST_GL_MEMORY_FLAG_IS_SET (gl_mem,
|
if (!GST_GL_MEMORY_FLAG_IS_SET (gl_mem,
|
||||||
GST_GL_MEMORY_FLAG_UPLOAD_INITTED)) {
|
GST_GL_MEMORY_FLAG_UPLOAD_INITTED)) {
|
||||||
gst_gl_upload_init_format (gl_mem->upload, gl_mem->v_format,
|
gst_gl_upload_init_format (gl_mem->upload, gl_mem->v_format,
|
||||||
gl_mem->width, gl_mem->height);
|
gl_mem->width, gl_mem->height, gl_mem->width, gl_mem->height);
|
||||||
GST_GL_MEMORY_FLAG_SET (gl_mem, GST_GL_MEMORY_FLAG_UPLOAD_INITTED);
|
GST_GL_MEMORY_FLAG_SET (gl_mem, GST_GL_MEMORY_FLAG_UPLOAD_INITTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue