mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 19:31:12 +00:00
libs: window: use its own debug category
This commit is contained in:
parent
6c364cb9a7
commit
8ef95a7dc2
6 changed files with 17 additions and 11 deletions
|
@ -33,11 +33,15 @@
|
||||||
#include "gstvaapidisplay_priv.h"
|
#include "gstvaapidisplay_priv.h"
|
||||||
#include "gstvaapisurface_priv.h"
|
#include "gstvaapisurface_priv.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
GST_DEBUG_CATEGORY (gst_debug_vaapi_window);
|
||||||
#include "gstvaapidebug.h"
|
#define GST_CAT_DEFAULT gst_debug_vaapi_window
|
||||||
|
|
||||||
|
#define _do_init \
|
||||||
|
GST_DEBUG_CATEGORY_INIT (gst_debug_vaapi_window, "vaapiwindow", 0, \
|
||||||
|
"VA-API Window");
|
||||||
|
|
||||||
G_DEFINE_ABSTRACT_TYPE (GstVaapiWindow, gst_vaapi_window, GST_TYPE_OBJECT);
|
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstVaapiWindow, gst_vaapi_window,
|
||||||
|
GST_TYPE_OBJECT, _do_init);
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
#include "gstvaapiwindow_priv.h"
|
#include "gstvaapiwindow_priv.h"
|
||||||
#include "gstvaapidisplay_drm_priv.h"
|
#include "gstvaapidisplay_drm_priv.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
GST_DEBUG_CATEGORY_EXTERN (gst_debug_vaapi_window);
|
||||||
#include "gstvaapidebug.h"
|
#define GST_CAT_DEFAULT gst_debug_vaapi_window
|
||||||
|
|
||||||
typedef struct _GstVaapiWindowDRMClass GstVaapiWindowDRMClass;
|
typedef struct _GstVaapiWindowDRMClass GstVaapiWindowDRMClass;
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
#include "gstvaapitexture_priv.h"
|
#include "gstvaapitexture_priv.h"
|
||||||
#include "gstvaapidisplay_egl_priv.h"
|
#include "gstvaapidisplay_egl_priv.h"
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_EXTERN (gst_debug_vaapi_window);
|
||||||
|
#define GST_CAT_DEFAULT gst_debug_vaapi_window
|
||||||
|
|
||||||
#define GST_VAAPI_WINDOW_EGL_CAST(obj) \
|
#define GST_VAAPI_WINDOW_EGL_CAST(obj) \
|
||||||
((GstVaapiWindowEGL *)(obj))
|
((GstVaapiWindowEGL *)(obj))
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
#include "gstvaapiutils_x11.h"
|
#include "gstvaapiutils_x11.h"
|
||||||
#include "gstvaapiutils_glx.h"
|
#include "gstvaapiutils_glx.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
GST_DEBUG_CATEGORY_EXTERN (gst_debug_vaapi_window);
|
||||||
#include "gstvaapidebug.h"
|
#define GST_CAT_DEFAULT gst_debug_vaapi_window
|
||||||
|
|
||||||
#define GST_VAAPI_WINDOW_GLX_CAST(obj) ((GstVaapiWindowGLX *)(obj))
|
#define GST_VAAPI_WINDOW_GLX_CAST(obj) ((GstVaapiWindowGLX *)(obj))
|
||||||
#define GST_VAAPI_WINDOW_GLX_GET_PRIVATE(window) \
|
#define GST_VAAPI_WINDOW_GLX_GET_PRIVATE(window) \
|
||||||
|
|
|
@ -37,8 +37,8 @@
|
||||||
#include "gstvaapifilter.h"
|
#include "gstvaapifilter.h"
|
||||||
#include "gstvaapisurfacepool.h"
|
#include "gstvaapisurfacepool.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
GST_DEBUG_CATEGORY_EXTERN (gst_debug_vaapi_window);
|
||||||
#include "gstvaapidebug.h"
|
#define GST_CAT_DEFAULT gst_debug_vaapi_window
|
||||||
|
|
||||||
#define GST_VAAPI_WINDOW_WAYLAND_CAST(obj) \
|
#define GST_VAAPI_WINDOW_WAYLAND_CAST(obj) \
|
||||||
((GstVaapiWindowWayland *)(obj))
|
((GstVaapiWindowWayland *)(obj))
|
||||||
|
|
|
@ -40,8 +40,8 @@
|
||||||
#include "gstvaapiutils.h"
|
#include "gstvaapiutils.h"
|
||||||
#include "gstvaapiutils_x11.h"
|
#include "gstvaapiutils_x11.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
GST_DEBUG_CATEGORY_EXTERN (gst_debug_vaapi_window);
|
||||||
#include "gstvaapidebug.h"
|
#define GST_CAT_DEFAULT gst_debug_vaapi_window
|
||||||
|
|
||||||
#define GST_VAAPI_WINDOW_X11_GET_CLASS(obj) \
|
#define GST_VAAPI_WINDOW_X11_GET_CLASS(obj) \
|
||||||
(G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VAAPI_WINDOW_X11, GstVaapiWindowX11Class))
|
(G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VAAPI_WINDOW_X11, GstVaapiWindowX11Class))
|
||||||
|
|
Loading…
Reference in a new issue