libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
medianode.h File Reference
#include <functional>
#include <mutex>
#include <promeki/core/namespace.h>
#include <promeki/core/objectbase.h>
#include <promeki/core/string.h>
#include <promeki/core/error.h>
#include <promeki/core/list.h>
#include <promeki/core/map.h>
#include <promeki/core/variant.h>
#include <promeki/core/queue.h>
#include <promeki/core/timestamp.h>
#include <promeki/proav/mediaport.h>
#include <promeki/proav/medialink.h>
#include <promeki/proav/frame.h>
Include dependency graph for medianode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  NodeMessage
 Structured message emitted by a pipeline node. More...
 
struct  NodeStats
 Snapshot of node performance statistics. More...
 
class  MediaNode
 Base class for all pipeline processing nodes. More...
 

Macros

#define PROMEKI_REGISTER_NODE(ClassName)
 Macro to register a MediaNode subclass for runtime creation.
 

Enumerations

enum class  Severity { Severity::Info , Severity::Warning , Severity::Error , Severity::Fatal }
 Severity level for node messages. More...
 

Detailed Description

See LICENSE file in the project root folder for license information.

Macro Definition Documentation

◆ PROMEKI_REGISTER_NODE

#define PROMEKI_REGISTER_NODE (   ClassName)
Value:
static struct ClassName##Registrar { \
MediaNode::registerNodeType(#ClassName, []() -> MediaNode * { return new ClassName(); }); \
} \
Dynamic array container wrapping std::vector.
Definition list.h:40
List()=default
Default constructor. Creates an empty list.
Base class for all pipeline processing nodes.
Definition medianode.h:81

Macro to register a MediaNode subclass for runtime creation.

Place this in the .cpp file of each concrete MediaNode subclass. It registers the class at static initialization time so that MediaNode::createNode() can instantiate it by name.