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 | mDeliverOld Set to true if this MediaReceiver should have a multi-view generator. |
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 mDeliverOld = false;
Set to true if this MediaReceiver should have a multi-view generator.
Updated on 2023-06-13 at 17:00:17 +0200