1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/test/videotest4/mainwindow.h
2019-09-07 23:32:36 +08:00

42 lines
734 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <qcamera.h>
#include <qqtvideomanager.h>
namespace Ui {
class MainWindow;
}
/**
* @brief The MainWindow class
* 经过测试无论如何QVideoProbe都不能从Android拿到录像原因不明。
*/
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow ( QWidget* parent = 0 );
~MainWindow();
private slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void slotSetPicture ( QImage );
void present ( const QVideoFrame& frame );
private:
Ui::MainWindow* ui;
QCamera* camera;
QVideoProbe* probe;
};
#endif // MAINWINDOW_H