2011-09-14 19:12:41 +00:00
|
|
|
plugin_LTLIBRARIES = libgstvaapi.la
|
2010-01-12 15:51:39 +00:00
|
|
|
|
2010-03-12 23:53:48 +00:00
|
|
|
libgstvaapi_CFLAGS = \
|
2011-12-09 09:45:20 +00:00
|
|
|
$(LIBVA_CFLAGS) \
|
|
|
|
-DGST_USE_UNSTABLE_API \
|
|
|
|
-I$(top_srcdir)/gst-libs \
|
|
|
|
-I$(top_builddir)/gst-libs \
|
|
|
|
$(NULL)
|
2010-03-12 23:53:48 +00:00
|
|
|
|
2014-08-01 04:32:32 +00:00
|
|
|
libgstvaapi_LIBS = \
|
|
|
|
$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-$(GST_API_VERSION).la
|
2012-07-23 14:15:38 +00:00
|
|
|
|
2012-08-01 13:46:19 +00:00
|
|
|
if USE_DRM
|
|
|
|
libgstvaapi_LIBS += \
|
2013-03-20 10:44:10 +00:00
|
|
|
$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-drm-$(GST_API_VERSION).la
|
2012-08-01 13:46:19 +00:00
|
|
|
endif
|
|
|
|
|
2012-07-23 14:15:38 +00:00
|
|
|
if USE_X11
|
|
|
|
libgstvaapi_LIBS += \
|
2014-08-01 04:32:32 +00:00
|
|
|
$(X11_LIBS) \
|
2013-03-20 10:44:10 +00:00
|
|
|
$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11-$(GST_API_VERSION).la
|
2010-03-29 14:13:26 +00:00
|
|
|
endif
|
2010-03-12 23:53:48 +00:00
|
|
|
|
2012-07-23 14:15:38 +00:00
|
|
|
if USE_GLX
|
|
|
|
libgstvaapi_LIBS += \
|
2013-03-20 10:44:10 +00:00
|
|
|
$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-glx-$(GST_API_VERSION).la
|
2012-07-23 14:15:38 +00:00
|
|
|
endif
|
|
|
|
|
2015-02-20 14:29:17 +00:00
|
|
|
if USE_EGL
|
|
|
|
libgstvaapi_LIBS += \
|
|
|
|
$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-egl-$(GST_API_VERSION).la
|
|
|
|
endif
|
|
|
|
|
2012-07-24 07:45:25 +00:00
|
|
|
if USE_WAYLAND
|
2013-11-22 10:28:09 +00:00
|
|
|
libgstvaapi_CFLAGS += \
|
|
|
|
$(WAYLAND_CFLAGS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-07-24 07:45:25 +00:00
|
|
|
libgstvaapi_LIBS += \
|
2013-03-20 10:44:10 +00:00
|
|
|
$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-wayland-$(GST_API_VERSION).la
|
2012-07-24 07:45:25 +00:00
|
|
|
endif
|
|
|
|
|
2014-12-03 13:14:30 +00:00
|
|
|
if USE_GST_GL_HELPERS
|
|
|
|
libgstvaapi_CFLAGS += $(GST_GL_CFLAGS)
|
|
|
|
libgstvaapi_LIBS += $(GST_GL_LIBS)
|
|
|
|
endif
|
|
|
|
|
2013-03-21 15:09:42 +00:00
|
|
|
libgstvaapi_source_c = \
|
2011-09-14 19:12:41 +00:00
|
|
|
gstvaapi.c \
|
|
|
|
gstvaapidecode.c \
|
2013-12-13 09:24:26 +00:00
|
|
|
gstvaapipluginbase.c \
|
2011-11-04 20:50:15 +00:00
|
|
|
gstvaapipluginutil.c \
|
2013-11-18 15:20:43 +00:00
|
|
|
gstvaapipostproc.c \
|
2010-03-05 17:11:52 +00:00
|
|
|
gstvaapisink.c \
|
2013-03-21 16:06:43 +00:00
|
|
|
gstvaapivideobuffer.c \
|
2013-05-22 16:07:52 +00:00
|
|
|
gstvaapivideocontext.c \
|
2013-03-26 09:31:10 +00:00
|
|
|
gstvaapivideometa.c \
|
2015-03-02 13:19:40 +00:00
|
|
|
gstvaapidecodebin.c \
|
2015-04-03 14:05:45 +00:00
|
|
|
gstvaapivideobufferpool.c \
|
|
|
|
gstvaapivideomemory.c \
|
2010-01-12 15:51:39 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2013-03-21 15:09:42 +00:00
|
|
|
libgstvaapi_source_h = \
|
2015-05-13 09:54:01 +00:00
|
|
|
gstcompat.h \
|
2011-09-14 19:12:41 +00:00
|
|
|
gstvaapidecode.h \
|
2013-12-13 09:24:26 +00:00
|
|
|
gstvaapipluginbase.h \
|
2011-11-04 20:50:15 +00:00
|
|
|
gstvaapipluginutil.h \
|
2013-11-18 15:20:43 +00:00
|
|
|
gstvaapipostproc.h \
|
2010-03-05 17:11:52 +00:00
|
|
|
gstvaapisink.h \
|
2013-03-21 16:06:43 +00:00
|
|
|
gstvaapivideobuffer.h \
|
2013-05-22 16:07:52 +00:00
|
|
|
gstvaapivideocontext.h \
|
2013-03-26 09:31:10 +00:00
|
|
|
gstvaapivideometa.h \
|
2015-03-02 13:19:40 +00:00
|
|
|
gstvaapidecodebin.h \
|
2015-04-03 14:05:45 +00:00
|
|
|
gstvaapivideobufferpool.h \
|
|
|
|
gstvaapivideomemory.h \
|
2010-01-12 15:51:39 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2013-07-29 05:44:48 +00:00
|
|
|
libgstvaapi_enc_source_c = \
|
|
|
|
gstvaapiencode.c \
|
2013-07-29 08:02:56 +00:00
|
|
|
gstvaapiencode_h264.c \
|
2013-11-20 08:21:32 +00:00
|
|
|
gstvaapiencode_mpeg2.c \
|
2013-07-29 05:44:48 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
libgstvaapi_enc_source_h = \
|
|
|
|
gstvaapiencode.h \
|
2013-07-29 08:02:56 +00:00
|
|
|
gstvaapiencode_h264.h \
|
2013-11-20 08:21:32 +00:00
|
|
|
gstvaapiencode_mpeg2.h \
|
2013-07-29 05:44:48 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
if USE_ENCODERS
|
|
|
|
libgstvaapi_source_c += $(libgstvaapi_enc_source_c)
|
|
|
|
libgstvaapi_source_h += $(libgstvaapi_enc_source_h)
|
|
|
|
endif
|
|
|
|
|
2015-02-04 09:18:29 +00:00
|
|
|
libgstvaapi_jpegenc_source_c = gstvaapiencode_jpeg.c
|
|
|
|
libgstvaapi_jpegenc_source_h = gstvaapiencode_jpeg.h
|
|
|
|
if USE_JPEG_ENCODER
|
|
|
|
libgstvaapi_source_c += $(libgstvaapi_jpegenc_source_c)
|
|
|
|
libgstvaapi_source_h += $(libgstvaapi_jpegenc_source_h)
|
|
|
|
endif
|
|
|
|
|
2015-02-13 11:45:32 +00:00
|
|
|
libgstvaapi_vp8enc_source_c = gstvaapiencode_vp8.c
|
|
|
|
libgstvaapi_vp8enc_source_h = gstvaapiencode_vp8.h
|
|
|
|
if USE_VP8_ENCODER
|
|
|
|
libgstvaapi_source_c += $(libgstvaapi_vp8enc_source_c)
|
|
|
|
libgstvaapi_source_h += $(libgstvaapi_vp8enc_source_h)
|
|
|
|
endif
|
|
|
|
|
2015-05-27 20:49:18 +00:00
|
|
|
|
|
|
|
libgstvaapi_h265enc_source_c = gstvaapiencode_h265.c
|
|
|
|
libgstvaapi_h265enc_source_h = gstvaapiencode_h265.h
|
|
|
|
if USE_H265_ENCODER
|
|
|
|
libgstvaapi_source_c += $(libgstvaapi_h265enc_source_c)
|
|
|
|
libgstvaapi_source_h += $(libgstvaapi_h265enc_source_h)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-02-20 14:29:17 +00:00
|
|
|
libgstvaapi_egl_source_c =
|
|
|
|
libgstvaapi_egl_source_h =
|
|
|
|
|
|
|
|
if USE_EGL
|
|
|
|
libgstvaapi_source_c += $(libgstvaapi_egl_source_c)
|
|
|
|
libgstvaapi_source_h += $(libgstvaapi_egl_source_h)
|
|
|
|
endif
|
|
|
|
|
2013-07-15 11:41:00 +00:00
|
|
|
libgstvaapi_1_2p_source_c = \
|
|
|
|
gstvaapivideometa_texture.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
libgstvaapi_1_2p_source_h = \
|
|
|
|
gstvaapivideometa_texture.h \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
if USE_GST_API_1_2p
|
|
|
|
libgstvaapi_source_c += $(libgstvaapi_1_2p_source_c)
|
|
|
|
libgstvaapi_source_h += $(libgstvaapi_1_2p_source_h)
|
|
|
|
endif
|
|
|
|
|
2013-03-21 15:09:42 +00:00
|
|
|
libgstvaapi_la_SOURCES = $(libgstvaapi_source_c)
|
|
|
|
noinst_HEADERS = $(libgstvaapi_source_h)
|
|
|
|
|
2011-09-14 19:12:41 +00:00
|
|
|
libgstvaapi_la_CFLAGS = \
|
2010-03-12 23:53:48 +00:00
|
|
|
$(libgstvaapi_CFLAGS) \
|
2010-03-05 17:11:52 +00:00
|
|
|
$(GST_CFLAGS) \
|
2011-09-14 19:12:41 +00:00
|
|
|
$(GST_BASE_CFLAGS) \
|
2010-03-05 17:11:52 +00:00
|
|
|
$(GST_VIDEO_CFLAGS) \
|
2010-05-12 11:43:50 +00:00
|
|
|
$(GST_INTERFACES_CFLAGS) \
|
2011-11-04 20:50:15 +00:00
|
|
|
$(GST_BASEVIDEO_CFLAGS) \
|
2014-01-23 10:00:09 +00:00
|
|
|
$(GST_PLUGINS_BASE_CFLAGS) \
|
|
|
|
$(GST_ALLOCATORS_CFLAGS)
|
2010-03-05 17:11:52 +00:00
|
|
|
|
2011-09-14 19:12:41 +00:00
|
|
|
libgstvaapi_la_LIBADD = \
|
2010-03-12 23:53:48 +00:00
|
|
|
$(libgstvaapi_LIBS) \
|
2010-03-05 17:11:52 +00:00
|
|
|
$(GST_LIBS) \
|
2011-09-14 19:12:41 +00:00
|
|
|
$(GST_BASE_LIBS) \
|
2015-03-02 13:19:40 +00:00
|
|
|
$(GST_VIDEO_LIBS) -lgstpbutils-$(GST_PKG_VERSION) \
|
2010-05-12 11:43:50 +00:00
|
|
|
$(GST_INTERFACES_LIBS) \
|
2011-11-04 20:50:15 +00:00
|
|
|
$(GST_BASEVIDEO_LIBS) \
|
2012-12-21 13:29:01 +00:00
|
|
|
$(GST_PLUGINS_BASE_LIBS) \
|
2015-04-03 14:01:45 +00:00
|
|
|
$(GST_ALLOCATORS_LIBS)
|
2010-03-05 17:11:52 +00:00
|
|
|
|
2011-09-14 19:12:41 +00:00
|
|
|
libgstvaapi_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
|
|
|
libgstvaapi_la_LIBTOOLFLAGS = --tag=disable-static
|
2010-01-12 15:51:39 +00:00
|
|
|
|
2014-04-28 15:44:03 +00:00
|
|
|
BUILT_SOURCES =
|
|
|
|
|
|
|
|
if USE_LOCAL_VIDEO_PARSERS
|
|
|
|
plugin_LTLIBRARIES += libgstvaapi_parse.la
|
|
|
|
|
|
|
|
libgstvaapi_parse_gen_source_c = \
|
|
|
|
gsth264parse.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
libgstvaapi_parse_gen_source_h = \
|
|
|
|
gsth264parse.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2015-04-17 13:45:22 +00:00
|
|
|
libgstvaapi_1_4p_parse_gen_source_c = \
|
|
|
|
gsth265parse.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
libgstvaapi_1_4p_parse_gen_source_h = \
|
|
|
|
gsth265parse.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2014-04-28 15:44:03 +00:00
|
|
|
libgstvaapi_parse_gen_sources = \
|
2015-09-24 10:35:44 +00:00
|
|
|
$(libgstvaapi_parse_gen_source_c) \
|
|
|
|
$(libgstvaapi_parse_gen_source_h) \
|
2015-11-25 13:11:28 +00:00
|
|
|
$(NULL)
|
2014-04-28 15:44:03 +00:00
|
|
|
|
2015-04-17 13:45:22 +00:00
|
|
|
if USE_GST_API_1_4p
|
2015-11-25 13:11:28 +00:00
|
|
|
libgstvaapi_parse_gen_source_c += $(libgstvaapi_1_4p_parse_gen_source_c)
|
|
|
|
libgstvaapi_parse_gen_source_h += $(libgstvaapi_1_4p_parse_gen_source_h)
|
2015-04-17 13:45:22 +00:00
|
|
|
endif
|
|
|
|
|
2015-11-25 13:11:28 +00:00
|
|
|
libgstvaapi_parse_la_SOURCES = gstvaapiparse.c gstvaapiparse.h
|
|
|
|
nodist_libgstvaapi_parse_la_SOURCES = \
|
|
|
|
$(libgstvaapi_parse_gen_source_c) \
|
|
|
|
$(libgstvaapi_parse_gen_source_h) \
|
|
|
|
$(NULL)
|
2014-04-28 15:44:03 +00:00
|
|
|
|
|
|
|
libgstvaapi_parse_la_CFLAGS = \
|
|
|
|
-DGST_USE_UNSTABLE_API \
|
|
|
|
-I$(top_srcdir)/gst-libs \
|
|
|
|
-I$(top_builddir)/gst-libs \
|
|
|
|
$(GST_CFLAGS) \
|
|
|
|
$(GST_BASE_CFLAGS) \
|
|
|
|
$(GST_PLUGINS_BASE_CFLAGS) \
|
2015-09-15 14:53:31 +00:00
|
|
|
$(GST_VIDEO_CFLAGS) \
|
|
|
|
$(GST_CODEC_PARSERS_CFLAGS) \
|
|
|
|
$(NULL)
|
2014-04-28 15:44:03 +00:00
|
|
|
|
|
|
|
libgstvaapi_parse_la_LIBADD = \
|
|
|
|
$(top_builddir)/gst-libs/gst/codecparsers/libgstvaapi-codecparsers.la \
|
|
|
|
$(GST_LIBS) \
|
|
|
|
$(GST_BASE_LIBS) \
|
|
|
|
$(GST_PLUGINS_BASE_LIBS) \
|
2015-09-15 14:53:31 +00:00
|
|
|
$(GST_VIDEO_LIBS) -lgstpbutils-$(GST_PKG_VERSION) \
|
|
|
|
$(GST_CODEC_PARSERS_LIBS) \
|
|
|
|
$(NULL)
|
2014-04-28 15:44:03 +00:00
|
|
|
|
|
|
|
libgstvaapi_parse_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
|
|
|
libgstvaapi_parse_la_LIBTOOLFLAGS = --tag=disable-static
|
|
|
|
|
|
|
|
videoparsers_sources_dir = \
|
|
|
|
$(top_srcdir)/ext/codecparsers/gst/videoparsers
|
|
|
|
videoparsers_patches_dir = \
|
|
|
|
$(top_srcdir)/patches/videoparsers
|
|
|
|
include $(videoparsers_patches_dir)/series.frag
|
|
|
|
videoparsers_patches = \
|
|
|
|
$(videoparsers_patches_base:%=$(top_srcdir)/patches/videoparsers/%)
|
2015-11-25 13:12:53 +00:00
|
|
|
if USE_GST_API_1_4p
|
|
|
|
videoparsers_patches += \
|
|
|
|
$(videoparsers_patches_1_4p:%=$(top_srcdir)/patches/videoparsers/%)
|
|
|
|
endif
|
2015-09-24 10:35:44 +00:00
|
|
|
videoparsers_orig_sources = \
|
|
|
|
$(libgstvaapi_parse_gen_sources:%=$(videoparsers_sources_dir)/%)
|
2014-04-28 15:44:03 +00:00
|
|
|
|
2015-09-24 10:35:44 +00:00
|
|
|
$(libgstvaapi_parse_gen_sources): $(videoparsers_orig_sources)
|
|
|
|
cp -f $(videoparsers_sources_dir)/$@ $@
|
|
|
|
|
|
|
|
videoparsers.prepare.stamp: $(videoparsers_patches) $(libgstvaapi_parse_gen_sources)
|
|
|
|
@for f in $(videoparsers_patches); do \
|
|
|
|
patch -p3 < $$f; \
|
2014-04-28 15:44:03 +00:00
|
|
|
done
|
|
|
|
@touch $@
|
|
|
|
|
2015-09-24 10:35:44 +00:00
|
|
|
BUILT_SOURCES += \
|
|
|
|
$(libgstvaapi_parse_gen_sources) \
|
|
|
|
videoparsers.prepare.stamp
|
2014-04-28 15:44:03 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
CLEANFILES = \
|
|
|
|
videoparsers.prepare.stamp \
|
|
|
|
$(libgstvaapi_parse_gen_sources)
|
|
|
|
|
2013-04-10 13:31:41 +00:00
|
|
|
EXTRA_DIST = \
|
2015-02-04 09:18:29 +00:00
|
|
|
$(libgstvaapi_enc_source_c) \
|
|
|
|
$(libgstvaapi_enc_source_h) \
|
2015-02-20 14:29:17 +00:00
|
|
|
$(libgstvaapi_jpegenc_source_c) \
|
2015-02-06 10:10:51 +00:00
|
|
|
$(libgstvaapi_jpegenc_source_h) \
|
2015-02-13 11:45:32 +00:00
|
|
|
$(libgstvaapi_vp8enc_source_c) \
|
|
|
|
$(libgstvaapi_vp8enc_source_h) \
|
2015-05-27 20:49:18 +00:00
|
|
|
$(libgstvaapi_h265enc_source_c) \
|
|
|
|
$(libgstvaapi_h265enc_source_h) \
|
2015-02-20 14:29:17 +00:00
|
|
|
$(libgstvaapi_egl_source_c) \
|
|
|
|
$(libgstvaapi_egl_source_h) \
|
2015-02-04 09:18:29 +00:00
|
|
|
$(libgstvaapi_1_2p_source_c) \
|
|
|
|
$(libgstvaapi_1_2p_source_h) \
|
2013-04-10 13:31:41 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2015-05-13 08:38:24 +00:00
|
|
|
-include $(top_srcdir)/git.mk
|