blob: 6770f5f8380e68132e5fc825e2ade2b72553da7c (
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
40
41
42
|
#pragma once
#include <cstddef>
#include <cstdint>
// TODO: get rid of qstring
#include <QString>
// ov9281
// constexpr size_t img_width = 1280;
// constexpr size_t img_height = 800;
#define RADXA_ZERO_3E
// imx287llr
constexpr size_t img_width = 704;
constexpr size_t radxa_raw_img_stride = 768;
constexpr size_t img_height = 544;
constexpr size_t img_size = img_width * img_height;
constexpr size_t radxa_raw_img_size = radxa_raw_img_stride * img_height;
constexpr uint32_t patternSize = 16;
constexpr float hardcodedZRangeMm{175.f};
constexpr size_t calibrationTableHeight{0x4000}; // 16384
namespace {
constexpr uint16_t discretesInRage{16384};
}
// http json keys
const QString exposureTimeKey = "exposureTime";
const QString laserLevelKey = "laserLevel";
const QString gainKey = "gain";
// TODO: remove hardcode
const QString user{"radxa"};
const QString dumpsRoot{QStringLiteral("/home/%1/dumps").arg(user)};
constexpr double debugZRange{5.0};
|