gstreamer
Loading...
Searching...
No Matches
frameHeader.cc
Go to the documentation of this file.
1// gstreamer
4
5// c++
6#include<vector>
7
8// Non-Doxygen implementation file: behavior is documented in the header.
9bool GstreamerJSROFactory::publishFrameHeaderImpl([[maybe_unused]] const GFrameHeader* gframeHeader) {
10 if (ofile == nullptr) { log->error(ERR_CANTOPENOUTPUT, "Error: can't open ", ofile); }
11
12 // fill dataFrameHeader here or in startStream
13 //vector<unsigned int> frame_data;
14 // dataFrameHeader = *reinterpret_cast<DataFrameHeader*>(frame_data.data());
15
16 ofile->write(reinterpret_cast<const char*>(frame_data.data()), sizeof(DataFrameHeader));
17
18 return true;
19}
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 (file/device not accessible).
JLAB SRO frame streamer plugin definitions.
Packed frame header written at the beginning of each frame record.