2016-08-12 15:51:45 +00:00
|
|
|
openjpeg_sources = [
|
|
|
|
'gstopenjpeg.c',
|
|
|
|
'gstopenjpegdec.c',
|
|
|
|
'gstopenjpegenc.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
openjpeg_cargs = []
|
|
|
|
|
2020-05-14 15:13:00 +00:00
|
|
|
openjpeg_dep = dependency('libopenjp2', version : '>=2.2',
|
|
|
|
fallback : ['libopenjp2', 'libopenjp2_dep'],
|
2021-10-22 16:13:46 +00:00
|
|
|
required : get_option('openjpeg'),
|
|
|
|
default_options: ['build_codec=false'])
|
2016-08-12 15:51:45 +00:00
|
|
|
|
|
|
|
if openjpeg_dep.found()
|
|
|
|
gstopenjpeg = library('gstopenjpeg',
|
|
|
|
openjpeg_sources,
|
|
|
|
c_args : gst_plugins_bad_args + openjpeg_cargs,
|
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gst_dep, gstvideo_dep, openjpeg_dep,
|
2020-03-24 13:15:30 +00:00
|
|
|
gstcodecparsers_dep, libm],
|
2016-08-12 15:51:45 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstopenjpeg]
|
2016-08-12 15:51:45 +00:00
|
|
|
endif
|