blob: 8c6f4de0aa2381e9d77b478162f24c69ccc52874 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#include "metadata.hpp"
#include "api/plugin-api.hpp"
#include "trackhat.hpp"
#include "dialog.hpp"
// XXX TODO
const QString trackhat_metadata::module_name = QStringLiteral("tracker-trackhat/pt");
pt_runtime_traits::pointer<pt_camera> trackhat_metadata::make_camera() const
{
return std::make_shared<trackhat_camera>();
}
pt_runtime_traits::pointer<pt_point_extractor> trackhat_metadata::make_point_extractor() const
{
return std::make_shared<trackhat_extractor>();
}
pt_runtime_traits::pointer<pt_frame> trackhat_metadata::make_frame() const
{
return std::make_shared<trackhat_frame>();
}
pt_runtime_traits::pointer<pt_preview> trackhat_metadata::make_preview(int w, int h) const
{
return std::make_shared<trackhat_preview>(w, h);
}
QString trackhat_metadata::get_module_name() const
{
return trackhat_metadata::module_name;
}
trackhat_pt::trackhat_pt() :
Tracker_PT(pt_runtime_traits::pointer<pt_runtime_traits>(new trackhat_metadata))
{
}
OPENTRACK_DECLARE_TRACKER(trackhat_pt, trackhat_dialog, trackhat_module)
|