EMIPLIB
|
This component creates video output streams. More...
#include <mipvideomixer.h>
Public Member Functions | |
bool | init (real_t frameRate, int maxStreams=-1) |
Initializes the component. | |
bool | destroy () |
De-initializes the component. | |
bool | setExtraDelay (MIPTime t) |
Adds an additional playback delay. |
The name 'mixer' is a bit misleading for this component since it does not actually mix several video frames into one frame. However, it does work in a very similar way as the audio mixer, which is the reason for its name. The component accepts raw video messages in YUV420P format and stores them in an output queue based on the timing information contained in the messages. During each interval, a number of raw video frames in YUV420P format is produced.
bool MIPVideoMixer::destroy | ( | ) |
bool MIPVideoMixer::init | ( | real_t | frameRate, |
int | maxStreams = -1 |
||
) |
Using this function, the component can be initialized.
frameRate | The output frame rate. |
maxStreams | Maximum allowed number of streams. If set to -1, the number of streams is unlimited. |
bool MIPVideoMixer::setExtraDelay | ( | MIPTime | t | ) |
Using this function, an additional playback delay can be introduced. Note that only positive delays are allowed. This can be useful for inter-media synchronization, in case not all the component delays are known well enough to provide exact synchronization. Using this function, the synchronization can then be adjusted manually.