MediaReceiver::Settings

MediaReceiver::Settings

Settings for a MediaReceiver.

#include <MediaReceiver.h>

Public Attributes

Name
AlignedData::PixelFormatmDecodedFormat
The pixel format delivered to the rendering engine.
std::function< std::function< void(const std::shared_ptr< AlignedData::DataFrame > &)> uint32_t inputSlot, const std::string &streamID, const NewStreamParameters &newStreamParameters)>mNewConnectionCallback
std::function< void(uint32_t inputSlot)>mClosedConnectionCallback
boolmUseMultiViewer
boolmDebugAudio
Set to true if this MediaReceiver should have a multi-view generator.
boolmDebugVideo
Insert a 1500 Hz sound at every other turn to a new second according to TAI.
boolmDeliverOld
Print the timestamp in the picture.

Public Attributes Documentation

variable mDecodedFormat

AlignedData::PixelFormat mDecodedFormat = AlignedData::PixelFormat::kRgba64Le;

The pixel format delivered to the rendering engine.

variable mNewConnectionCallback

std::function< std::function< void(const std::shared_ptr< AlignedData::DataFrame > &)> uint32_t inputSlot, const std::string &streamID, const NewStreamParameters &newStreamParameters)> mNewConnectionCallback;

Parameters:

  • inputSlot can be seen as a virtual SDI input on a hardware mixer and should be used by the Rendering engine to identify sources. For example, if a source is connected to input slot 5, the button “Cut to camera 5” on the control panel ought to cut to this stream. The MediaReceiver is responsible for making sure only one stream can be connected to an input slot at a time. This callback might be called multiple times with the same input slot, however, in case the stream has been disconnected and the mClosedConnectionCallback has been called for that input slot earlier.
  • streamID is the identification string of the video/audio source on the Ingest. A Rendering engine might have the same StreamID connected multiple times (for instance if two different alignments are used for the same source) so this should not be used as an unique identifier for the stream.
  • newStreamParameters contains information on the pending incoming stream to allow the Rendering engine to decide if it can receive it or not.

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.

variable mClosedConnectionCallback

std::function< void(uint32_t inputSlot)> mClosedConnectionCallback;

Parameters:

  • inputSlot The input slot that was disconnected

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.

variable mUseMultiViewer

bool mUseMultiViewer = false;

variable mDebugAudio

bool mDebugAudio = false;

Set to true if this MediaReceiver should have a multi-view generator.

variable mDebugVideo

bool mDebugVideo = false;

Insert a 1500 Hz sound at every other turn to a new second according to TAI.

variable mDeliverOld

bool mDeliverOld = false;

Print the timestamp in the picture.


Updated on 2022-06-22 at 16:53:25 +0200