1 Star 0 Fork 0

lewlovehow / Learning-OpenCV-3_examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
example_09-08.cpp 831 Bytes
一键复制 编辑 原始数据 按行查看 历史
Gary Bradski 提交于 2017-05-24 16:48 . Update example_09-08.cpp
//Example 9-8. An example program which takes a single argument
//indicating a video file; that video file will be replayed inside of a wxWidgets object that
//we will define, called WxMoviePlayer
//
#include "wx/wx.h"
#include "WxMoviePlayer.hpp"
// Application class, the top level object in wxWidgets
//
class MyApp : public wxApp {
public:
virtual bool OnInit();
};
// Behind the scenes stuff to create a main() function and attach MyApp
//
DECLARE_APP( MyApp );
IMPLEMENT_APP( MyApp );
// When MyApp is initialized, do these things.
//
bool MyApp::OnInit() {
wxFrame* frame = new wxFrame( NULL, wxID_ANY, wxT("ch4_wx") );
frame->Show( true );
WxMoviePlayer* mp = new WxMoviePlayer(
frame,
wxPoint( -1, -1 ),
wxSize( 640, 480 )
);
mp->open( wxString(argv[1]) );
mp->Show( true );
return true;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/lewlovehow/Learning-OpenCV-3_examples.git
git@gitee.com:lewlovehow/Learning-OpenCV-3_examples.git
lewlovehow
Learning-OpenCV-3_examples
Learning-OpenCV-3_examples
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891