2017-01-17 15:43:44 +00:00
|
|
|
omx_sources = [
|
|
|
|
'gstomx.c',
|
|
|
|
'gstomxbufferpool.c',
|
|
|
|
'gstomxvideo.c',
|
|
|
|
'gstomxvideodec.c',
|
|
|
|
'gstomxvideoenc.c',
|
|
|
|
'gstomxaudiodec.c',
|
|
|
|
'gstomxaudioenc.c',
|
|
|
|
'gstomxmjpegdec.c',
|
|
|
|
'gstomxmpeg4videodec.c',
|
|
|
|
'gstomxmpeg2videodec.c',
|
|
|
|
'gstomxh264dec.c',
|
2017-07-03 11:17:11 +00:00
|
|
|
'gstomxh264utils.c',
|
2017-01-17 15:43:44 +00:00
|
|
|
'gstomxh263dec.c',
|
|
|
|
'gstomxwmvdec.c',
|
|
|
|
'gstomxmpeg4videoenc.c',
|
|
|
|
'gstomxh264enc.c',
|
|
|
|
'gstomxh263enc.c',
|
|
|
|
'gstomxaacdec.c',
|
|
|
|
'gstomxmp3dec.c',
|
|
|
|
'gstomxaacenc.c',
|
|
|
|
'gstomxamrdec.c',
|
|
|
|
'gstomxaudiosink.c',
|
|
|
|
'gstomxanalogaudiosink.c',
|
|
|
|
'gstomxhdmiaudiosink.c',
|
2017-07-12 14:00:53 +00:00
|
|
|
'gstomxmp3enc.c',
|
2017-01-17 15:43:44 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
extra_inc = []
|
|
|
|
extra_c_args = []
|
|
|
|
|
|
|
|
if have_omx_vp8
|
|
|
|
omx_sources += 'gstomxvp8dec.c'
|
|
|
|
endif
|
|
|
|
|
|
|
|
if have_omx_theora
|
|
|
|
omx_sources += 'gstomxtheoradec.c'
|
|
|
|
endif
|
|
|
|
|
2017-07-12 09:01:15 +00:00
|
|
|
if have_omx_hevc
|
|
|
|
omx_sources += 'gstomxh265utils.c'
|
|
|
|
omx_sources += 'gstomxh265enc.c'
|
2017-07-12 12:35:10 +00:00
|
|
|
omx_sources += 'gstomxh265dec.c'
|
2017-07-12 09:01:15 +00:00
|
|
|
endif
|
|
|
|
|
2017-01-17 15:43:44 +00:00
|
|
|
if not have_external_omx
|
|
|
|
extra_inc += include_directories ('openmax')
|
|
|
|
endif
|
|
|
|
|
|
|
|
optional_deps = []
|
|
|
|
if gstgl_dep.found()
|
|
|
|
optional_deps += gstgl_dep
|
|
|
|
extra_c_args += ['-DGST_USE_UNSTABLE_API']
|
|
|
|
endif
|
|
|
|
|
|
|
|
gstomx = library('gstomx',
|
|
|
|
omx_sources,
|
|
|
|
c_args : gst_omx_args + extra_c_args,
|
|
|
|
# link_args : noseh_link_args,
|
|
|
|
include_directories : [configinc] + extra_inc,
|
|
|
|
dependencies : [gstvideo_dep, gstaudio_dep, gstbase_dep, gstcontroller_dep,
|
2017-07-04 10:16:39 +00:00
|
|
|
libm, gmodule_dep, gstallocators_dep] + optional_deps,
|
2017-01-17 15:43:44 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|