mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
eglglessink: Log in the performance category if we map/copy EGLImages to normal memory
This commit is contained in:
parent
8835cb5814
commit
9e1faac4df
1 changed files with 6 additions and 0 deletions
|
@ -147,6 +147,8 @@
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_eglglessink_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_eglglessink_debug);
|
||||||
#define GST_CAT_DEFAULT gst_eglglessink_debug
|
#define GST_CAT_DEFAULT gst_eglglessink_debug
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_EXTERN(GST_CAT_PERFORMANCE);
|
||||||
|
|
||||||
/* GLESv2 GLSL Shaders
|
/* GLESv2 GLSL Shaders
|
||||||
*
|
*
|
||||||
* OpenGL ES Standard does not mandate YUV support. This is
|
* OpenGL ES Standard does not mandate YUV support. This is
|
||||||
|
@ -3483,6 +3485,8 @@ gst_egl_image_allocator_map (GstMemory * gmem, gsize maxsize, GstMapFlags flags)
|
||||||
{
|
{
|
||||||
GstMemory *parent;
|
GstMemory *parent;
|
||||||
|
|
||||||
|
GST_CAT_DEBUG (GST_CAT_PERFORMANCE, "Mapping EGLImage to normal memory");
|
||||||
|
|
||||||
if ((parent = gmem->parent) == NULL)
|
if ((parent = gmem->parent) == NULL)
|
||||||
parent = gmem;
|
parent = gmem;
|
||||||
|
|
||||||
|
@ -3508,6 +3512,8 @@ gst_egl_image_allocator_copy (GstMemory * mem, gssize offset, gssize size)
|
||||||
GstMemory *ret;
|
GstMemory *ret;
|
||||||
GstMapInfo mapi, mapo;
|
GstMapInfo mapi, mapo;
|
||||||
|
|
||||||
|
GST_CAT_DEBUG (GST_CAT_PERFORMANCE, "Copying EGLImage to normal memory");
|
||||||
|
|
||||||
if (size == -1)
|
if (size == -1)
|
||||||
size = mem->size > offset ? mem->size - offset : 0;
|
size = mem->size > offset ? mem->size - offset : 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue