summaryrefslogtreecommitdiff
path: root/src/httpservice.cpp
blob: 7b89e2315e97338c4c33c6c5c2024c7b6872e456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "httpservice.h"

#include "constants.h"
#include "macro.h"

extern uint8_t pgm_image[64 + img_width * img_height * sizeof(uint8_t)];
extern size_t pgm_image_size;
extern std::mutex pgm_image_mtx;

HttpServer::HttpServer(const std::shared_ptr<ICamera> &camera,
                       const QHostAddress &address,
                       const uint16_t port)
    : INIT_FIELD(camera)
    , INIT_FIELD(address)
    , INIT_FIELD(port)
{}