113 _colorR = r; _colorG = g; _colorB = b;
165 bool _drawBackground =
true;
Lightweight error code wrapper for the promeki library.
Definition error.h:39
Simple value type wrapping std::filesystem::path.
Definition filepath.h:27
Renders text into an image using a TrueType font.
Definition fontpainter.h:23
Dynamic array container wrapping std::vector.
Definition list.h:40
Base object for promeki.
Definition objectbase.h:129
ObjectBase * parent() const
Returns the parent object, if one. nullptr if none.
Definition objectbase.h:258
Encoding-aware string class with copy-on-write semantics.
Definition string.h:35
Burns timecode text into video frames using FontPainter.
Definition timecodeoverlaynode.h:37
void setDrawBackground(bool enable)
Enables or disables drawing a dark background behind the text.
Definition timecodeoverlaynode.h:121
Position position() const
Returns the current position preset.
Definition timecodeoverlaynode.h:104
virtual ~TimecodeOverlayNode()=default
Destructor.
int fontSize() const
Returns the font size in points.
Definition timecodeoverlaynode.h:76
void setFontSize(int points)
Sets the font size in points.
Definition timecodeoverlaynode.h:73
void setPosition(Position pos)
Sets the text position using a named preset.
Definition timecodeoverlaynode.h:86
void process() override
Reads timecode from the input image's metadata and renders it as text.
Position
Named position presets for text placement.
Definition timecodeoverlaynode.h:41
@ BottomCenter
Bottom center.
Definition timecodeoverlaynode.h:46
@ TopCenter
Top center.
Definition timecodeoverlaynode.h:43
@ Custom
Custom x/y coordinates.
Definition timecodeoverlaynode.h:48
@ BottomRight
Bottom-right corner.
Definition timecodeoverlaynode.h:47
@ TopLeft
Top-left corner.
Definition timecodeoverlaynode.h:42
@ TopRight
Top-right corner.
Definition timecodeoverlaynode.h:44
@ BottomLeft
Bottom-left corner.
Definition timecodeoverlaynode.h:45
const FilePath & fontPath() const
Returns the font path.
Definition timecodeoverlaynode.h:67
void setPosition(int x, int y)
Sets a custom text position.
Definition timecodeoverlaynode.h:96
void setTextColor(uint16_t r, uint16_t g, uint16_t b)
Sets the text color.
Definition timecodeoverlaynode.h:112
TimecodeOverlayNode(ObjectBase *parent=nullptr)
Constructs a TimecodeOverlayNode.
const String & customText() const
Returns the custom text.
Definition timecodeoverlaynode.h:133
void setFontPath(const FilePath &path)
Sets the path to the TrueType font file.
Definition timecodeoverlaynode.h:64
bool drawBackground() const
Returns true if background drawing is enabled.
Definition timecodeoverlaynode.h:124
Error configure() override
Validates the font path and initializes the FontPainter.
void setCustomText(const String &text)
Sets additional custom text to render below the timecode.
Definition timecodeoverlaynode.h:130
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19