DJI Onboard SDK  4.0
dji_camera_image.hpp
1 
9 #ifndef ADVANCED_SENSING_DJI_CAMERA_IMAGE_HPP
10 #define ADVANCED_SENSING_DJI_CAMERA_IMAGE_HPP
11 #include <cstdint>
12 #include <vector>
13 
18 {
19  // rawData.size should be height x width x 3 x sizeof(char)
20  std::vector<uint8_t> rawData;
21  int height;
22  int width;
23 };
24 
28 typedef void (*CameraImageCallback)(CameraRGBImage pImg, void* userData);
29 
33 typedef void (*H264Callback)(uint8_t* buf, int bufLen, void* userData);
34 
38 enum CameraType
39 {
40  FPV_CAMERA = 0,
41  MAIN_CAMERA = 1
42 };
43 
44 #endif //ADVANCED_SENSING_DJI_CAMERA_IMAGE_HPP
Data structure for the image frames from the FPV camera or main camera.
Definition: dji_camera_image.hpp:17