LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
videoframe.h
Go to the documentation of this file.
1
5#pragma once
6
7#ifdef __cplusplus
8#include <memory>
9#include "opencv2/core/mat.hpp"
10#endif
11
17typedef struct {
18 uint64_t frameId;
19 uint64_t time;
20 uint64_t streamId;
21 uint64_t channels;
22 uint64_t height;
23 uint64_t width;
24 int64_t valueType;
25
26 uint64_t cropY;
27 uint64_t cropX;
29 uint64_t originalWidth;
30
31 void *data;
33
34#ifdef __cplusplus
35namespace SR {
36
46public:
47 uint64_t frameId;
48 uint64_t time;
49 uint64_t streamId;
50 std::shared_ptr<cv::Mat> image;
51
52 operator SR_videoFrame() {
53 return {
54 frameId,
55 time,
57 (uint64_t)image->channels(),
58 (uint64_t)image->size().height,
59 (uint64_t)image->size().width,
60 image->type(),
61 0, 0, 0, 0,
62 image->data,
63 };
64 }
65};
66
67}
68#endif
Class containing an image recorded by a Camera.
Definition: videoframe.h:45
uint64_t time
Definition: videoframe.h:48
uint64_t streamId
Definition: videoframe.h:49
uint64_t frameId
Definition: videoframe.h:47
std::shared_ptr< cv::Mat > image
Definition: videoframe.h:50
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
C-compatible struct containing an image recorded by a Camera.
Definition: videoframe.h:17
uint64_t streamId
Definition: videoframe.h:20
uint64_t channels
Definition: videoframe.h:21
int64_t valueType
Definition: videoframe.h:24
uint64_t originalWidth
Definition: videoframe.h:29
void * data
Definition: videoframe.h:31
uint64_t originalHeight
Definition: videoframe.h:28
uint64_t time
Definition: videoframe.h:19
uint64_t frameId
Definition: videoframe.h:18
uint64_t cropX
Definition: videoframe.h:27
uint64_t cropY
Definition: videoframe.h:26
uint64_t height
Definition: videoframe.h:22
uint64_t width
Definition: videoframe.h:23