-
Notifications
You must be signed in to change notification settings - Fork 0
/
avximgapi.h
47 lines (37 loc) · 1.1 KB
/
avximgapi.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
#ifndef AVXIMGAPI_H
#define AVXIMGAPI_H
#include <QVector>
#include <imagereader.h>
class avximgapi
{
public:
avximgapi(ImageReader * imgReader);
~avximgapi();
void fillHorVector(int x0 , int y0, QVector<float> &tmp, ImageReader & imgReader);
void fillVerVector(int x0 , int y0, QVector<float> &tmp, ImageReader & imgReader);
void fillHorVector(int x0 , int y0, float * tmp, ImageReader & imgReader);
void fillVerVector(int x0 , int y0, float * tmp, ImageReader & imgReader);
float sum(QVector<float> &vec);
float sum(float * vec);
float multSecMinusOneAndSum(QVector<float> &vec);
void countBvAndBh();
float countQs();
void countBvAndBhCalloc();
void countDandB();
float avxVecSum(const __m256 & x);
void countDandBAVx();
void countDandBAVxCalloc();
void recalcLimits();
ImageReader * imgReader;
ImageReader * BhReader;
ImageReader * BvReader;
float * dIvPtr;
float * dIhPtr;
float * bIvPtr;
float * bIhPtr;
size_t kSize;
size_t rightLimit;
size_t leftLimit;
size_t isCalloc = 0;
};
#endif // AVXIMGAPI_H