4#define MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION 269
22} mavlink_video_stream_information_t;
24#define MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN 215
25#define MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_MIN_LEN 213
26#define MAVLINK_MSG_ID_269_LEN 215
27#define MAVLINK_MSG_ID_269_MIN_LEN 213
29#define MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_CRC 109
30#define MAVLINK_MSG_ID_269_CRC 109
32#define MAVLINK_MSG_VIDEO_STREAM_INFORMATION_FIELD_NAME_LEN 32
33#define MAVLINK_MSG_VIDEO_STREAM_INFORMATION_FIELD_URI_LEN 160
35#if MAVLINK_COMMAND_24BIT
36#define MAVLINK_MESSAGE_INFO_VIDEO_STREAM_INFORMATION {
38 "VIDEO_STREAM_INFORMATION",
40 { { "stream_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 18
, offsetof(mavlink_video_stream_information_t, stream_id) },
41 { "count", NULL, MAVLINK_TYPE_UINT8_T, 0
, 19
, offsetof(mavlink_video_stream_information_t, count) },
42 { "type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 20
, offsetof(mavlink_video_stream_information_t, type) },
43 { "flags", NULL, MAVLINK_TYPE_UINT16_T, 0
, 8
, offsetof(mavlink_video_stream_information_t, flags) },
44 { "framerate", NULL, MAVLINK_TYPE_FLOAT, 0
, 0
, offsetof(mavlink_video_stream_information_t, framerate) },
45 { "resolution_h", NULL, MAVLINK_TYPE_UINT16_T, 0
, 10
, offsetof(mavlink_video_stream_information_t, resolution_h) },
46 { "resolution_v", NULL, MAVLINK_TYPE_UINT16_T, 0
, 12
, offsetof(mavlink_video_stream_information_t, resolution_v) },
47 { "bitrate", NULL, MAVLINK_TYPE_UINT32_T, 0
, 4
, offsetof(mavlink_video_stream_information_t, bitrate) },
48 { "rotation", NULL, MAVLINK_TYPE_UINT16_T, 0
, 14
, offsetof(mavlink_video_stream_information_t, rotation) },
49 { "hfov", NULL, MAVLINK_TYPE_UINT16_T, 0
, 16
, offsetof(mavlink_video_stream_information_t, hfov) },
50 { "name", NULL, MAVLINK_TYPE_CHAR, 32
, 21
, offsetof(mavlink_video_stream_information_t, name) },
51 { "uri", NULL, MAVLINK_TYPE_CHAR, 160
, 53
, offsetof(mavlink_video_stream_information_t, uri) },
52 { "encoding", NULL, MAVLINK_TYPE_UINT8_T, 0
, 213
, offsetof(mavlink_video_stream_information_t, encoding) },
53 { "camera_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 214
, offsetof(mavlink_video_stream_information_t, camera_device_id) },
55}
57#define MAVLINK_MESSAGE_INFO_VIDEO_STREAM_INFORMATION {
58 "VIDEO_STREAM_INFORMATION",
60 { { "stream_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 18
, offsetof(mavlink_video_stream_information_t, stream_id) },
61 { "count", NULL, MAVLINK_TYPE_UINT8_T, 0
, 19
, offsetof(mavlink_video_stream_information_t, count) },
62 { "type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 20
, offsetof(mavlink_video_stream_information_t, type) },
63 { "flags", NULL, MAVLINK_TYPE_UINT16_T, 0
, 8
, offsetof(mavlink_video_stream_information_t, flags) },
64 { "framerate", NULL, MAVLINK_TYPE_FLOAT, 0
, 0
, offsetof(mavlink_video_stream_information_t, framerate) },
65 { "resolution_h", NULL, MAVLINK_TYPE_UINT16_T, 0
, 10
, offsetof(mavlink_video_stream_information_t, resolution_h) },
66 { "resolution_v", NULL, MAVLINK_TYPE_UINT16_T, 0
, 12
, offsetof(mavlink_video_stream_information_t, resolution_v) },
67 { "bitrate", NULL, MAVLINK_TYPE_UINT32_T, 0
, 4
, offsetof(mavlink_video_stream_information_t, bitrate) },
68 { "rotation", NULL, MAVLINK_TYPE_UINT16_T, 0
, 14
, offsetof(mavlink_video_stream_information_t, rotation) },
69 { "hfov", NULL, MAVLINK_TYPE_UINT16_T, 0
, 16
, offsetof(mavlink_video_stream_information_t, hfov) },
70 { "name", NULL, MAVLINK_TYPE_CHAR, 32
, 21
, offsetof(mavlink_video_stream_information_t, name) },
71 { "uri", NULL, MAVLINK_TYPE_CHAR, 160
, 53
, offsetof(mavlink_video_stream_information_t, uri) },
72 { "encoding", NULL, MAVLINK_TYPE_UINT8_T, 0
, 213
, offsetof(mavlink_video_stream_information_t, encoding) },
73 { "camera_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 214
, offsetof(mavlink_video_stream_information_t, camera_device_id) },
75}
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100static inline uint16_t mavlink_msg_video_stream_information_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
101 uint8_t stream_id, uint8_t count, uint8_t type, uint16_t flags,
float framerate, uint16_t resolution_h, uint16_t resolution_v, uint32_t bitrate, uint16_t rotation, uint16_t hfov,
const char *name,
const char *uri, uint8_t encoding, uint8_t camera_device_id)
103#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
105 _mav_put_float(buf, 0, framerate);
106 _mav_put_uint32_t(buf, 4, bitrate);
107 _mav_put_uint16_t(buf, 8, flags);
108 _mav_put_uint16_t(buf, 10, resolution_h);
109 _mav_put_uint16_t(buf, 12, resolution_v);
110 _mav_put_uint16_t(buf, 14, rotation);
111 _mav_put_uint16_t(buf, 16, hfov);
112 _mav_put_uint8_t(buf, 18, stream_id);
113 _mav_put_uint8_t(buf, 19, count);
114 _mav_put_uint8_t(buf, 20, type);
115 _mav_put_uint8_t(buf, 213, encoding);
116 _mav_put_uint8_t(buf, 214, camera_device_id);
117 _mav_put_char_array(buf, 21, name, 32);
118 _mav_put_char_array(buf, 53, uri, 160);
121 mavlink_video_stream_information_t packet;
122 packet.framerate = framerate;
123 packet.bitrate = bitrate;
124 packet.flags = flags;
125 packet.resolution_h = resolution_h;
126 packet.resolution_v = resolution_v;
127 packet.rotation = rotation;
129 packet.stream_id = stream_id;
130 packet.count = count;
132 packet.encoding = encoding;
133 packet.camera_device_id = camera_device_id;
134 mav_array_memcpy(packet.name, name,
sizeof(
char)*32);
135 mav_array_memcpy(packet.uri, uri,
sizeof(
char)*160);
136 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN);
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166static inline uint16_t mavlink_msg_video_stream_information_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
167 uint8_t stream_id, uint8_t count, uint8_t type, uint16_t flags,
float framerate, uint16_t resolution_h, uint16_t resolution_v, uint32_t bitrate, uint16_t rotation, uint16_t hfov,
const char *name,
const char *uri, uint8_t encoding, uint8_t camera_device_id)
169#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
171 _mav_put_float(buf, 0, framerate);
172 _mav_put_uint32_t(buf, 4, bitrate);
173 _mav_put_uint16_t(buf, 8, flags);
174 _mav_put_uint16_t(buf, 10, resolution_h);
175 _mav_put_uint16_t(buf, 12, resolution_v);
176 _mav_put_uint16_t(buf, 14, rotation);
177 _mav_put_uint16_t(buf, 16, hfov);
178 _mav_put_uint8_t(buf, 18, stream_id);
179 _mav_put_uint8_t(buf, 19, count);
180 _mav_put_uint8_t(buf, 20, type);
181 _mav_put_uint8_t(buf, 213, encoding);
182 _mav_put_uint8_t(buf, 214, camera_device_id);
183 _mav_put_char_array(buf, 21, name, 32);
184 _mav_put_char_array(buf, 53, uri, 160);
187 mavlink_video_stream_information_t packet;
188 packet.framerate = framerate;
189 packet.bitrate = bitrate;
190 packet.flags = flags;
191 packet.resolution_h = resolution_h;
192 packet.resolution_v = resolution_v;
193 packet.rotation = rotation;
195 packet.stream_id = stream_id;
196 packet.count = count;
198 packet.encoding = encoding;
199 packet.camera_device_id = camera_device_id;
200 mav_array_memcpy(packet.name, name,
sizeof(
char)*32);
201 mav_array_memcpy(packet.uri, uri,
sizeof(
char)*160);
202 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN);
207 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_MIN_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_CRC);
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235static inline uint16_t mavlink_msg_video_stream_information_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
236 mavlink_message_t* msg,
237 uint8_t stream_id,uint8_t count,uint8_t type,uint16_t flags,
float framerate,uint16_t resolution_h,uint16_t resolution_v,uint32_t bitrate,uint16_t rotation,uint16_t hfov,
const char *name,
const char *uri,uint8_t encoding,uint8_t camera_device_id)
239#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
241 _mav_put_float(buf, 0, framerate);
242 _mav_put_uint32_t(buf, 4, bitrate);
243 _mav_put_uint16_t(buf, 8, flags);
244 _mav_put_uint16_t(buf, 10, resolution_h);
245 _mav_put_uint16_t(buf, 12, resolution_v);
246 _mav_put_uint16_t(buf, 14, rotation);
247 _mav_put_uint16_t(buf, 16, hfov);
248 _mav_put_uint8_t(buf, 18, stream_id);
249 _mav_put_uint8_t(buf, 19, count);
250 _mav_put_uint8_t(buf, 20, type);
251 _mav_put_uint8_t(buf, 213, encoding);
252 _mav_put_uint8_t(buf, 214, camera_device_id);
253 _mav_put_char_array(buf, 21, name, 32);
254 _mav_put_char_array(buf, 53, uri, 160);
257 mavlink_video_stream_information_t packet;
258 packet.framerate = framerate;
259 packet.bitrate = bitrate;
260 packet.flags = flags;
261 packet.resolution_h = resolution_h;
262 packet.resolution_v = resolution_v;
263 packet.rotation = rotation;
265 packet.stream_id = stream_id;
266 packet.count = count;
268 packet.encoding = encoding;
269 packet.camera_device_id = camera_device_id;
270 mav_array_memcpy(packet.name, name,
sizeof(
char)*32);
271 mav_array_memcpy(packet.uri, uri,
sizeof(
char)*160);
272 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN);
280
281
282
283
284
285
286
287static inline uint16_t mavlink_msg_video_stream_information_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_video_stream_information_t* video_stream_information)
289 return mavlink_msg_video_stream_information_pack(system_id, component_id, msg, video_stream_information->stream_id, video_stream_information->count, video_stream_information->type, video_stream_information->flags, video_stream_information->framerate, video_stream_information->resolution_h, video_stream_information->resolution_v, video_stream_information->bitrate, video_stream_information->rotation, video_stream_information->hfov, video_stream_information->name, video_stream_information->uri, video_stream_information->encoding, video_stream_information->camera_device_id);
293
294
295
296
297
298
299
300
301static inline uint16_t mavlink_msg_video_stream_information_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_video_stream_information_t* video_stream_information)
303 return mavlink_msg_video_stream_information_pack_chan(system_id, component_id, chan, msg, video_stream_information->stream_id, video_stream_information->count, video_stream_information->type, video_stream_information->flags, video_stream_information->framerate, video_stream_information->resolution_h, video_stream_information->resolution_v, video_stream_information->bitrate, video_stream_information->rotation, video_stream_information->hfov, video_stream_information->name, video_stream_information->uri, video_stream_information->encoding, video_stream_information->camera_device_id);
307
308
309
310
311
312
313
314
315static inline uint16_t mavlink_msg_video_stream_information_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_video_stream_information_t* video_stream_information)
317 return mavlink_msg_video_stream_information_pack_status(system_id, component_id, _status, msg, video_stream_information->stream_id, video_stream_information->count, video_stream_information->type, video_stream_information->flags, video_stream_information->framerate, video_stream_information->resolution_h, video_stream_information->resolution_v, video_stream_information->bitrate, video_stream_information->rotation, video_stream_information->hfov, video_stream_information->name, video_stream_information->uri, video_stream_information->encoding, video_stream_information->camera_device_id);
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
341static inline void mavlink_msg_video_stream_information_send(mavlink_channel_t chan, uint8_t stream_id, uint8_t count, uint8_t type, uint16_t flags,
float framerate, uint16_t resolution_h, uint16_t resolution_v, uint32_t bitrate, uint16_t rotation, uint16_t hfov,
const char *name,
const char *uri, uint8_t encoding, uint8_t camera_device_id)
343#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
344 char buf[MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN];
345 _mav_put_float(buf, 0, framerate);
346 _mav_put_uint32_t(buf, 4, bitrate);
347 _mav_put_uint16_t(buf, 8, flags);
348 _mav_put_uint16_t(buf, 10, resolution_h);
349 _mav_put_uint16_t(buf, 12, resolution_v);
350 _mav_put_uint16_t(buf, 14, rotation);
351 _mav_put_uint16_t(buf, 16, hfov);
352 _mav_put_uint8_t(buf, 18, stream_id);
353 _mav_put_uint8_t(buf, 19, count);
354 _mav_put_uint8_t(buf, 20, type);
355 _mav_put_uint8_t(buf, 213, encoding);
356 _mav_put_uint8_t(buf, 214, camera_device_id);
357 _mav_put_char_array(buf, 21, name, 32);
358 _mav_put_char_array(buf, 53, uri, 160);
359 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION, buf, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_MIN_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_CRC);
361 mavlink_video_stream_information_t packet;
362 packet.framerate = framerate;
363 packet.bitrate = bitrate;
364 packet.flags = flags;
365 packet.resolution_h = resolution_h;
366 packet.resolution_v = resolution_v;
367 packet.rotation = rotation;
369 packet.stream_id = stream_id;
370 packet.count = count;
372 packet.encoding = encoding;
373 packet.camera_device_id = camera_device_id;
374 mav_array_memcpy(packet.name, name,
sizeof(
char)*32);
375 mav_array_memcpy(packet.uri, uri,
sizeof(
char)*160);
376 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION, (
const char *)&packet, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_MIN_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_CRC);
381
382
383
384
385static inline void mavlink_msg_video_stream_information_send_struct(mavlink_channel_t chan,
const mavlink_video_stream_information_t* video_stream_information)
387#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
388 mavlink_msg_video_stream_information_send(chan, video_stream_information->stream_id, video_stream_information->count, video_stream_information->type, video_stream_information->flags, video_stream_information->framerate, video_stream_information->resolution_h, video_stream_information->resolution_v, video_stream_information->bitrate, video_stream_information->rotation, video_stream_information->hfov, video_stream_information->name, video_stream_information->uri, video_stream_information->encoding, video_stream_information->camera_device_id);
390 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION, (
const char *)video_stream_information, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_MIN_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_CRC);
394#if MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN <= MAVLINK_MAX_PAYLOAD_LEN
396
397
398
399
400
401
402static inline void mavlink_msg_video_stream_information_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t stream_id, uint8_t count, uint8_t type, uint16_t flags,
float framerate, uint16_t resolution_h, uint16_t resolution_v, uint32_t bitrate, uint16_t rotation, uint16_t hfov,
const char *name,
const char *uri, uint8_t encoding, uint8_t camera_device_id)
404#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
405 char *buf = (
char *)msgbuf;
406 _mav_put_float(buf, 0, framerate);
407 _mav_put_uint32_t(buf, 4, bitrate);
408 _mav_put_uint16_t(buf, 8, flags);
409 _mav_put_uint16_t(buf, 10, resolution_h);
410 _mav_put_uint16_t(buf, 12, resolution_v);
411 _mav_put_uint16_t(buf, 14, rotation);
412 _mav_put_uint16_t(buf, 16, hfov);
413 _mav_put_uint8_t(buf, 18, stream_id);
414 _mav_put_uint8_t(buf, 19, count);
415 _mav_put_uint8_t(buf, 20, type);
416 _mav_put_uint8_t(buf, 213, encoding);
417 _mav_put_uint8_t(buf, 214, camera_device_id);
418 _mav_put_char_array(buf, 21, name, 32);
419 _mav_put_char_array(buf, 53, uri, 160);
420 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION, buf, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_MIN_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_CRC);
422 mavlink_video_stream_information_t *packet = (mavlink_video_stream_information_t *)msgbuf;
423 packet->framerate = framerate;
424 packet->bitrate = bitrate;
425 packet->flags = flags;
426 packet->resolution_h = resolution_h;
427 packet->resolution_v = resolution_v;
428 packet->rotation = rotation;
430 packet->stream_id = stream_id;
431 packet->count = count;
433 packet->encoding = encoding;
434 packet->camera_device_id = camera_device_id;
435 mav_array_memcpy(packet->name, name,
sizeof(
char)*32);
436 mav_array_memcpy(packet->uri, uri,
sizeof(
char)*160);
437 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION, (
const char *)packet, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_MIN_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_CRC);
448
449
450
451
452static inline uint8_t mavlink_msg_video_stream_information_get_stream_id(
const mavlink_message_t* msg)
454 return _MAV_RETURN_uint8_t(msg, 18);
458
459
460
461
462static inline uint8_t mavlink_msg_video_stream_information_get_count(
const mavlink_message_t* msg)
464 return _MAV_RETURN_uint8_t(msg, 19);
468
469
470
471
472static inline uint8_t mavlink_msg_video_stream_information_get_type(
const mavlink_message_t* msg)
474 return _MAV_RETURN_uint8_t(msg, 20);
478
479
480
481
482static inline uint16_t mavlink_msg_video_stream_information_get_flags(
const mavlink_message_t* msg)
484 return _MAV_RETURN_uint16_t(msg, 8);
488
489
490
491
492static inline float mavlink_msg_video_stream_information_get_framerate(
const mavlink_message_t* msg)
494 return _MAV_RETURN_float(msg, 0);
498
499
500
501
502static inline uint16_t mavlink_msg_video_stream_information_get_resolution_h(
const mavlink_message_t* msg)
504 return _MAV_RETURN_uint16_t(msg, 10);
508
509
510
511
512static inline uint16_t mavlink_msg_video_stream_information_get_resolution_v(
const mavlink_message_t* msg)
514 return _MAV_RETURN_uint16_t(msg, 12);
518
519
520
521
522static inline uint32_t mavlink_msg_video_stream_information_get_bitrate(
const mavlink_message_t* msg)
524 return _MAV_RETURN_uint32_t(msg, 4);
528
529
530
531
532static inline uint16_t mavlink_msg_video_stream_information_get_rotation(
const mavlink_message_t* msg)
534 return _MAV_RETURN_uint16_t(msg, 14);
538
539
540
541
542static inline uint16_t mavlink_msg_video_stream_information_get_hfov(
const mavlink_message_t* msg)
544 return _MAV_RETURN_uint16_t(msg, 16);
548
549
550
551
552static inline uint16_t mavlink_msg_video_stream_information_get_name(
const mavlink_message_t* msg,
char *name)
554 return _MAV_RETURN_char_array(msg, name, 32, 21);
558
559
560
561
562static inline uint16_t mavlink_msg_video_stream_information_get_uri(
const mavlink_message_t* msg,
char *uri)
564 return _MAV_RETURN_char_array(msg, uri, 160, 53);
568
569
570
571
572static inline uint8_t mavlink_msg_video_stream_information_get_encoding(
const mavlink_message_t* msg)
574 return _MAV_RETURN_uint8_t(msg, 213);
578
579
580
581
582static inline uint8_t mavlink_msg_video_stream_information_get_camera_device_id(
const mavlink_message_t* msg)
584 return _MAV_RETURN_uint8_t(msg, 214);
588
589
590
591
592
593static inline void mavlink_msg_video_stream_information_decode(
const mavlink_message_t* msg, mavlink_video_stream_information_t* video_stream_information)
595#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
596 video_stream_information->framerate = mavlink_msg_video_stream_information_get_framerate(msg);
597 video_stream_information->bitrate = mavlink_msg_video_stream_information_get_bitrate(msg);
598 video_stream_information->flags = mavlink_msg_video_stream_information_get_flags(msg);
599 video_stream_information->resolution_h = mavlink_msg_video_stream_information_get_resolution_h(msg);
600 video_stream_information->resolution_v = mavlink_msg_video_stream_information_get_resolution_v(msg);
601 video_stream_information->rotation = mavlink_msg_video_stream_information_get_rotation(msg);
602 video_stream_information->hfov = mavlink_msg_video_stream_information_get_hfov(msg);
603 video_stream_information->stream_id = mavlink_msg_video_stream_information_get_stream_id(msg);
604 video_stream_information->count = mavlink_msg_video_stream_information_get_count(msg);
605 video_stream_information->type = mavlink_msg_video_stream_information_get_type(msg);
606 mavlink_msg_video_stream_information_get_name(msg, video_stream_information->name);
607 mavlink_msg_video_stream_information_get_uri(msg, video_stream_information->uri);
608 video_stream_information->encoding = mavlink_msg_video_stream_information_get_encoding(msg);
609 video_stream_information->camera_device_id = mavlink_msg_video_stream_information_get_camera_device_id(msg);
611 uint8_t len = msg->len < MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN? msg->len : MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN;
612 memset(video_stream_information, 0, MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN);
613 memcpy(video_stream_information, _MAV_PAYLOAD(msg), len);