# 更新 BitBake 文件以进行插件编译的步骤

Source: [https://docs.qualcomm.com/doc/80-70014-15BY/topic/steps-to-update-bitbake-for-compilation.html](https://docs.qualcomm.com/doc/80-70014-15BY/topic/steps-to-update-bitbake-for-compilation.html)

1. 请按照有关编译和安装插件的 `superresolution` 说明进行操作 [创建自己的 Qualcomm IM SDK 插件](https://docs.qualcomm.com/doc/80-70014-15BY/topic/esdk-create-own-plugin.html)。
2. 设置 Wayland 显示界面

        ssh root@[IP addrof the target device]Copy to clipboard

Note: 如果提示输入密码，则输入 oelinux123 作为 SSH shell 的密码。

        export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1Copy to clipboard

**参考 GStreamer pipeline 以使用 `qtimlvsuperresolution` 插件**

    gst-launch-1.0 -e --gst-debug=2,qtimltflite:7 \
    filesrc location=/opt/video.mp4 ! qtdemux ! queue ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! queue ! tee name=split \ split. ! queue ! qtivcomposer name=mixer sink_0::position="<0, 0>" sink_0::dimensions="<960, 1080>" sink_1::position="<960, 0>" sink_1::dimensions="<960, 1080>" ! \
    queue ! waylandsink sync=true fullscreen=true \
    split. ! qtimlvconverter ! queue ! qtimltflite delegate=external external- delegate-path=libQnnTFLiteDelegate.so external-delegate- options="QNNExternalDelegate,backend_type=htp;" model=/opt/quicksrnetlarge_quantized.tflite ! queue ! qtimlvsuperresolution module=srnet constants="qsrnetlarge,q-offsets=<0.0>,q-scales=<1.0>;" ! video/x-raw,width=512,height=512,format=RGB ! queue ! mixer.Copy to clipboard

Note: 输入视频分辨率必须为 128 x 128 x 3，作为 quicksrnetlarge\_quantized.tflite 模型，输入尺寸为 128x128x3。

Last Published: Jan 26, 2026

[Previous Topic
创建 srnet 模块的步骤](https://docs.qualcomm.com/bundle/publicresource/80-70014-15BY/topics/steps-to-create-srnet-module.md) [Next Topic
AI Hub – Qualcomm IM SDK](https://docs.qualcomm.com/bundle/publicresource/80-70014-15BY/topics/ai-hub-imsdk.md)