struct dlstreamer::ElementDesc#

The structure used to register element and create element instance.

#include <element.h>

struct ElementDesc {
    // fields

    int32_t magic = ElementDescMagic;
    std::string_view name;
    std::string_view description;
    std::string_view author;
    ParamDescVector* params;
    FrameInfoVector input_info;
    FrameInfoVector output_info;
    const std::function<Element*(DictionaryCPtr params, const ContextPtr&app_context)> create;
    int flags = 0;
};