gstreamer
Loading...
Searching...
No Matches
publishPayload.cc
Go to the documentation of this file.
1// gstreamer
4
5// Implementation summary:
6// Serialize the frame payload as a simple list of payload rows.
7
8bool GstreamerTextFactory::publishPayloadImpl(const std::vector<GIntegralPayload*>* payload) {
9 if (!ofile.is_open()) { log->error(ERR_CANTOPENOUTPUT, SFUNCTION_NAME, "Error: can't access ", filename()); }
10
11 ofile << GTAB << "Payload {\n";
12
13 // Each GIntegralPayload contributes one line made of its packed integer values.
14 for (auto pload : *payload) {
15 for (auto pvar : pload->getPayload()) { ofile << GTABTAB << pvar; }
16 ofile << "\n";
17 }
18 ofile << GTAB << "}\n";
19
20 return true;
21}
std::shared_ptr< GLogger > log
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