#include <VideoPlayer.h>
Inherits QThread.
VideoPlayer::VideoPlayer |
( |
VideoManager * |
videoManager, |
|
|
QObject * |
parent = 0 |
|
) |
| |
VideoPlayer::~VideoPlayer |
( |
| ) |
|
double VideoPlayer::getCurrentFrame |
( |
| ) |
|
double VideoPlayer::getFrameRate |
( |
| ) |
|
- Returns
- frame rate of the video
double VideoPlayer::getNumberOfFrames |
( |
| ) |
|
- Returns
- total number of frames in the video
bool VideoPlayer::isStopped |
( |
| ) |
const |
- Returns
- whether playback is stopped
bool VideoPlayer::loadVideo |
( |
std::string |
filename | ) |
|
Sets new input video file in VideoManager and gets the video frame rate.
- Parameters
-
filename | The path to the new input video file. |
- Returns
- true if loading was successful
void VideoPlayer::msleep |
( |
int |
ms | ) |
|
|
protected |
Capsules the sleep-method of QThread.
- Parameters
-
void VideoPlayer::Play |
( |
| ) |
|
If player is not running, starts the player thread at low priority.
void VideoPlayer::processedImage |
( |
const QImage & |
image | ) |
|
|
signal |
void VideoPlayer::run |
( |
| ) |
|
|
protected |
Gets a frame from the VideoManager, transforms it to a QImage and emits it as processedImage signal. (Overrides the run-method of the thread.)
void VideoPlayer::setCurrentFrame |
( |
int |
frameNumber | ) |
|
void VideoPlayer::Stop |
( |
| ) |
|
The documentation for this class was generated from the following files: