mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
[474/906] build: make libjpeg use conditional
Disable gloverlay element if we do not hve libjpeg
This commit is contained in:
parent
a7587aa44e
commit
533e180ce8
2 changed files with 20 additions and 5 deletions
|
@ -50,11 +50,14 @@ OPENGL_SOURCES += \
|
|||
gstglbumper.c \
|
||||
gstglbumper.h \
|
||||
gstgldifferencematte.c \
|
||||
gstgldifferencematte.h \
|
||||
gstgldifferencematte.h
|
||||
if HAVE_JPEG
|
||||
OPENGL_SOURCES += \
|
||||
gstgloverlay.c \
|
||||
gstgloverlay.h
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
libgstopengl_la_SOURCES = \
|
||||
gstopengl.c \
|
||||
|
|
|
@ -62,7 +62,6 @@ GType gst_gl_effects_get_type (void);
|
|||
#include "gstglfiltershader.h"
|
||||
#include "gstglcolorscale.h"
|
||||
#include "gstgldeinterlace.h"
|
||||
#include "gstglbumper.h"
|
||||
#include "gstglmosaic.h"
|
||||
|
||||
GType gst_gl_deinterlace_get_type (void);
|
||||
|
@ -73,10 +72,22 @@ GType gst_gl_filtershader_get_type (void);
|
|||
GType gst_gl_filtersobel_get_type (void);
|
||||
GType gst_gl_filter_laplacian_get_type (void);
|
||||
GType gst_gl_filter_glass_get_type (void);
|
||||
GType gst_gl_overlay_get_type (void);
|
||||
GType gst_gl_mosaic_get_type (void);
|
||||
|
||||
#ifdef HAVE_PNG
|
||||
#include "gstgldifferencematte.h"
|
||||
#include "gstglbumper.h"
|
||||
|
||||
GType gst_gl_differencematte_get_type (void);
|
||||
GType gst_gl_bumper_get_type (void);
|
||||
GType gst_gl_mosaic_get_type (void);
|
||||
|
||||
#ifdef HAVE_JPEG
|
||||
#include "gstgloverlay.h"
|
||||
|
||||
GType gst_gl_overlay_get_type (void);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define GST_CAT_DEFAULT gst_gl_gstgl_debug
|
||||
|
@ -177,12 +188,13 @@ plugin_init (GstPlugin * plugin)
|
|||
GST_RANK_NONE, gst_gl_bumper_get_type ())) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#ifdef HAVE_JPEG
|
||||
if (!gst_element_register (plugin, "gloverlay",
|
||||
GST_RANK_NONE, gst_gl_overlay_get_type ())) {
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue