2016-08-12 15:26:31 +00:00
|
|
|
video_sources = [
|
|
|
|
'colorbalance.c',
|
|
|
|
'colorbalancechannel.c',
|
|
|
|
'convertframe.c',
|
|
|
|
'gstvideoaffinetransformationmeta.c',
|
|
|
|
'gstvideodecoder.c',
|
|
|
|
'gstvideoencoder.c',
|
|
|
|
'gstvideofilter.c',
|
|
|
|
'gstvideometa.c',
|
|
|
|
'gstvideopool.c',
|
|
|
|
'gstvideosink.c',
|
|
|
|
'gstvideotimecode.c',
|
|
|
|
'gstvideoutils.c',
|
|
|
|
'gstvideoutilsprivate.c',
|
|
|
|
'navigation.c',
|
|
|
|
'video.c',
|
2018-02-15 12:59:56 +00:00
|
|
|
'video-anc.c',
|
2016-08-12 15:26:31 +00:00
|
|
|
'video-blend.c',
|
|
|
|
'video-chroma.c',
|
|
|
|
'video-color.c',
|
|
|
|
'video-converter.c',
|
|
|
|
'video-dither.c',
|
|
|
|
'video-event.c',
|
|
|
|
'video-format.c',
|
|
|
|
'video-frame.c',
|
|
|
|
'video-info.c',
|
|
|
|
'video-multiview.c',
|
|
|
|
'video-resampler.c',
|
|
|
|
'video-scaler.c',
|
|
|
|
'video-tile.c',
|
|
|
|
'video-overlay-composition.c',
|
2016-08-25 11:19:52 +00:00
|
|
|
'videodirection.c',
|
2016-08-12 15:26:31 +00:00
|
|
|
'videoorientation.c',
|
|
|
|
'videooverlay.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
video_headers = [
|
|
|
|
'colorbalance.h',
|
|
|
|
'colorbalancechannel.h',
|
|
|
|
'gstvideoaffinetransformationmeta.h',
|
|
|
|
'gstvideodecoder.h',
|
|
|
|
'gstvideoencoder.h',
|
|
|
|
'gstvideofilter.h',
|
|
|
|
'gstvideometa.h',
|
|
|
|
'gstvideopool.h',
|
|
|
|
'gstvideosink.h',
|
|
|
|
'gstvideotimecode.h',
|
|
|
|
'gstvideoutils.h',
|
|
|
|
'navigation.h',
|
|
|
|
'video.h',
|
2018-02-15 12:59:56 +00:00
|
|
|
'video-anc.h',
|
2016-08-12 15:26:31 +00:00
|
|
|
'video-event.h',
|
|
|
|
'video-format.h',
|
|
|
|
'video-chroma.h',
|
|
|
|
'video-color.h',
|
|
|
|
'video-converter.h',
|
|
|
|
'video-dither.h',
|
|
|
|
'video-info.h',
|
|
|
|
'video-frame.h',
|
2018-03-13 11:48:31 +00:00
|
|
|
'video-prelude.h',
|
2016-08-12 15:26:31 +00:00
|
|
|
'video-scaler.h',
|
|
|
|
'video-tile.h',
|
2016-08-25 11:19:52 +00:00
|
|
|
'videodirection.h',
|
2016-08-12 15:26:31 +00:00
|
|
|
'videoorientation.h',
|
|
|
|
'videooverlay.h',
|
|
|
|
'video-resampler.h',
|
|
|
|
'video-blend.h',
|
|
|
|
'video-overlay-composition.h',
|
|
|
|
'video-multiview.h',
|
|
|
|
]
|
|
|
|
install_headers(video_headers, subdir : 'gstreamer-1.0/gst/video/')
|
|
|
|
|
|
|
|
video_mkenum_headers = [
|
|
|
|
'video.h',
|
2018-02-15 12:59:56 +00:00
|
|
|
'video-anc.h',
|
2016-08-12 15:26:31 +00:00
|
|
|
'video-format.h',
|
|
|
|
'video-frame.h',
|
|
|
|
'video-chroma.h',
|
|
|
|
'video-color.h',
|
|
|
|
'video-converter.h',
|
|
|
|
'video-dither.h',
|
|
|
|
'video-info.h',
|
2018-10-04 08:36:09 +00:00
|
|
|
'video-overlay-composition.h',
|
2016-08-12 15:26:31 +00:00
|
|
|
'video-resampler.h',
|
|
|
|
'video-scaler.h',
|
|
|
|
'video-tile.h',
|
|
|
|
'colorbalance.h',
|
|
|
|
'navigation.h',
|
|
|
|
]
|
|
|
|
|
2017-07-20 04:15:30 +00:00
|
|
|
video_enums = gnome.mkenums_simple('video-enumtypes',
|
|
|
|
sources : video_mkenum_headers,
|
2018-04-28 13:50:11 +00:00
|
|
|
body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
|
2017-07-20 04:15:30 +00:00
|
|
|
header_prefix : '#include <gst/video/video-prelude.h>',
|
|
|
|
decorator : 'GST_VIDEO_API',
|
|
|
|
install_header: true,
|
2018-08-10 11:43:38 +00:00
|
|
|
install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/video'))
|
2017-07-20 04:15:30 +00:00
|
|
|
gstvideo_c = video_enums[0]
|
|
|
|
gstvideo_h = video_enums[1]
|
2016-10-20 20:17:27 +00:00
|
|
|
video_gen_sources = [gstvideo_h]
|
2016-08-12 15:26:31 +00:00
|
|
|
|
|
|
|
orcsrc = 'video-orc'
|
2016-11-14 19:28:42 +00:00
|
|
|
gstvideo_deps = [gst_base_dep, libm]
|
2016-08-12 15:26:31 +00:00
|
|
|
if have_orcc
|
2016-11-14 19:28:42 +00:00
|
|
|
gstvideo_deps += [orc_dep]
|
2016-08-12 15:26:31 +00:00
|
|
|
orc_h = custom_target(orcsrc + '.h',
|
|
|
|
input : orcsrc + '.orc',
|
|
|
|
output : orcsrc + '.h',
|
|
|
|
command : orcc_args + ['--header', '-o', '@OUTPUT@', '@INPUT@'])
|
|
|
|
orc_c = custom_target(orcsrc + '.c',
|
|
|
|
input : orcsrc + '.orc',
|
|
|
|
output : orcsrc + '.c',
|
|
|
|
command : orcc_args + ['--implementation', '-o', '@OUTPUT@', '@INPUT@'])
|
|
|
|
else
|
|
|
|
orc_h = configure_file(input : orcsrc + '-dist.h',
|
|
|
|
output : orcsrc + '.h',
|
2018-09-27 12:21:14 +00:00
|
|
|
copy : true)
|
2016-08-12 15:26:31 +00:00
|
|
|
orc_c = configure_file(input : orcsrc + '-dist.c',
|
|
|
|
output : orcsrc + '.c',
|
2018-09-27 12:21:14 +00:00
|
|
|
copy : true)
|
2016-08-12 15:26:31 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
gstvideo = library('gstvideo-@0@'.format(api_version),
|
|
|
|
video_sources, gstvideo_h, gstvideo_c, orc_c, orc_h,
|
2018-04-28 13:50:11 +00:00
|
|
|
c_args : gst_plugins_base_args + ['-DBUILDING_GST_VIDEO'],
|
2016-08-12 15:26:31 +00:00
|
|
|
include_directories: [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:06:30 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-08-12 15:26:31 +00:00
|
|
|
install : true,
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : gstvideo_deps,
|
2016-08-12 15:26:31 +00:00
|
|
|
)
|
2016-10-20 20:17:27 +00:00
|
|
|
|
|
|
|
if build_gir
|
2017-04-12 14:06:45 +00:00
|
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/video/video.h' ]
|
2016-10-20 20:17:27 +00:00
|
|
|
video_gen_sources += [gnome.generate_gir(gstvideo,
|
|
|
|
sources : video_sources + video_headers + [gstvideo_c] + [gstvideo_h],
|
|
|
|
namespace : 'GstVideo',
|
|
|
|
nsversion : api_version,
|
|
|
|
identifier_prefix : 'Gst',
|
|
|
|
symbol_prefix : 'gst',
|
|
|
|
export_packages : 'gstreamer-video-1.0',
|
2017-10-05 12:28:42 +00:00
|
|
|
includes : ['Gst-1.0', 'GstBase-1.0'],
|
2016-10-20 20:17:27 +00:00
|
|
|
install : true,
|
2017-04-12 14:06:45 +00:00
|
|
|
extra_args : gst_gir_extra_args,
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : gstvideo_deps
|
|
|
|
)]
|
|
|
|
endif
|
2016-08-12 15:26:31 +00:00
|
|
|
|
|
|
|
video_dep = declare_dependency(link_with : gstvideo,
|
|
|
|
include_directories : [libsinc],
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : gstvideo_deps,
|
|
|
|
sources : video_gen_sources)
|