Ring Daemon 16.0.0
|
#include <video_mixer.h>
Classes | |
struct | VideoMixerSource |
Additional Inherited Members | |
![]() | |
void | notify (std::shared_ptr< MediaFrame > data) |
![]() | |
std::mutex | mutex_ |
std::set< Observer< std::shared_ptr< MediaFrame > > * > | observers_ |
std::list< std::weak_ptr< Observer< std::shared_ptr< MediaFrame > > > > | priority_observers_ |
Definition at line 56 of file video_mixer.h.
jami::video::VideoMixer::VideoMixer | ( | const std::string & | id, |
const std::string & | localInput = {} , |
||
bool | attachHost = false |
||
) |
Definition at line 80 of file video_mixer.cpp.
jami::video::VideoMixer::~VideoMixer | ( | ) |
Definition at line 100 of file video_mixer.cpp.
References JAMI_DBG, jami::ThreadLoop::join(), and stopInputs().
|
inline |
Definition at line 119 of file video_mixer.h.
References jami::emitSignal(), and updateLayout().
|
overridevirtual |
Reimplemented from jami::Observer< std::shared_ptr< MediaFrame > >.
Definition at line 210 of file video_mixer.cpp.
References jami::emitSignal(), JAMI_DBG, JAMI_DEBUG, and updateLayout().
void jami::video::VideoMixer::attachVideo | ( | Observable< std::shared_ptr< MediaFrame > > * | frame, |
const std::string & | callId, | ||
const std::string & | streamId | ||
) |
Definition at line 173 of file video_mixer.cpp.
References jami::emitSignal(), and JAMI_DBG.
Referenced by switchInputs().
|
overridevirtual |
Reimplemented from jami::Observer< std::shared_ptr< MediaFrame > >.
Definition at line 224 of file video_mixer.cpp.
References jami::emitSignal(), JAMI_DBG, JAMI_DEBUG, and updateLayout().
void jami::video::VideoMixer::detachVideo | ( | Observable< std::shared_ptr< MediaFrame > > * | frame | ) |
Definition at line 188 of file video_mixer.cpp.
References jami::Observable< std::shared_ptr< MediaFrame > >::detach(), jami::emitSignal(), JAMI_DBG, and verifyActive().
|
overridevirtual |
Implements jami::video::VideoGenerator.
Definition at line 585 of file video_mixer.cpp.
|
overridevirtual |
Implements jami::video::VideoGenerator.
Definition at line 591 of file video_mixer.cpp.
|
inline |
Definition at line 117 of file video_mixer.h.
MediaStream jami::video::VideoMixer::getStream | ( | const std::string & | name | ) | const |
Definition at line 597 of file video_mixer.cpp.
References jami::MediaStream::firstTimestamp, jami::MediaStream::format, jami::MediaStream::frameRate, jami::MediaStream::height, jami::MediaStream::isVideo, jami::video::MIXER_FRAMERATE, jami::MediaStream::name, jami::MediaStream::timeBase, and jami::MediaStream::width.
|
inline |
Definition at line 102 of file video_mixer.h.
|
inline |
Definition at line 108 of file video_mixer.h.
|
overridevirtual |
Implements jami::video::VideoGenerator.
Definition at line 579 of file video_mixer.cpp.
|
inline |
Definition at line 127 of file video_mixer.h.
References jami::emitSignal(), and updateLayout().
|
inline |
Definition at line 86 of file video_mixer.h.
References updateLayout().
Referenced by setVideoLayout().
Definition at line 158 of file video_mixer.cpp.
References updateLayout().
|
inline |
Definition at line 104 of file video_mixer.h.
References jami::emitSignal().
void jami::video::VideoMixer::setParameters | ( | int | width, |
int | height, | ||
AVPixelFormat | format = AV_PIX_FMT_YUV422P |
||
) |
Definition at line 534 of file video_mixer.cpp.
References jami::emitSignal(), jami::libav_utils::fillWithBlack(), jami::video::VideoGenerator::obtainLastFrame(), and updateLayout().
Definition at line 94 of file video_mixer.h.
References jami::emitSignal(), jami::video::GRID, and resetActiveStream().
void jami::video::VideoMixer::stopInputs | ( | ) |
Stop all inputs.
Definition at line 150 of file video_mixer.cpp.
Referenced by switchInputs(), and ~VideoMixer().
|
inline |
Definition at line 141 of file video_mixer.h.
References jami::emitSignal().
Set all inputs at once.
inputs | New inputs |
Definition at line 111 of file video_mixer.cpp.
References attachVideo(), jami::emitSignal(), stopInputs(), and jami::sip_utils::streamId().
|
overridevirtual |
Implements jami::Observer< std::shared_ptr< MediaFrame > >.
Definition at line 240 of file video_mixer.cpp.
References jami::emitSignal(), JAMI_ERR, and jami::video::HardwareAccel::transferToMainMemory().
void jami::video::VideoMixer::updateLayout | ( | ) |
Definition at line 165 of file video_mixer.cpp.
References jami::video::GRID.
Referenced by addAudioOnlySource(), attached(), detached(), removeAudioOnlySource(), resetActiveStream(), setActiveStream(), and setParameters().
Definition at line 92 of file video_mixer.h.
Referenced by detachVideo().