4#include "VideoPlayerImpl.h"
51 bool open(
const char* video_path);
171 void time_to_fetch_next_frame();
175 bool on_play {
false };
177 int play_sleep { 0 };
178 QString last_open {};
The CVImage class is the image class that provides the image in the frameworks.
Definition CVImage.h:9
The VideoPlayerImpl class VideoPlayerImpl is the interface for video player and the impl class is sup...
Definition VideoPlayerImpl.h:33
Definition VideoPlayer.h:35
bool open(const char *video_path)
open open the video file
Definition VideoPlayer.cpp:24
QString current_handle() const
current_handle get the current handle
Definition VideoPlayer.h:57
void openError(const VideoPlayerOpenErrorCode error)
openError the signal indicating the open error
int total_msecs() const
total_msecs get the total mseconds of the video
Definition VideoPlayer.h:88
void videoEnd()
videoEnd the signal indicating the video end
int current_frame() const
current_frame get the current frame of the video
Definition VideoPlayer.cpp:87
VideoPlayerInfo get_info() const
get_info get the info of the video
Definition VideoPlayer.h:97
void about_fetch_frame()
about_fetch_frame the signal indicating the frame is ready
bool close()
close close the video file
Definition VideoPlayer.cpp:43
void escapeFrame()
escapeFrame escape the current frame
Definition VideoPlayer.cpp:129
qint64 currentFrameMSec() const
currentFrameMSec get the current frame in mseconds
Definition VideoPlayer.cpp:100
bool valid_video() const
valid_video check if the video is valid
Definition VideoPlayer.cpp:91
bool peekFrame(CVImage &container, int frame_request)
peekFrame peek the frame of the video
Definition VideoPlayer.cpp:148
void frameReady(const CVImage image)
frameReady the signal indicating the frame is ready
bool setCurrentFrameMSec(const qint64 msec)
setCurrentFrameMSec set the current frame in mseconds
Definition VideoPlayer.cpp:112
int total_frame() const
total_frame get the total frame of the video
Definition VideoPlayer.cpp:83
bool play()
play start the video play
Definition VideoPlayer.cpp:51
bool pause()
pause stop the video play
Definition VideoPlayer.cpp:67
bool is_playing() const
is_playing check if the video is playing
Definition VideoPlayer.cpp:95
The VideoPlayerInfo struct provides the video information.
Definition VideoPlayerImpl.h:22
int fps
fps
Definition VideoPlayerImpl.h:23