mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
eglglessink: Properly set a debug category for the adaption layers
This commit is contained in:
parent
9fdec0f83b
commit
118f8f33ef
5 changed files with 19 additions and 0 deletions
|
@ -49,6 +49,9 @@
|
|||
#include <gst/video/video.h>
|
||||
#include <string.h>
|
||||
|
||||
#define GST_CAT_DEFAULT egladaption_debug
|
||||
GST_DEBUG_CATEGORY (egladaption_debug);
|
||||
|
||||
/* GLESv2 GLSL Shaders
|
||||
*
|
||||
* OpenGL ES Standard does not mandate YUV support. This is
|
||||
|
@ -208,6 +211,12 @@ static const char *frag_NV12_NV21_prog = {
|
|||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
void
|
||||
gst_egl_adaption_init (void)
|
||||
{
|
||||
GST_DEBUG_CATEGORY_INIT (egladaption_debug, "egladaption", 0, "EGL adaption layer");
|
||||
}
|
||||
|
||||
static GstCaps *
|
||||
_gst_video_format_new_template_caps (GstVideoFormat format)
|
||||
{
|
||||
|
|
|
@ -151,6 +151,10 @@ struct _GstEglAdaptationContext
|
|||
gboolean buffer_preserved;
|
||||
};
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (egladaption_debug);
|
||||
|
||||
void gst_egl_adaption_init (void);
|
||||
|
||||
GstEglAdaptationContext * gst_egl_adaptation_context_new (GstElement * element);
|
||||
void gst_egl_adaptation_context_free (GstEglAdaptationContext * ctx);
|
||||
void gst_egl_adaptation_init (GstEglAdaptationContext * ctx);
|
||||
|
|
|
@ -49,6 +49,8 @@
|
|||
|
||||
#include "gstegladaptation.h"
|
||||
|
||||
#define GST_CAT_DEFAULT egladaption_debug
|
||||
|
||||
struct _GstEaglContext
|
||||
{
|
||||
EAGLContext *eagl_context;
|
||||
|
|
|
@ -53,6 +53,8 @@
|
|||
#include <GLES2/gl2ext.h>
|
||||
#include <gst/egl/egl.h>
|
||||
|
||||
#define GST_CAT_DEFAULT egladaption_debug
|
||||
|
||||
/* Some EGL implementations are reporting wrong
|
||||
* values for the display's EGL_PIXEL_ASPECT_RATIO.
|
||||
* They are required by the khronos specs to report
|
||||
|
|
|
@ -2449,6 +2449,8 @@ eglglessink_plugin_init (GstPlugin * plugin)
|
|||
GST_DEBUG_CATEGORY_INIT (gst_eglglessink_debug, "eglglessink",
|
||||
0, "Simple EGL/GLES Sink");
|
||||
|
||||
gst_egl_adaption_init ();
|
||||
|
||||
#ifdef USE_EGL_RPI
|
||||
GST_DEBUG ("Initialize BCM host");
|
||||
bcm_host_init ();
|
||||
|
|
Loading…
Reference in a new issue