Signals | |
void | openError (const VideoPlayerOpenErrorCode error) |
openError the signal indicating the open error | |
void | frameReady (const CVImage image) |
frameReady the signal indicating the frame is ready | |
void | about_fetch_frame () |
about_fetch_frame the signal indicating the frame is ready | |
void | videoEnd () |
videoEnd the signal indicating the video end | |
void | openError (const VideoPlayerOpenErrorCode error) |
openError the signal indicating the open error | |
void | frameReady (const CVImage image) |
frameReady the signal indicating the frame is ready | |
void | about_fetch_frame () |
about_fetch_frame the signal indicating the frame is ready | |
void | videoEnd () |
videoEnd the signal indicating the video end | |
Public Member Functions | |
VideoPlayer (QObject *parent=nullptr) | |
Construct a new Video Player object. | |
bool | open (const char *video_path) |
open open the video file | |
QString | current_handle () const |
current_handle get the current handle | |
bool | close () |
close close the video file | |
bool | play () |
play start the video play | |
bool | pause () |
pause stop the video play | |
int | total_frame () const |
total_frame get the total frame of the video | |
int | total_msecs () const |
total_msecs get the total mseconds of the video | |
VideoPlayerInfo | get_info () const |
get_info get the info of the video | |
int | current_frame () const |
current_frame get the current frame of the video | |
bool | valid_video () const |
valid_video check if the video is valid | |
bool | is_playing () const |
is_playing check if the video is playing | |
qint64 | currentFrameMSec () const |
currentFrameMSec get the current frame in mseconds | |
bool | setCurrentFrameMSec (const qint64 msec) |
setCurrentFrameMSec set the current frame in mseconds | |
void | escapeFrame () |
escapeFrame escape the current frame | |
bool | peekFrame (CVImage &container, int frame_request) |
peekFrame peek the frame of the video | |
VideoPlayer (QObject *parent=nullptr) | |
Construct a new Video Player object. | |
bool | open (const char *video_path) |
open open the video file | |
QString | current_handle () const |
current_handle get the current handle | |
bool | close () |
close close the video file | |
bool | play () |
play start the video play | |
bool | pause () |
pause stop the video play | |
int | total_frame () const |
total_frame get the total frame of the video | |
int | total_msecs () const |
total_msecs get the total mseconds of the video | |
VideoPlayerInfo | get_info () const |
get_info get the info of the video | |
int | current_frame () const |
current_frame get the current frame of the video | |
bool | valid_video () const |
valid_video check if the video is valid | |
bool | is_playing () const |
is_playing check if the video is playing | |
qint64 | currentFrameMSec () const |
currentFrameMSec get the current frame in mseconds | |
bool | setCurrentFrameMSec (const qint64 msec) |
setCurrentFrameMSec set the current frame in mseconds | |
void | escapeFrame () |
escapeFrame escape the current frame | |
bool | peekFrame (CVImage &container, int frame_request) |
peekFrame peek the frame of the video | |
|
explicit |
Construct a new Video Player object.
parent |
|
explicit |
Construct a new Video Player object.
parent |
bool VideoPlayer::close | ( | ) |
close close the video file
bool VideoPlayer::close | ( | ) |
close close the video file
int VideoPlayer::current_frame | ( | ) | const |
current_frame get the current frame of the video
int VideoPlayer::current_frame | ( | ) | const |
current_frame get the current frame of the video
|
inline |
current_handle get the current handle
|
inline |
current_handle get the current handle
qint64 VideoPlayer::currentFrameMSec | ( | ) | const |
currentFrameMSec get the current frame in mseconds
qint64 VideoPlayer::currentFrameMSec | ( | ) | const |
currentFrameMSec get the current frame in mseconds
void VideoPlayer::escapeFrame | ( | ) |
escapeFrame escape the current frame
void VideoPlayer::escapeFrame | ( | ) |
escapeFrame escape the current frame
|
signal |
frameReady the signal indicating the frame is ready
image | the image to display |
|
signal |
frameReady the signal indicating the frame is ready
image | the image to display |
|
inline |
get_info get the info of the video
|
inline |
get_info get the info of the video
bool VideoPlayer::is_playing | ( | ) | const |
is_playing check if the video is playing
bool VideoPlayer::is_playing | ( | ) | const |
is_playing check if the video is playing
bool VideoPlayer::open | ( | const char * | video_path | ) |
open open the video file
video_path | the video path to open |
bool VideoPlayer::open | ( | const char * | video_path | ) |
open open the video file
video_path | the video path to open |
|
signal |
openError the signal indicating the open error
error | the error code |
|
signal |
openError the signal indicating the open error
error | the error code |
bool VideoPlayer::pause | ( | ) |
pause stop the video play
bool VideoPlayer::pause | ( | ) |
pause stop the video play
bool VideoPlayer::peekFrame | ( | CVImage & | container, |
int | frame_request | ||
) |
peekFrame peek the frame of the video
container | the container to store the frame |
frame_request | the frame requested |
bool VideoPlayer::peekFrame | ( | CVImage & | container, |
int | frame_request | ||
) |
peekFrame peek the frame of the video
container | the container to store the frame |
frame_request | the frame requested |
bool VideoPlayer::play | ( | ) |
play start the video play
bool VideoPlayer::play | ( | ) |
play start the video play
bool VideoPlayer::setCurrentFrameMSec | ( | const qint64 | msec | ) |
setCurrentFrameMSec set the current frame in mseconds
msec | the mseconds to set |
bool VideoPlayer::setCurrentFrameMSec | ( | const qint64 | msec | ) |
setCurrentFrameMSec set the current frame in mseconds
msec | the mseconds to set |
int VideoPlayer::total_frame | ( | ) | const |
total_frame get the total frame of the video
int VideoPlayer::total_frame | ( | ) | const |
total_frame get the total frame of the video
|
inline |
total_msecs get the total mseconds of the video
|
inline |
total_msecs get the total mseconds of the video
bool VideoPlayer::valid_video | ( | ) | const |
valid_video check if the video is valid
bool VideoPlayer::valid_video | ( | ) | const |
valid_video check if the video is valid