-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsimplefilter.h
49 lines (39 loc) · 1015 Bytes
/
simplefilter.h
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
40
41
42
43
44
45
46
47
48
49
#ifndef SIMPLEFILTER_H
#define SIMPLEFILTER_H
#include <QMainWindow>
#include "Ffplay/Display.h"
#include "Ffplay/Frame.h"
#include "yolo_v2_class.hpp"
#include <npp.h>
#include "Utilities/cudaexception.h"
#include "opencv2/opencv.hpp"
using namespace cv;
class SimpleFilter : public QObject
{
Q_OBJECT
public:
SimpleFilter(QMainWindow *parent);
~SimpleFilter();
void initialize(AVFrame *f);
void destroy();
QMainWindow *mainWindow;
bool first_pass;
AVFrame *rgb;
image_t img;
SwsContext *sws_ctx;
void processCPU(Frame *vp);
void processGPU(Frame *vp);
void process(Frame *vp);
void infer(Frame *vp);
void test();
void cuda_example(Frame *vp);
void nppi_example(Frame *vp);
void box_filter(Frame *vp);
void mat_example(Frame *vp);
void nppi_convert(Frame *vp);
void canny(Frame *vp);
void tricky(Frame *vp);
NppStreamContext initializeNppStreamContext();
CudaExceptionHandler eh;
};
#endif // SIMPLEFILTER_H