Settings for a MediaReceiver.
#include <MediaReceiver.h>
Name | |
---|---|
AlignedFrame::PixelFormat | mDecodedFormat The pixel format delivered to the rendering engine. |
std::function< std::function< void(const AlignedFramePtr &)>uint32_t inputSlot, const std::string &streamID, const NewStreamParameters &newStreamParameters)> | mNewConnectionCallback |
std::function< void(uint32_t inputSlot)> | mClosedConnectionCallback |
bool | mUseMultiViewer |
bool | mDebugAudio Set to true if this MediaReceiver should have a multi-view generator. |
bool | mDebugVideo Insert a 1500 Hz sound at every other turn to a new second according to TAI. |
bool | mDeliverOld Print the timestamp in the picture. |
AlignedFrame::PixelFormat mDecodedFormat = AlignedFrame::PixelFormat::kRgba64Le;
The pixel format delivered to the rendering engine.
std::function< std::function< void(const AlignedFramePtr &)>uint32_t inputSlot, const std::string &streamID, const NewStreamParameters &newStreamParameters)> mNewConnectionCallback;
Parameters:
A callback called by the MediaReceiver whenever a new connection from an Ingest is set up. The callback should return a function to which the data will be delivered. In case the Rendering engine does not want to accept the pending incoming stream (due to a format not supported, etc) the Rendering engine can return nullptr.
std::function< void(uint32_t inputSlot)> mClosedConnectionCallback;
Parameters:
A callback called whenever a connection from an Ingest has been stopped. When receiving this callback, the callback function returned by the mNewConnectionCallback will not be called anymore and can be discarded if required by the application. After this function has been called, the input slot might be reused by another incoming stream after a call to the mNewConnectionCallback.
bool mUseMultiViewer = false;
bool mDebugAudio = false;
Set to true if this MediaReceiver should have a multi-view generator.
bool mDebugVideo = false;
Insert a 1500 Hz sound at every other turn to a new second according to TAI.
bool mDeliverOld = false;
Print the timestamp in the picture.
Updated on 2023-01-23 at 12:02:53 +0100