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 struct { 11 int32_t tv_sec; 12 int32_t tv_usec; 13 } ATTRIBUTE_PACKED timestamp; 14 struct { 15 uint32_t type; 16 uint32_t flags; 17 unsigned char frames; 18 unsigned char seconds; 19 unsigned char minutes; 20 unsigned char hours; 21 unsigned char userbits[4]; 22 } ATTRIBUTE_PACKED timecode; 23 uint32_t sequence; 24 uint32_t memory; 25 union { 26 uint32_t offset; 27 uint32_t userptr; 28 mpers_ptr_t planes; 29 int32_t fd; 30 } m; 31 uint32_t length; 32 uint32_t reserved2; 33 uint32_t reserved; 34 } ATTRIBUTE_PACKED m32_struct_v4l2_buffer; 35 #define MPERS_m32_struct_v4l2_buffer m32_struct_v4l2_buffer 36