gstreamer
Loading...
Searching...
No Matches
frameHeader.cc
Go to the documentation of this file.
1// gstreamer
4
5// Implementation summary:
6// Append the frame header block to the JSON object currently being assembled.
7
8bool GstreamerJsonFactory::publishFrameHeaderImpl(const GFrameHeader* gframeHeader) {
9 if (!is_building_frame) {
11 "publishFrameHeaderImpl called without an active frame in GstreamerJsonFactory");
12 return false;
13 }
14 if (!gframeHeader) {
16 "gframeHeader is null in GstreamerJsonFactory::publishFrameHeaderImpl");
17 return false;
18 }
19
20 current_frame << "\"header\": {"
21 << "\"frame_id\": " << gframeHeader->getFrameID()
22 << "}";
23
24 current_frame_has_header = true;
25 return true;
26}
std::shared_ptr< GLogger > log
long int getFrameID() const
Shared constants and error codes for the gstreamer module.
JSON streamer plugin declarations.
constexpr int ERR_PUBLISH_ERROR
Publish sequence encountered invalid state or invalid input data.