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
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
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
void escapeFrame()
escapeFrame escape the current frame
qint64 currentFrameMSec() const
currentFrameMSec get the current frame in mseconds
bool valid_video() const
valid_video check if the video is valid
bool peekFrame(CVImage &container, int frame_request)
peekFrame peek the frame of the video
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
int total_frame() const
total_frame get the total frame of the video
VideoPlayer(QObject *parent=nullptr)
Construct a new Video Player object.
bool play()
play start the video play
bool pause()
pause stop the video play
bool is_playing() const
is_playing check if the video is playing
The VideoPlayerInfo struct provides the video information.
Definition VideoPlayerImpl.h:22
int fps
fps
Definition VideoPlayerImpl.h:23