29 #ifndef _DJI_FILE_INTERNAL_DEFINE_HPP_ 30 #define _DJI_FILE_INTERNAL_DEFINE_HPP_ 37 DJI_DOWNLOAD_FILE_ABORT_ERROR = 1,
38 DJI_DOWNLOAD_FILE_ABORT_FORCE = 2,
39 DJI_DOWNLOAD_FILE_ABORT_ERROR_FLASH = 3,
40 DJI_DOWNLOAD_FILE_ABORT_SESSION_REALLOC = 4,
41 DJI_DOWNLOAD_FILE_ABORT_SESSION_BUSY = 5,
42 DJI_DOWNLOAD_FILE_ABORT_ERROR_OTHER = 4294967295,
43 } DJI_DOWNLOAD_FILE_ABORT_ERROR_CODE;
45 typedef enum : uint32_t {
46 TransAbortReasonError = 0,
47 TransAbortReasonForce,
48 TransAbortReasonSizeError,
49 TransAbortReasonReadFailed,
52 typedef enum : uint8_t {
53 DJI_CAMERA_VIDEO_FRAME_RATE_15FPS = 0,
54 DJI_CAMERA_VIDEO_FRAME_RATE_24FPS = 1,
55 DJI_CAMERA_VIDEO_FRAME_RATE_25FPS = 2,
56 DJI_CAMERA_VIDEO_FRAME_RATE_30FPS = 3,
57 DJI_CAMERA_VIDEO_FRAME_RATE_48FPS = 4,
58 DJI_CAMERA_VIDEO_FRAME_RATE_50FPS = 5,
59 DJI_CAMERA_VIDEO_FRAME_RATE_60FPS = 6,
60 DJI_CAMERA_VIDEO_FRAME_RATE_120FPS = 7,
61 DJI_CAMERA_VIDEO_FRAME_RATE_240FPS = 8,
62 DJI_CAMERA_VIDEO_FRAME_RATE_480FPS = 9,
63 DJI_CAMERA_VIDEO_FRAME_RATE_100PS = 10,
64 DJI_CAMERA_VIDEO_FRAME_RATE_96FPS = 11,
65 DJI_CAMERA_VIDEO_FRAME_RATE_180FPS = 12,
66 DJI_CAMERA_VIDEO_FRAME_RATE_TRUE24FPS = 13,
67 DJI_CAMERA_VIDEO_FRAME_RATE_TRUE30FPS = 14,
68 DJI_CAMERA_VIDEO_FRAME_RATE_TRUE48FPS = 15,
69 DJI_CAMERA_VIDEO_FRAME_RATE_TRUE60FPS = 16,
70 DJI_CAMERA_VIDEO_FRAME_RATE_90FPS = 17,
71 DJI_CAMERA_VIDEO_FRAME_RATE_192FPS = 18,
72 DJI_CAMERA_VIDEO_FRAME_RATE_200FPS = 19,
73 DJI_CAMERA_VIDEO_FRAME_RATE_400FPS = 20,
74 DJI_CAMERA_VIDEO_FRAME_RATE_8FPS = 21,
75 DJI_CAMERA_VIDEO_FRAME_RATE_20FPS = 22,
76 DJI_CAMERA_VIDEO_FRAME_RATE_8_DOT_8FPS = 23,
77 } DJI_CAMERA_VIDEO_FRAME_RATE;
80 typedef enum : uint8_t {
85 } DJI_MULTIMEDIA_ROTATE;
87 typedef enum : uint8_t {
88 DJI_GENERAL_DOWNLOAD_FILE_FUNC_TYPE_REQ = 0,
89 DJI_GENERAL_DOWNLOAD_FILE_FUNC_TYPE_DATA = 1,
90 DJI_GENERAL_DOWNLOAD_FILE_FUNC_TYPE_ACK = 2,
91 DJI_GENERAL_DOWNLOAD_FILE_FUNC_TYPE_PUSH = 3,
92 DJI_GENERAL_DOWNLOAD_FILE_FUNC_TYPE_ABORT = 4,
93 DJI_GENERAL_DOWNLOAD_FILE_FUNC_TYPE_DEL = 5,
94 DJI_GENERAL_DOWNLOAD_FILE_FUNC_TYPE_PAUSE = 6,
95 DJI_GENERAL_DOWNLOAD_FILE_FUNC_TYPE_RESUME = 7,
96 } DJI_GENERAL_DOWNLOAD_FILE_FUNC_TYPE;
98 typedef enum : uint8_t {
99 DJI_GENERAL_DOWNLOAD_FILE_TASK_TYPE_LIST = 0,
100 DJI_GENERAL_DOWNLOAD_FILE_TASK_TYPE_FILE = 1,
101 DJI_GENERAL_DOWNLOAD_FILE_TASK_TYPE_STREAM = 2,
102 DJI_GENERAL_DOWNLOAD_FILE_TASK_TYPE_MULTI_STREAM =
104 } DJI_GENERAL_DOWNLOAD_FILE_TASK_TYPE;
106 typedef enum : uint8_t {
107 DJI_CAMERA_VIDEO_RESOLUTION_640X480P = 0,
108 DJI_CAMERA_VIDEO_RESOLUTION_640X480I = 1,
109 DJI_CAMERA_VIDEO_RESOLUTION_1280X640P = 2,
110 DJI_CAMERA_VIDEO_RESOLUTION_1280X640I = 3,
111 DJI_CAMERA_VIDEO_RESOLUTION_1280X720P = 4,
112 DJI_CAMERA_VIDEO_RESOLUTION_1280X720I = 5,
113 DJI_CAMERA_VIDEO_RESOLUTION_1280X960P = 6,
114 DJI_CAMERA_VIDEO_RESOLUTION_1280X960I = 7,
115 DJI_CAMERA_VIDEO_RESOLUTION_1920X960P = 8,
116 DJI_CAMERA_VIDEO_RESOLUTION_1920X960I = 9,
117 DJI_CAMERA_VIDEO_RESOLUTION_1920X1080P = 10,
118 DJI_CAMERA_VIDEO_RESOLUTION_1920X1080I = 11,
119 DJI_CAMERA_VIDEO_RESOLUTION_1920X1440P = 12,
120 DJI_CAMERA_VIDEO_RESOLUTION_1920X1440I = 13,
121 DJI_CAMERA_VIDEO_RESOLUTION_3840X1920P = 14,
122 DJI_CAMERA_VIDEO_RESOLUTION_3840X1920I = 15,
123 DJI_CAMERA_VIDEO_RESOLUTION_3840X2160P = 16,
124 DJI_CAMERA_VIDEO_RESOLUTION_3840X2160I = 17,
125 DJI_CAMERA_VIDEO_RESOLUTION_3840X2880P = 18,
126 DJI_CAMERA_VIDEO_RESOLUTION_3840X2280I = 19,
127 DJI_CAMERA_VIDEO_RESOLUTION_4096X2048P = 20,
128 DJI_CAMERA_VIDEO_RESOLUTION_4960X2048I = 21,
129 DJI_CAMERA_VIDEO_RESOLUTION_4096X2160P = 22,
130 DJI_CAMERA_VIDEO_RESOLUTION_4096X2160I = 23,
131 DJI_CAMERA_VIDEO_RESOLUTION_2704X1520P_16COLON9 = 24,
132 DJI_CAMERA_VIDEO_RESOLUTION_640X512P_FLIR = 26,
133 DJI_CAMERA_VIDEO_RESOLUTION_4608X2160 = 27,
134 DJI_CAMERA_VIDEO_RESOLUTION_4608X2592 = 28,
135 DJI_CAMERA_VIDEO_RESOLUTION_2720X1530P = 31,
136 DJI_CAMERA_VIDEO_RESOLUTION_5280X2160P = 32,
137 DJI_CAMERA_VIDEO_RESOLUTION_5280X2970P = 33,
138 DJI_CAMERA_VIDEO_RESOLUTION_3840X1572P = 34,
139 DJI_CAMERA_VIDEO_RESOLUTION_5760X3240P = 35,
140 DJI_CAMERA_VIDEO_RESOLUTION_6016X3200P = 36,
141 DJI_CAMERA_VIDEO_RESOLUTION_2048X1080P = 37,
142 DJI_CAMERA_VIDEO_RESOLUTION_336X256P_FLIR = 38,
143 DJI_CAMERA_VIDEO_RESOLUTION_5120X2880P = 39,
144 DJI_CAMERA_VIDEO_RESOLUTION_4096X2160P_RAW14 = 40,
145 DJI_CAMERA_VIDEO_RESOLUTION_3840X2160P_RAW14 = 41,
146 DJI_CAMERA_VIDEO_RESOLUTION_2720X1530P_RAW14 = 42,
147 DJI_CAMERA_VIDEO_RESOLUTION_1920X1080P_RAW14 = 43,
148 DJI_CAMERA_VIDEO_RESOLUTION_5440X2880P = 44,
149 DJI_CAMERA_VIDEO_RESOLUTION_2688X1512P = 45,
150 DJI_CAMERA_VIDEO_RESOLUTION_640X360P = 46,
151 DJI_CAMERA_VIDEO_RESOLUTION_4000X3000P = 48,
152 DJI_CAMERA_VIDEO_RESOLUTION_4000X3000I = 49,
153 DJI_CAMERA_VIDEO_RESOLUTION_2880X1620P = 50,
154 DJI_CAMERA_VIDEO_RESOLUTION_2880X1620I = 51,
155 DJI_CAMERA_VIDEO_RESOLUTION_2720X2040P = 52,
156 DJI_CAMERA_VIDEO_RESOLUTION_2720X2040I = 53,
157 DJI_CAMERA_VIDEO_RESOLUTION_720X576 = 54,
158 DJI_CAMERA_VIDEO_RESOLUTION_MAX = 253,
159 DJI_CAMERA_VIDEO_RESOLUTION_UNSET = 254,
160 DJI_CAMERA_VIDEO_RESOLUTION_KNOWN = 255,
161 } DJI_CAMERA_VIDEO_RESOLUTION;
163 typedef enum : uint8_t {
164 DJI_CAMERA_FILE_TYPE_JPEG = 0,
165 DJI_CAMERA_FILE_TYPE_DNG = 1,
166 DJI_CAMERA_FILE_TYPE_MOV = 2,
167 DJI_CAMERA_FILE_TYPE_MP4 = 3,
168 DJI_CAMERA_FILE_TYPE_PANORAMA = 4,
169 DJI_CAMERA_FILE_TYPE_TIFF = 5,
170 DJI_CAMERA_FILE_TYPE_SEQ = 8,
171 DJI_CAMERA_FILE_TYPE_TIFFSEQ = 9,
172 DJI_CAMERA_FILE_TYPE_AUDIO = 10,
173 DJI_CAMERA_FILE_TYPE_SURVEY = 12,
174 DJI_CAMERA_FILE_TYPE_USER_CTRL_INFO = 13,
175 DJI_CAMERA_FILE_TYPE_USER_CTRL_INFO_LZ4 = 14,
176 DJI_CAMERA_FILE_TYPE_JSON = 15,
177 DJI_CAMERA_FILE_TYPE_PHOTO_FOLDER = 16,
178 DJI_CAMERA_FILE_TYPE_VIDEO_FOLDER = 17,
179 } DJI_CAMERA_FILE_TYPE;
182 typedef enum : uint8_t {
183 DJI_TRANS_VIDEO_STREAM_ORG = 0,
184 DJI_TRANS_VIDEO_STREAM_H264 = 1,
185 DJI_TRANS_VIDEO_STREAM_H265 = 2,
186 DJI_TRANS_VIDEO_STREAM_MJPEG = 3,
187 } DJI_TRANS_VIDEO_STREAM_FORMAT;
190 typedef enum : uint8_t {
191 DJI_DOWNLOAD_FILE_ORG = 0,
192 DJI_DOWNLOAD_FILE_THM = 1,
193 DJI_DOWNLOAD_FILE_SCR = 2,
194 DJI_DOWNLOAD_FILE_CLIP = 3,
195 DJI_DOWNLOAD_FILE_STREAM = 4,
196 DJI_DOWNLOAD_FILE_PANO = 5,
197 DJI_DOWNLOAD_FILE_PANO_SCR = 6,
198 DJI_DOWNLOAD_FILE_PANO_THM = 7,
199 DJI_DOWNLOAD_FILE_TIMELAPES = 8,
200 DJI_DOWNLOAD_FILE_2ND_STREAM = 9,
201 DJI_DOWNLOAD_FILE_RESERVED = 10,
202 DJI_DOWNLOAD_FILE_PHOTO_METADATA = 11,
203 DJI_DOWNLOAD_FILE_USER_CTRL_INFO = 12,
204 DJI_DOWNLOAD_FILE_JSON = 13,
205 } DJI_DOWNLOAD_FILE_SUBTYPE;
208 typedef enum : uint8_t {
209 DJI_EXT_TYPE_UUID = 1,
210 DJI_EXT_TYPE_P_TID = 2,
211 DJI_EXT_TYPE_STAR = 3,
212 DJI_EXT_TYPE_V_TID = 4,
213 DJI_EXT_TYPE_FUSION = 5,
214 DJI_EXT_TYPE_V_FILE_SYNC = 6,
215 DJI_EXT_TYPE_ORIGIN = 7,
216 DJI_EXT_TYPE_EXIF = 8,
217 DJI_EXT_TYPE_AUDIO = 9,
218 DJI_EXT_TYPE_VIDEO_MISCINFO = 10,
219 DJI_EXT_TYPE_CUSTOMIZE_DCF_INFO = 11,
220 DJI_EXT_TYPE_FILE_NAME = 13,
221 DJI_EXT_TYPE_FILE_MD5 = 14,
222 } DJI_FILE_LIST_EXT_TYPE;
224 typedef enum : uint8_t {
229 } DJI_FILE_LIST_FILTER_LIKE;
231 typedef enum : uint8_t {
237 DJI_MEDIA_GROUP = 13,
245 } DJI_DOWNLOAD_FILE_LIST_TYPE;
247 typedef enum : uint8_t {
253 typedef enum : uint8_t {
264 uint8_t header_length:6;
272 uint16_t msg_length:12;
274 uint16_t msg_flag :4;
291 uint32_t video_nomal :1;
293 uint32_t video_slowmotion:1;
295 uint32_t video_timelapse :1;
297 uint32_t video_hyperlapse:1;
299 uint32_t video_hdr :1;
301 uint32_t video_loop :1;
303 uint32_t reserved :26;
304 } dji_file_list_filter_video;
310 uint32_t photo_normal :1;
312 uint32_t photo_hdr :1;
314 uint32_t photo_aeb :1;
316 uint32_t photo_interval:1;
318 uint32_t photo_burst :1;
320 uint32_t photo_pano :1;
322 uint32_t reserved :26;
323 } dji_file_list_filter_photo;
342 dji_file_list_filter_video video;
344 dji_file_list_filter_photo photo;
345 } dji_download_file_list_filter;
359 dji_file_index_t index;
369 uint8_t filter_enable;
374 dji_download_file_list_filter filters;
375 } dji_file_list_download_req;
380 dji_file_index_t index;
396 uint32_t ext_sub_index;
398 uint16_t seg_sub_index;
399 } dji_file_download_req;
404 dji_file_index_t index;
414 uint8_t video_type:4;
416 uint8_t audio_type:4;
427 } dji_stream_download_req;
444 dji_loss_desc loss_desc[1];
450 } dji_general_transfer_msg_rsp;
467 } dji_ext_video_uuid;
500 uint8_t encode_format;
563 uint8_t exist_flag:2;
571 uint8_t enable_exposure_time :1;
573 uint8_t enable_fnumber :1;
575 uint8_t enable_exposure_program :1;
577 uint8_t enable_iso :1;
579 uint8_t enable_exposure_compensation :1;
581 uint8_t enable_metering_mode :1;
583 uint8_t enable_light_source :1;
585 uint8_t enable_focal_length_35mm_format:1;
587 uint32_t exposure_time_num;
589 uint32_t exposure_time_den;
591 uint32_t fnumber_num;
593 uint32_t fnumber_den;
595 uint16_t exposure_program;
599 int32_t exposure_compensation_num;
601 int32_t exposure_compensation_den;
603 uint16_t metering_mode;
605 uint16_t light_source;
607 uint16_t focal_length_35mm_format;
615 uint32_t video_time_in_ms;
619 uint32_t video_timelapse_interval_100ms;
621 uint32_t video_hyperlapse_speed_ratio;
625 } dji_ext_misc_video;
633 uint8_t source_camera;
634 } dji_dcf_ext_file_source;
651 } dji_departure_time;
656 uint8_t customKey[8];
658 dji_dcf_ext_file_source dcf_ext_file_source;
660 dji_departure_time departure_time;
662 uint8_t dcf_directory_index;
664 uint32_t dcf_file_index;
666 uint32_t dcf_file_setId;
667 } dji_ext_customize_dcf_info;
672 uint8_t file_name_len;
674 uint8_t file_name[1];
680 uint8_t file_md5[16];
701 } dji_ext_info_descriptor;
706 dji_ext_info_descriptor ext_info_item[1];
709 } dji_file_list_ext_info;
725 } dji_file_create_time;
730 dji_file_create_time create_time;
736 struct video_attribute_type {
738 uint32_t attribute_video_duration :16;
741 attribute_video_framerate :6;
743 uint32_t attribute_video_rotation :2;
746 attribute_video_resolution:8;
748 struct photo_attribute_type {
750 uint32_t attribute_photo_reserved:22;
752 uint32_t attribute_photo_rotation:2;
754 uint32_t attribute_photo_ratio :8;
764 dji_file_list_ext_info ext_data;
765 } dji_list_info_descriptor;
774 dji_list_info_descriptor list_info[1];
775 } dji_file_list_download_resp;
784 dji_file_index_t index;
791 } dji_multi_stream_download_rsp;
797 dji_file_list_download_resp file_list_download_rsp;
799 dji_multi_stream_download_rsp multi_stream_download_rsp;
803 } dji_download_file_ack_data;
808 uint8_t header_length:6;
816 uint16_t msg_length:12;
818 uint16_t msg_flag :4;
826 } dji_general_transfer_msg_ack;
833 uint8_t is_next_valid;
834 uint8_t file_data[1];
835 } dji_file_data_download_resp;
839 #endif //_DJI_FILE_INTERNAL_DEFINE_HPP_ Definition: dji_file_mgr_internal_define.hpp:262
Definition: dji_file_mgr_internal_define.hpp:456