You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

7 years ago
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __VIDEO_SOURCE_CHOOSER_WIDGET_HEADER__
  2. #define __VIDEO_SOURCE_CHOOSER_WIDGET_HEADER__
  3. #include "VideoThumbWidget.h"
  4. #include "../dialogs/addSourceDialog.h"
  5. #include "../../data/media/video/videoAVLIBSource.h"
  6. #include "../../data/media/mediaVideoSourceManager.h"
  7. #include "../../alg/video/bdetect/blobDetector.h"
  8. #include "../../alg/video/vmd/motionDetector.h"
  9. //#include "../../alg/video/darknet/darknetDetector.h"
  10. #include "../../alg/video/optical/opticalFlow.h"
  11. #include "../../alg/video/surf/surf.h"
  12. #include "../../alg/video/vlfeat/vlfeat.h"
  13. class VideoSourceChooser: public QWidget {
  14. private:
  15. /* GUI */
  16. QWidget *m_pParentWidget;
  17. QHBoxLayout *m_pHorizontalLayout;
  18. guiAddSourceDialog *m_pAddSourceDialog;
  19. QPushButton *m_pButtonCmdAdd;
  20. QSpacerItem *m_pSideSpacer;
  21. basicMediaDestination *m_pMainPreview;
  22. videoNode *m_pCurrentVideoNode;
  23. basicCamera *m_pCurrentCamera;
  24. /* Data */
  25. mediaVideoSourceManager *m_pSourceManager;
  26. public:
  27. explicit VideoSourceChooser( QWidget *parent=NULL );
  28. ~VideoSourceChooser();
  29. void setMainMediaViewer( basicMediaDestination *V);
  30. void removeCamera( basicCamera *ptr);
  31. public slots:
  32. void createNew(SOURCE_INFO *SI);
  33. basicCamera *getSelectedCamera();
  34. void selectForMainPreview(void *P);
  35. void showAddSourceDialog();
  36. void showEditSourceDialog(int index);
  37. };
  38. #endif