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
|
|
|
|
2015-12-09 18:52:33 +00:00
|
|
|
libgstvaapi_LIBS = $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi.la
|
2012-07-23 14:15:38 +00:00
|
|
|
|
2012-08-01 13:46:19 +00:00
|
|
|
if USE_DRM
|
2015-12-09 18:52:33 +00:00
|
|
|
libgstvaapi_LIBS +=$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-drm.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) \
|
2015-12-09 18:52:33 +00:00
|
|
|
$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11.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
|
2015-12-09 18:52:33 +00:00
|
|
|
libgstvaapi_LIBS += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-glx.la
|
2012-07-23 14:15:38 +00:00
|
|
|
endif
|
|
|
|
|
2015-02-20 14:29:17 +00:00
|
|
|
if USE_EGL
|
2015-12-09 18:52:33 +00:00
|
|
|
libgstvaapi_LIBS += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-egl.la
|
2015-02-20 14:29:17 +00:00
|
|
|
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)
|
|
|
|
|
2015-12-09 18:52:33 +00:00
|
|
|
libgstvaapi_LIBS += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-wayland.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 \
|
2016-10-27 10:31:49 +00:00
|
|
|
gstvaapidecodedoc.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 \
|
2016-05-05 10:07:59 +00:00
|
|
|
gstvaapipostprocutil.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 \
|
2016-01-27 16:19:32 +00:00
|
|
|
gstvaapivideometa_texture.c \
|
2017-06-14 16:23:34 +00:00
|
|
|
gstvaapidecode_props.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 \
|
2016-05-05 10:07:59 +00:00
|
|
|
gstvaapipostprocutil.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 \
|
2016-01-27 16:19:32 +00:00
|
|
|
gstvaapivideometa_texture.h \
|
2017-06-14 16:23:34 +00:00
|
|
|
gstvaapidecode_props.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
|
|
|
|
|
2016-05-30 08:24:14 +00:00
|
|
|
libgstvaapi_vp9enc_source_c = gstvaapiencode_vp9.c
|
|
|
|
libgstvaapi_vp9enc_source_h = gstvaapiencode_vp9.h
|
|
|
|
if USE_VP9_ENCODER
|
|
|
|
libgstvaapi_source_c += $(libgstvaapi_vp9enc_source_c)
|
|
|
|
libgstvaapi_source_h += $(libgstvaapi_vp9enc_source_h)
|
|
|
|
endif
|
|
|
|
|
FEI: plugin: Add vaapih264feienc element
A new FEI based encoder element for h264 is added: vaapih264feienc
FEI is a an extension to VA-API which is providing low level
advanced control over different stages of encoding.
Extending vaapih264enc with fei support is possible, but it will
make the code too much complicated and will be difficult
to debug. So adding the new encoder element, but keeping
the rank as 0 , vaapih264enc will stay as the primary
encoder for normal use cases.
The vaaih264feienc is mainly useful for customers who want to play
with MotionVectors and Macroblock Predictions. Also user can
do one stage of encoding(eg: only the Motion Vector Calculation)
in software and offload trasformation/entroy-coding etc to
Hardware (which is what PAK module is doing) using FEI element.
vaapih264feienc can work in different modes using fei-mode properoty
eg: gst-launch-1.0 videotestsrc ! vaapih264feienc fei-mode=ENC+PAK ! filesink location=sample.264
Important Note: ENC only mode won't produce any encoded data which is expected.
But ENC alwys requires the output of PAK in order to do the inter-prediction
over reconstructed frames.
Similary PAK mode alway requires MV and MBCode as input, so unless there is an
upstream element providing those buffers, PAK only won't work as expected.
In a nutshell, ENC_PAK and the ENC+PAK modes are the only options we can verify
with vaapih264feienc. But ideally, EN+PAK mode verification is enough to make sure
that ENC and PAK are working as expected since ENC+PAK mode always invoke ENC and PAK
separately in vaapih264feienc.
People contributed:
Wang, Yi <yi.a.wang@intel.com>
Leilei <leilei.shang@intel.com>
Zhong, Xiaoxia <xiaoxia.zhong@intel.com>
xiaominc <xiaomin.chen@intel.com>
Li, Jing B <jing.b.li@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=785712
https://bugzilla.gnome.org/show_bug.cgi?id=784667
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
2017-08-10 01:36:13 +00:00
|
|
|
libgstvaapi_h264feienc_source_c = \
|
|
|
|
gstvaapifeivideometa.c \
|
|
|
|
gstvaapiencode_h264_fei.c \
|
|
|
|
$(NULL)
|
|
|
|
libgstvaapi_h264feienc_source_h = \
|
|
|
|
gstvaapifeivideometa.h \
|
|
|
|
gstvaapiencode_h264_fei.h \
|
|
|
|
$(NULL)
|
2017-08-10 01:26:57 +00:00
|
|
|
|
|
|
|
if USE_H264_FEI_ENCODER
|
|
|
|
libgstvaapi_source_c += $(libgstvaapi_h264feienc_source_c)
|
|
|
|
libgstvaapi_source_h += $(libgstvaapi_h264feienc_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) \
|
2016-01-29 11:11:17 +00:00
|
|
|
$(GST_PBUTILS_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) \
|
2016-01-29 11:11:17 +00:00
|
|
|
$(GST_VIDEO_LIBS) \
|
|
|
|
$(GST_PBUTILS_LIBS) \
|
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
|
|
|
|
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) \
|
2016-05-30 08:24:14 +00:00
|
|
|
$(libgstvaapi_vp9enc_source_c) \
|
|
|
|
$(libgstvaapi_vp9enc_source_h) \
|
2017-08-10 01:26:57 +00:00
|
|
|
$(libgstvaapi_h264feienc_source_c) \
|
|
|
|
$(libgstvaapi_h264feienc_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
|