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()) {
11 log->error(gstreamer::ERR_CANTOPENOUTPUT, SFUNCTION_NAME, "Error: can't access ", filename());
12 }
13
14 ofile << guts::GTAB << "Frame Header {\n";
15 ofile << guts::GTABTAB << " frameID: " << gframeHeader->getFrameID() << "\n";
16 ofile << guts::GTAB << "}\n";
17
18 return true;
19}
std::shared_ptr< GLogger > log
long int getFrameID() const
ASCII streamer plugin declarations.
Shared constants and error codes for the gstreamer module.
constexpr int ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.
constexpr char GTABTAB[]
constexpr char GTAB[]