A VideoSource that emits frames received by Core.
More...
#include <corevideosource.h>
|
| void | subscribe () override |
| | If subscribe sucessfully opens the source, it will start emitting frameAvailable signals. More...
|
| |
| void | unsubscribe () override |
| | Stop emitting frameAvailable signals, and free associated resources if necessary. More...
|
| |
| | VideoSource () |
| |
| virtual | ~VideoSource ()=default |
| |
A VideoSource that emits frames received by Core.
Definition at line 28 of file corevideosource.h.
◆ CoreVideoSource()
| CoreVideoSource::CoreVideoSource |
( |
| ) |
|
|
private |
◆ pushFrame()
| void CoreVideoSource::pushFrame |
( |
const vpx_image_t * |
vpxframe | ) |
|
|
private |
◆ restartSource()
| void CoreVideoSource::restartSource |
( |
| ) |
|
|
private |
◆ setDeleteOnClose()
| void CoreVideoSource::setDeleteOnClose |
( |
bool |
newstate | ) |
|
|
private |
Setup delete on close.
- Parameters
-
| If | true, self-delete after the last suscriber is gone |
Definition at line 132 of file corevideosource.cpp.
◆ stopSource()
| void CoreVideoSource::stopSource |
( |
| ) |
|
|
private |
Stopping the source.
- See also
- The callers in CoreAV for the rationale
Stopping the source will block any pushFrame calls from doing anything
Definition at line 144 of file corevideosource.cpp.
◆ subscribe()
| void CoreVideoSource::subscribe |
( |
| ) |
|
|
overridevirtual |
If subscribe sucessfully opens the source, it will start emitting frameAvailable signals.
Implements VideoSource.
Definition at line 108 of file corevideosource.cpp.
◆ unsubscribe()
| void CoreVideoSource::unsubscribe |
( |
| ) |
|
|
overridevirtual |
◆ CoreAV
◆ ToxFriendCall
◆ biglock
| QMutex CoreVideoSource::biglock |
|
private |
◆ deleteOnClose
| std::atomic_bool CoreVideoSource::deleteOnClose |
|
private |
◆ stopped
| std::atomic_bool CoreVideoSource::stopped |
|
private |
◆ subscribers
| std::atomic_int CoreVideoSource::subscribers |
|
private |
The documentation for this class was generated from the following files: