1 #include <inttypes.h> 2 typedef uint32_t mpers_ptr_t; 3 typedef 4 struct { 5 uint32_t index; 6 uint32_t type; 7 uint32_t bytesused; 8 uint32_t flags; 9 uint32_t field; 10 unsigned char mpers_filler_1[4]; 11 struct { 12 int64_t tv_sec; 13 int64_t tv_usec; 14 } ATTRIBUTE_PACKED timestamp; 15 struct { 16 uint32_t type; 17 uint32_t flags; 18 unsigned char frames; 19 unsigned char seconds; 20 unsigned char minutes; 21 unsigned char hours; 22 unsigned char userbits[4]; 23 } ATTRIBUTE_PACKED timecode; 24 uint32_t sequence; 25 uint32_t memory; 26 union { 27 uint32_t offset; 28 uint32_t userptr; 29 mpers_ptr_t planes; 30 int32_t fd; 31 } m; 32 uint32_t length; 33 uint32_t reserved2; 34 uint32_t reserved; 35 } ATTRIBUTE_PACKED mx32_struct_v4l2_buffer; 36 #define MPERS_mx32_struct_v4l2_buffer mx32_struct_v4l2_buffer 37