CCIMXDesktop
 
Loading...
Searching...
No Matches
VideoPlayerOpencvImpl Class Reference

The VideoPlayerOpencvImpl class provides the OpenCV implementation of the video player. More...

#include <VideoPlayerOpencvImpl.h>

Inheritance diagram for VideoPlayerOpencvImpl:
VideoPlayerImpl VideoPlayerImpl

Public Member Functions

int total_frame () const override
 total_frame get the total frame of the video
 
int current_frame () override
 current_frame get the current frame of the video
 
bool rollto_nextFrame (CVImage &container) override
 rollto_nextFrame roll to the next frame
 
bool peek_frame (CVImage &container, int frame_request) override
 peek_frame peek the frame of the video
 
VideoPlayerInfo current_video_info () const override
 current_video_info get the current video information
 
bool open (const char *filename, VideoPlayerOpenErrorCode &error_code) override
 open open the video file
 
void close () override
 close close the video file
 
bool isOpened () const override
 isOpened check if the video is opened
 
void escapeFrame () override
 escapeFrame escape the current frame
 
void jumpToFrame (int frame_request) override
 jumpToFrame jump to the frame of the video
 
int total_frame () const override
 total_frame get the total frame of the video
 
int current_frame () override
 current_frame get the current frame of the video
 
bool rollto_nextFrame (CVImage &container) override
 rollto_nextFrame roll to the next frame
 
bool peek_frame (CVImage &container, int frame_request) override
 peek_frame peek the frame of the video
 
VideoPlayerInfo current_video_info () const override
 current_video_info get the current video information
 
bool open (const char *filename, VideoPlayerOpenErrorCode &error_code) override
 open open the video file
 
void close () override
 close close the video file
 
bool isOpened () const override
 isOpened check if the video is opened
 
void escapeFrame () override
 escapeFrame escape the current frame
 
void jumpToFrame (int frame_request) override
 jumpToFrame jump to the frame of the video
 
- Public Member Functions inherited from VideoPlayerImpl
 VideoPlayerImpl ()=default
 Construct a new Video Player Impl object.
 
 Q_DISABLE_COPY (VideoPlayerImpl)
 Construct a new q disable copy object.
 
 VideoPlayerImpl ()=default
 Construct a new Video Player Impl object.
 
 Q_DISABLE_COPY (VideoPlayerImpl)
 Copy is not acceptable for video.
 

Detailed Description

The VideoPlayerOpencvImpl class provides the OpenCV implementation of the video player.

Note
this is the implementation of the video player

Member Function Documentation

◆ close() [1/2]

void VideoPlayerOpencvImpl::close ( )
overridevirtual

close close the video file

Implements VideoPlayerImpl.

◆ close() [2/2]

void VideoPlayerOpencvImpl::close ( )
overridevirtual

close close the video file

Implements VideoPlayerImpl.

◆ current_frame() [1/2]

int VideoPlayerOpencvImpl::current_frame ( )
overridevirtual

current_frame get the current frame of the video

Returns
the current frame of the video

Implements VideoPlayerImpl.

◆ current_frame() [2/2]

int VideoPlayerOpencvImpl::current_frame ( )
overridevirtual

current_frame get the current frame of the video

Returns
the current frame of the video

Implements VideoPlayerImpl.

◆ current_video_info() [1/2]

VideoPlayerInfo VideoPlayerOpencvImpl::current_video_info ( ) const
overridevirtual

current_video_info get the current video information

Returns
the current video information

Implements VideoPlayerImpl.

◆ current_video_info() [2/2]

VideoPlayerInfo VideoPlayerOpencvImpl::current_video_info ( ) const
overridevirtual

current_video_info get the current video information

Returns
the current video information

Implements VideoPlayerImpl.

◆ escapeFrame() [1/2]

void VideoPlayerOpencvImpl::escapeFrame ( )
overridevirtual

escapeFrame escape the current frame

Note
frame is supposed to abolished, pointer should be moved forward

Implements VideoPlayerImpl.

◆ escapeFrame() [2/2]

void VideoPlayerOpencvImpl::escapeFrame ( )
overridevirtual

escapeFrame escape the current frame

Note
frame is supposed to abolished, pointer should be moved forward

Implements VideoPlayerImpl.

◆ isOpened() [1/2]

bool VideoPlayerOpencvImpl::isOpened ( ) const
overridevirtual

isOpened check if the video is opened

Returns
true if the video is opened

Implements VideoPlayerImpl.

◆ isOpened() [2/2]

bool VideoPlayerOpencvImpl::isOpened ( ) const
overridevirtual

isOpened check if the video is opened

Returns
true if the video is opened

Implements VideoPlayerImpl.

◆ jumpToFrame() [1/2]

void VideoPlayerOpencvImpl::jumpToFrame ( int  frame_request)
overridevirtual

jumpToFrame jump to the frame of the video

Parameters
frame_requestthe frame requested
Note
this function should jump to the frame sync,

Implements VideoPlayerImpl.

◆ jumpToFrame() [2/2]

void VideoPlayerOpencvImpl::jumpToFrame ( int  frame_request)
overridevirtual

jumpToFrame jump to the frame of the video

Parameters
frame_requestthe frame requested
Note
this function should jump to the frame sync,

Implements VideoPlayerImpl.

◆ open() [1/2]

bool VideoPlayerOpencvImpl::open ( const char *  filename,
VideoPlayerOpenErrorCode &  error_code 
)
overridevirtual

open open the video file

Parameters
filenamethe file name to open
error_codethe error code
Returns
true if the video is opened successfully

Implements VideoPlayerImpl.

◆ open() [2/2]

bool VideoPlayerOpencvImpl::open ( const char *  filename,
VideoPlayerOpenErrorCode &  error_code 
)
overridevirtual

open open the video file

Parameters
filenamethe file name to open
error_codethe error code
Returns
true if the video is opened successfully

Implements VideoPlayerImpl.

◆ peek_frame() [1/2]

bool VideoPlayerOpencvImpl::peek_frame ( CVImage container,
int  frame_request 
)
overridevirtual

peek_frame peek the frame of the video

Parameters
containerthe container to store the frame
frame_requestthe frame requested
Returns
true if the frame is peeked successfully
Note
the video will not be rolled,

Implements VideoPlayerImpl.

◆ peek_frame() [2/2]

bool VideoPlayerOpencvImpl::peek_frame ( CVImage container,
int  frame_request 
)
overridevirtual

peek_frame peek the frame of the video

Parameters
containerthe container to store the frame
frame_requestthe frame requested
Returns
true if the frame is peeked successfully
Note
the video will not be rolled,

Implements VideoPlayerImpl.

◆ rollto_nextFrame() [1/2]

bool VideoPlayerOpencvImpl::rollto_nextFrame ( CVImage container)
overridevirtual

rollto_nextFrame roll to the next frame

Parameters
containerthe container to store the frame
Returns
true if the frame is rolled successfully
Note
this function should peek the frame sync,

Implements VideoPlayerImpl.

◆ rollto_nextFrame() [2/2]

bool VideoPlayerOpencvImpl::rollto_nextFrame ( CVImage container)
overridevirtual

rollto_nextFrame roll to the next frame

Parameters
containerthe container to store the frame
Returns
true if the frame is rolled successfully
Note
this function should peek the frame sync,

Implements VideoPlayerImpl.

◆ total_frame() [1/2]

int VideoPlayerOpencvImpl::total_frame ( ) const
overridevirtual

total_frame get the total frame of the video

Returns
the total frame of the video

Implements VideoPlayerImpl.

◆ total_frame() [2/2]

int VideoPlayerOpencvImpl::total_frame ( ) const
overridevirtual

total_frame get the total frame of the video

Returns
the total frame of the video

Implements VideoPlayerImpl.


The documentation for this class was generated from the following files: