|
Ring Daemon
|
#include <video_mixer.h>


Classes | |
| struct | VideoMixerSource |
Additional Inherited Members | |
Protected Member Functions inherited from jami::Observable< std::shared_ptr< MediaFrame > > | |
| void | notify (std::shared_ptr< MediaFrame > data) |
Protected Attributes inherited from jami::Observable< std::shared_ptr< MediaFrame > > | |
| 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 78 of file video_mixer.cpp.
| jami::video::VideoMixer::~VideoMixer | ( | ) |
Definition at line 96 of file video_mixer.cpp.
References JAMI_DBG, jami::ThreadLoop::join(), and stopInputs().

|
inline |
Definition at line 118 of file video_mixer.h.
References jami::emitSignal(), and updateLayout().

|
overridevirtual |
Reimplemented from jami::Observer< std::shared_ptr< MediaFrame > >.
Definition at line 206 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 169 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 220 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 184 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 570 of file video_mixer.cpp.
|
overridevirtual |
Implements jami::video::VideoGenerator.
Definition at line 576 of file video_mixer.cpp.
|
inline |
Definition at line 116 of file video_mixer.h.
| MediaStream jami::video::VideoMixer::getStream | ( | const std::string & | name | ) | const |
Definition at line 582 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 101 of file video_mixer.h.
|
inline |
Definition at line 107 of file video_mixer.h.
|
overridevirtual |
Implements jami::video::VideoGenerator.
Definition at line 564 of file video_mixer.cpp.
|
inline |
Definition at line 126 of file video_mixer.h.
References jami::emitSignal(), and updateLayout().

|
inline |
Definition at line 85 of file video_mixer.h.
References updateLayout().
Referenced by setVideoLayout().

Definition at line 154 of file video_mixer.cpp.
References updateLayout().

|
inline |
Definition at line 103 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 519 of file video_mixer.cpp.
References jami::emitSignal(), jami::libav_utils::fillWithBlack(), jami::video::VideoGenerator::obtainLastFrame(), and updateLayout().

Definition at line 93 of file video_mixer.h.
References jami::emitSignal(), jami::video::GRID, and resetActiveStream().

| void jami::video::VideoMixer::stopInputs | ( | ) |
Stop all inputs.
Definition at line 146 of file video_mixer.cpp.
Referenced by switchInputs(), and ~VideoMixer().
|
inline |
Definition at line 140 of file video_mixer.h.
References jami::emitSignal().

Set all inputs at once.
| inputs | New inputs |
Definition at line 107 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 236 of file video_mixer.cpp.
References jami::emitSignal(), JAMI_ERR, and jami::video::HardwareAccel::transferToMainMemory().

| void jami::video::VideoMixer::updateLayout | ( | ) |
Definition at line 161 of file video_mixer.cpp.
References jami::video::GRID.
Referenced by addAudioOnlySource(), attached(), detached(), removeAudioOnlySource(), resetActiveStream(), setActiveStream(), and setParameters().
Definition at line 91 of file video_mixer.h.
Referenced by detachVideo().