Skip to content

Commit 9cb907f

Browse files
authored
gst-plugins-imsdk: Add TensorFlow Lite plugin support (#1549)
- Add tflite option to PACKAGECONFIG to enable building the TensorFlow Lite plugin. - The corresponding tensorflow-lite recipe is present meta-qcom-distro layer. - A .bbappend in meta-qcom-distro will be used to enable the tflite option.
2 parents b9acd9d + 3c1c932 commit 9cb907f

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

conf/layer.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ BBFILES_DYNAMIC += " \
2020
openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/*/*/*.bbappend \
2121
networking-layer:${LAYERDIR}/dynamic-layers/networking-layer/*/*/*.bb \
2222
networking-layer:${LAYERDIR}/dynamic-layers/networking-layer/*/*/*.bbappend \
23+
qcom-distro:${LAYERDIR}/dynamic-layers/qcom-distro/*/*/*.bb \
24+
qcom-distro:${LAYERDIR}/dynamic-layers/qcom-distro/*/*/*.bbappend \
2325
selinux:${LAYERDIR}/dynamic-layers/selinux/*/*/*.bb \
2426
selinux:${LAYERDIR}/dynamic-layers/selinux/*/*/*.bbappend \
2527
"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Dependency recipe for tflite, tensorflow-lite, is provided by the meta-qcom-distro layer.
2+
PACKAGECONFIG:append = " tflite"

recipes-multimedia/imsdk/gst-plugins-imsdk_git.bb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,8 @@ PACKAGECONFIG[ml] = "-DENABLE_GST_ML_PLUGINS=1, -DENABLE_GST_ML_PLUGIN
3636
PACKAGECONFIG[qmmfsrc] = "-DENABLE_GST_PLUGIN_QMMFSRC=1 -DVHDR_MODES_ENABLE=ON, -DENABLE_GST_PLUGIN_QMMFSRC=0 -DVHDR_MODES_ENABLE=OFF, camera-service"
3737
PACKAGECONFIG[redissink] = "-DENABLE_GST_PLUGIN_REDISSINK=1, -DENABLE_GST_PLUGIN_REDISSINK=0, hiredis"
3838
PACKAGECONFIG[sw] = "-DENABLE_GST_SOFTWARE_PLUGINS=1, -DENABLE_GST_SOFTWARE_PLUGINS=0, gstreamer1.0-rtsp-server smart-venc-ctrl-algo"
39+
PACKAGECONFIG[tflite] = "-DENABLE_GST_PLUGIN_MLTFLITE=1, -DENABLE_GST_PLUGIN_MLTFLITE=0, tensorflow-lite"
3940
PACKAGECONFIG[videoproc] = "-DENABLE_GST_VIDEOPROC_PLUGINS=1, -DENABLE_GST_VIDEOPROC_PLUGINS=0, cairo"
41+
42+
# The TFLite plugin loads the TensorFlow Lite library at runtime using dlopen(). To ensure runtime availability, added runtime dependency on 'tensorflow-lite'.
43+
RDEPENDS:${PN}-qtimltflite += "tensorflow-lite"

0 commit comments

Comments
 (0)