gstreamer
Loading...
Searching...
No Matches
frameHeader.cc
Go to the documentation of this file.
1// gstreamer
4
5// using \n instead of endl so flushing isn't forced at each line
6// Non-Doxygen implementation file: behavior is documented in the header.
7bool GstreamerTextFactory::publishFrameHeaderImpl(const GFrameHeader* gframeHeader) {
8 if (!ofile.is_open()) { log->error(ERR_CANTOPENOUTPUT, SFUNCTION_NAME, "Error: can't access ", filename()); }
9
10 ofile << GTAB << "Frame Header {\n";
11 ofile << GTABTAB << " frameID: " << gframeHeader->getFrameID() << "\n";
12 ofile << GTAB << "}\n";
13
14 return true;
15}
std::shared_ptr< GLogger > log
long int getFrameID() const
void error(int exit_code, Args &&... args) const
Shared constants and error codes for the gstreamer module.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened (file/device not accessible).
#define GTAB
#define GTABTAB