summaryrefslogtreecommitdiff
path: root/src/constants.h
blob: 303e7285c0d1967fa0ad9ebc94d7b17cd3b4dc0d (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
#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;

// imx287llr
constexpr size_t img_width = 704;
constexpr size_t img_height = 544;

constexpr size_t img_size = img_width * 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";

const QString dumpsRoot{QStringLiteral("/home/user/dumps")};