gstreamer
Loading...
Searching...
No Matches
frameHeader.cc
Go to the documentation of this file.
1// gstreamer
4
5// c++
6#include<vector>
7
8// Implementation summary:
9// Write only the packed binary header section of the current frame record.
10
11bool GstreamerJSROFactory::publishFrameHeaderImpl([[maybe_unused]] const GFrameHeader* gframeHeader) {
12 if (ofile == nullptr) { log->error(ERR_CANTOPENOUTPUT, "Error: can't open ", ofile); }
13
14 ofile->write(reinterpret_cast<const char*>(frame_data.data()), sizeof(DataFrameHeader));
15
16 return true;
17}
std::shared_ptr< GLogger > log
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 successfully.
JLAB SRO binary frame streamer declarations.
Packed binary frame header written ahead of each JLAB SRO payload.