-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
37 lines (24 loc) · 732 Bytes
/
main.h
File metadata and controls
37 lines (24 loc) · 732 Bytes
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
#include <mutex>
#include <QMainWindow>
#include <QImage>
#include <QLabel>
#include <QSlider>
#include <libcamera/libcamera.h>
#define REQUEST_LIST_SIZE 1
using namespace libcamera;
// Main physical camera obj
static std::shared_ptr<libcamera::Camera> camera;
// Shared Request Q
static std::vector<std::unique_ptr<Request>> requestList;
// Here we would display the stream
static QImage viewfinder;
// The label to hold our viewfinder
static QLabel *viewfinder_label;
// Our brightness Slider
static QSlider *slider;
//Helper to q Requests
void qReq();
//requestCallback handler
static void requestComplete(Request *request);
//request Ceator
void createReq(libcamera::Stream *stream, libcamera::FrameBuffer *buffer);