gstreamer
Loading...
Searching...
No Matches
frameHeader.cc
Go to the documentation of this file.
1// gstreamer
4
5// Implementation summary:
6// Serialize the frame header as an indented text block.
7// Use '\n' instead of std::endl so each line does not force a flush.
8
9bool GstreamerTextFactory::publishFrameHeaderImpl(const GFrameHeader* gframeHeader) {
10 if (!ofile.is_open()) { log->error(ERR_CANTOPENOUTPUT, SFUNCTION_NAME, "Error: can't access ", filename()); }
11
12 ofile << GTAB << "Frame Header {\n";
13 ofile << GTABTAB << " frameID: " << gframeHeader->getFrameID() << "\n";
14 ofile << GTAB << "}\n";
15
16 return true;
17}
std::shared_ptr< GLogger > log
long int getFrameID() const
void error(int exit_code, Args &&... args) const
ASCII streamer plugin declarations.
Shared constants and error codes for the gstreamer module.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.
#define GTAB
#define GTABTAB