config: add omxmp3dec config for tizonia

GST_OMX_CONFIG_DIR=$HOME/gst/master/gst-omx/config/tizonia/ \
    gst-launch-1.0 filesrc location=mpthreetest.mp3 ! id3demux ! \
    mpegaudioparse ! omxmp3dec ! audioconvert ! pulsesink

v2: [Nicolas] Use template to create gstomx.conf using pkg-config

v3: [Nicolas] Ignore only config/tizonia/gstomx.conf

v4: [Nicolas] Add "/" for single occurence

https://bugzilla.gnome.org/show_bug.cgi?id=782800
This commit is contained in:
Gurkirpal Singh 2017-04-29 02:56:59 +05:30 committed by Nicolas Dufresne
parent 065878a5d4
commit eed49b4231
5 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View file

@ -8,6 +8,7 @@ config.guess
config.sub
config.rpath
configure
/config/tizonia/gstomx.conf
libtool
stamp-h
stamp-h.in

View file

@ -0,0 +1,8 @@
EXTRA_DIST = gstomx.conf.in
if USE_OMX_TARGET_TIZONIA
configdir = $(sysconfdir)/xdg
config_DATA = gstomx.conf
endif
CLEANFILES = gstomx.conf

View file

@ -0,0 +1,7 @@
[omxmp3dec]
type-name=GstOMXMP3Dec
core-name=@TIZONIA_LIBDIR@/libtizcore.so
component-name=OMX.Aratelia.audio_decoder.mp3
rank=257
in-port-index=0
out-port-index=1

View file

@ -0,0 +1 @@
install_data (['gstomx.conf'], install_dir : omx_conf_dir)

View file

@ -227,6 +227,8 @@ dnl settings for tizonia target
if test "x$ac_cv_omx_target" = "xtizonia"; then
PKG_CHECK_MODULES([TIZONIA], [tizilheaders])
CPPFLAGS="$CPPFLAGS $TIZONIA_CFLAGS"
TIZONIA_LIBDIR="`$PKG_CONFIG --variable=libdir tizilheaders`"
AC_SUBST(TIZONIA_LIBDIR)
fi
AC_ARG_WITH([omx-header-path],
@ -377,6 +379,8 @@ tools/Makefile
config/Makefile
config/bellagio/Makefile
config/rpi/Makefile
config/tizonia/gstomx.conf
config/tizonia/Makefile
config/zynqultrascaleplus/Makefile
examples/Makefile
examples/egl/Makefile