1#ifndef VIDEOPLAYEROPENCVIMPL_H
2#define VIDEOPLAYEROPENCVIMPL_H
3#include "VideoPlayerImpl.h"
59 bool open(
const char* filename,
60 VideoPlayerOpenErrorCode& error_code)
override;
88 cv::VideoCapture* internal_capture {
nullptr };
89 int internal_current_frame { INVALID_VIDEO_FRAME_N };
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
The VideoPlayerOpencvImpl class provides the OpenCV implementation of the video player.
Definition VideoPlayerOpencvImpl.h:13
void close() override
close close the video file
bool peek_frame(CVImage &container, int frame_request) override
peek_frame peek the frame of the video
int total_frame() const override
total_frame get the total frame of the video
void escapeFrame() override
escapeFrame escape the current frame
bool open(const char *filename, VideoPlayerOpenErrorCode &error_code) override
open open the video file
void jumpToFrame(int frame_request) override
jumpToFrame jump to the frame of the video
bool rollto_nextFrame(CVImage &container) override
rollto_nextFrame roll to the next frame
bool isOpened() const override
isOpened check if the video is opened
int current_frame() override
current_frame get the current frame of the video
VideoPlayerInfo current_video_info() const override
current_video_info get the current video information
The VideoPlayerInfo struct provides the video information.
Definition VideoPlayerImpl.h:22