BufferInformation.h 1.05 KB
Newer Older
d11's avatar
no    
d11 committed
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
#ifndef _BUFFER_INFORMATION_
#define _BUFFER_INFORMATION_

#include <thread>
#include <vector>
#include <mutex>
#include <list>

#define _GNULINUX
#include <bgapi2_genicam/bgapi2_genicam.hpp>

// structure which holds additional information
// transferred together with the camera buffer
// this structure should be adapted to needs of the application
struct BufferInformation{
    BufferInformation() { 
        frameid = 0;
        number_of_incomplete_images = 0;
        resend_requests = 0;
        resend_requests_single = 0;
        resend_requests_range = 0;
    }
    // frame id of the camera buffer
    bo_uint64 frameid;
    // statistic value, number of incomplete images
    bo_uint64 number_of_incomplete_images;
    // statistic value, number of resend requests
    bo_int64 resend_requests;
    // statistic value, number resend requests requesting a single data packet
    bo_int64 resend_requests_single;
    // statistic value, number of resend requests requesting a bunch of data packet
    bo_int64 resend_requests_range;
};

#endif //_BUFFER_INFORMATION_