2018-10-22 09:30:45 +00:00
|
|
|
codecparser_sources = files([
|
2016-08-12 15:51:45 +00:00
|
|
|
'gstjpeg2000sampling.c',
|
|
|
|
'gstjpegparser.c',
|
|
|
|
'gstmpegvideoparser.c',
|
|
|
|
'gsth264parser.c',
|
|
|
|
'gstvc1parser.c',
|
|
|
|
'gstmpeg4parser.c',
|
|
|
|
'gsth265parser.c',
|
|
|
|
'gstvp8parser.c',
|
|
|
|
'gstvp8rangedecoder.c',
|
|
|
|
'gstvp9parser.c',
|
|
|
|
'vp9utils.c',
|
|
|
|
'parserutils.c',
|
|
|
|
'nalutils.c',
|
|
|
|
'dboolhuff.c',
|
|
|
|
'vp8utils.c',
|
|
|
|
'gstmpegvideometa.c',
|
2020-02-24 14:38:39 +00:00
|
|
|
'gstav1parser.c'
|
2018-10-22 09:30:45 +00:00
|
|
|
])
|
2016-08-12 15:51:45 +00:00
|
|
|
codecparser_headers = [
|
2018-03-13 12:34:24 +00:00
|
|
|
'codecparsers-prelude.h',
|
2016-08-12 15:51:45 +00:00
|
|
|
'gstmpegvideoparser.h',
|
|
|
|
'gsth264parser.h',
|
|
|
|
'gstvc1parser.h',
|
|
|
|
'gstmpeg4parser.h',
|
|
|
|
'gsth265parser.h',
|
|
|
|
'gstvp8parser.h',
|
|
|
|
'gstvp8rangedecoder.h',
|
|
|
|
'gstjpeg2000sampling.h',
|
|
|
|
'gstjpegparser.h',
|
|
|
|
'gstmpegvideometa.h',
|
|
|
|
'gstvp9parser.h',
|
2020-02-24 14:38:39 +00:00
|
|
|
'gstav1parser.h'
|
2016-08-12 15:51:45 +00:00
|
|
|
]
|
|
|
|
install_headers(codecparser_headers, subdir : 'gstreamer-1.0/gst/codecparsers')
|
|
|
|
|
|
|
|
cp_args = [
|
|
|
|
'-DGST_USE_UNSTABLE_API',
|
2018-09-24 10:52:22 +00:00
|
|
|
'-DBUILDING_GST_CODEC_PARSERS',
|
2021-10-01 14:31:18 +00:00
|
|
|
'-DG_LOG_DOMAIN="GStreamer-CodecParsers"',
|
2016-08-12 15:51:45 +00:00
|
|
|
'-Dvp8_norm=gst_codecparsers_vp8_norm',
|
|
|
|
'-Dvp8dx_start_decode=gst_codecparsers_vp8dx_start_decode',
|
|
|
|
'-Dvp8dx_bool_decoder_fill=gst_codecparsers_vp8dx_bool_decoder_fill',
|
|
|
|
]
|
|
|
|
|
|
|
|
gstcodecparsers = library('gstcodecparsers-' + api_version,
|
|
|
|
codecparser_sources,
|
|
|
|
c_args : gst_plugins_bad_args + cp_args,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:07:46 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-08-12 15:51:45 +00:00
|
|
|
install : true,
|
|
|
|
dependencies : [gstbase_dep, libm],
|
|
|
|
)
|
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
pkg_name = 'gstreamer-codecparsers-1.0'
|
2018-04-07 20:33:47 +00:00
|
|
|
pkgconfig.generate(gstcodecparsers,
|
|
|
|
libraries : [gst_dep, gstbase_dep],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
2020-06-27 04:39:00 +00:00
|
|
|
name : pkg_name,
|
2018-04-07 20:33:47 +00:00
|
|
|
description : 'Bitstream parsers for GStreamer elements',
|
|
|
|
)
|
|
|
|
|
2016-08-12 15:51:45 +00:00
|
|
|
gstcodecparsers_dep = declare_dependency(link_with : gstcodecparsers,
|
|
|
|
include_directories : [libsinc],
|
|
|
|
dependencies : [gstbase_dep])
|
2018-04-07 20:33:47 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
libraries += [[pkg_name, {'lib': gstcodecparsers}]]
|
|
|
|
meson.override_dependency(pkg_name, gstcodecparsers_dep)
|