|
xvWidgets
|
Class to control the playback and processing of media obtained from VideoCapture. More...
#include <VideoPlayer.hpp>
Public Member Functions | |
| VideoPlayer (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxPanelNameStr) | |
| Constructor inherited from wxPanel. | |
| VideoPlayer (cv::VideoCapture *videoCapture) | |
| Construct a video player and use videoCapture as media source. | |
| int | getCurrentFrameIdx () |
| Returns the last frame number read from the media. | |
| ImagePanel & | getImage () |
| Get the xv::Image instance used for rendering. | |
| virtual bool | open (const cv::String &filename) |
| Try to open the named file. | |
| virtual bool | open (int device) |
| Try to open device. | |
| virtual void | play () |
| Start media loop. | |
| virtual void | play (std::function< void(cv::Mat &)> callback, std::function< void(cv::Mat &)> postProcessCallback=[](cv::Mat &){}) |
| Start media loop and execute callback for each frame. | |
| virtual void | pause () |
| Pause media loop. | |
| virtual void | stop () |
| Stops the playback thread. | |
| virtual void | seek (int) |
| Move playback to frame. | |
| virtual void | onSliderMove (wxScrollEvent &) |
| The user dragged the slider. | |
| virtual void | onSliderClickDown (wxMouseEvent &) |
| The user clicked the slider. | |
| virtual void | onSliderClickUp (wxMouseEvent &) |
| The user released the mouse button after clicking the slider. | |
| virtual void | onPlayClick (wxCommandEvent &) |
| The user clicked the playback control button. | |
| virtual void | onMouseMove (wxCommandEvent &evt) |
| The user moved the mouse. | |
Friends | |
| class | Thread |
Class to control the playback and processing of media obtained from VideoCapture.
1.8.9.1