DFX Extraction library v4.14.5
enabling applications to perform DFX blood flow analysis
ChunkPayload.h
1 /*
2  * Copyright (c) 2016-2019, Nuralogix Corp.
3  * All Rights reserved
4  *
5  * THIS SOFTWARE IS LICENSED BY AND IS THE CONFIDENTIAL AND
6  * PROPRIETARY PROPERTY OF NURALOGIX CORP. IT IS
7  * PROTECTED UNDER THE COPYRIGHT LAWS OF THE USA, CANADA
8  * AND OTHER FOREIGN COUNTRIES. THIS SOFTWARE OR ANY
9  * PART THEREOF, SHALL NOT, WITHOUT THE PRIOR WRITTEN CONSENT
10  * OF NURALOGIX CORP, BE USED, COPIED, DISCLOSED,
11  * DECOMPILED, DISASSEMBLED, MODIFIED OR OTHERWISE TRANSFERRED
12  * EXCEPT IN ACCORDANCE WITH THE TERMS AND CONDITIONS OF A
13  * NURALOGIX CORP SOFTWARE LICENSE AGREEMENT.
14  */
15 #pragma once
16 #ifndef LIBDFX_CHUNKPAYLOAD_H
17 #define LIBDFX_CHUNKPAYLOAD_H
18 
19 #include <stdint.h>
20 #include <vector>
21 
22 namespace dfx {
23 
29 struct ChunkPayload {
31  uint8_t valid;
32 
34  uint32_t startFrame;
35 
37  uint32_t endFrame;
38 
40  uint32_t chunkNumber;
41 
43  uint32_t numberChunks;
44 
47 
49  uint32_t startTime_s;
50 
52  uint32_t endTime_s;
53 
55  float duration_s;
56 
58  std::vector<uint8_t> payload;
59 
61  std::vector<uint8_t> metadata;
62 };
63 
64 } // namespace dfx
65 
66 #endif // LIBDFX_CHUNKPAYLOAD_H
dfx::ChunkPayload::duration_s
float duration_s
duration of the chunk in seconds
Definition: ChunkPayload.h:55
dfx::ChunkPayload::valid
uint8_t valid
if this payload was succesfully created.
Definition: ChunkPayload.h:31
dfx::ChunkPayload::endTime_s
uint32_t endTime_s
end time of the chunk in seconds
Definition: ChunkPayload.h:52
dfx::ChunkPayload::payload
std::vector< uint8_t > payload
binary payload of chunk
Definition: ChunkPayload.h:58
dfx::ChunkPayload::metadata
std::vector< uint8_t > metadata
metadata information associated with chunk (JSON)
Definition: ChunkPayload.h:61
dfx::ChunkPayload
Chunk that was captured by a Collection.
Definition: ChunkPayload.h:29
dfx::ChunkPayload::chunkNumber
uint32_t chunkNumber
sequential number of the chunk starting at zero
Definition: ChunkPayload.h:40
dfx::ChunkPayload::startTime_s
uint32_t startTime_s
start time of the chunk in seconds
Definition: ChunkPayload.h:49
dfx
Definition: ChunkData.h:21
dfx::ChunkPayload::firstChunkStartTime_s
uint32_t firstChunkStartTime_s
the start time of the first chunk in seconds
Definition: ChunkPayload.h:46
dfx::ChunkPayload::startFrame
uint32_t startFrame
starting frame of chunk.
Definition: ChunkPayload.h:34
dfx::ChunkPayload::endFrame
uint32_t endFrame
last frame in chunk.
Definition: ChunkPayload.h:37
dfx::ChunkPayload::numberChunks
uint32_t numberChunks
the number of chunks expected in measurement
Definition: ChunkPayload.h:43