ADTF Qt5
Loading...
Searching...
No Matches
Qt5 JavaScript Processor

Plugin Information

Plugin Filenameadtf_qt5.adtfplugin
Plugin Descriptionadtf_qt5.plugindescription
Plugin NameQt5 Plugin
LicenseADTF Subscription
Support Mailsupport@digitalwerk.net
Homepage URLhttps://adtf.dev/

Plugin Versions

Plugin Version1.99.99
Plugin File Version1.0
adtf3.24.0
adtf::ucom3.1.0

Component Information

NameQt5 JavaScript Processor
CIDjavascript.filter.adtf.cid
DescriptionUse this filter to program a basic logic using Javascript code. Note: This is only recommended for quick filter algorithms. If you need performance, C++ is still the best solution.
TypeFilter

Properties

NameValueTypeDescriptionSubproperties
log_channels/default/fatal_action2tUInt32The default action when a fatal error is reported.Value List:
Stop session = 2
Shutdown ADTF = 3
Abort to crash handler = 4Value Range:
minimum =
maximum = Filename Extension Filter:
log_channels/default/log_level35tUInt8The log level for this channel.Value List:
None = 0
Error = 10
Warning = 20
Info = 30
Detail = 35
Dump = 40
All = 255Value Range:
minimum =
maximum = Filename Extension Filter:
log_channels/default/recoverable_action0tUInt8The action to perform when a recoverable error is reported.Value List:
Log only = 0
Treat as fatal = 1Value Range:
minimum =
maximum = Filename Extension Filter:
script_file_namecFilenamePath to used script file.Value Range:
minimum =
maximum = Filename Extension Filter:
synchronous_trigger_processingtruetBoolIf enabled triggers will be delayed until they have been processed within the script.Value Range:
minimum =
maximum = Filename Extension Filter:

Dynamic Pins

Dynamic Input Pinstrue
Dynamic Output Pinstrue
Dynamic Input Binding Pinstrue
Dynamic Output Binding Pinstrue

Required Interfaces

IID
reference_clock.vision.streaming.adtf.iid

Introduction

This is a filter wrapping the functionality of QJSEngine from the Qt framework.
Providing a simple way to use JavaScript code as filter in a filter graph, receiving and sending samples.

Note
The difference to the Qt5 QML Processor is that this filter is designed to work headless and synchronously in the trigger pipe.
Its triggers are handled by the GUI Thread, meaning that they are asynchron.

JavaScript Filter SDK

The following global javascript Objects are available in your scripts:

For all other available wrapper classes and objects please see adtf::javascript::scripting.