Elliott Hughes | 28e98bc | 2018-06-14 16:59:04 -0700 | [diff] [blame^] | 1 | #include <stdint.h> |
| 2 | #ifndef mpers_ptr_t_is_uint32_t |
| 3 | typedef uint32_t mpers_ptr_t; |
| 4 | #define mpers_ptr_t_is_uint32_t |
| 5 | #endif |
| 6 | typedef |
| 7 | struct { |
| 8 | uint32_t type; |
| 9 | union { |
| 10 | struct { |
| 11 | uint32_t width; |
| 12 | uint32_t height; |
| 13 | uint32_t pixelformat; |
| 14 | uint32_t field; |
| 15 | uint32_t bytesperline; |
| 16 | uint32_t sizeimage; |
| 17 | uint32_t colorspace; |
| 18 | uint32_t priv; |
| 19 | uint32_t flags; |
| 20 | union { |
| 21 | uint32_t ycbcr_enc; |
| 22 | uint32_t hsv_enc; |
| 23 | } ; |
| 24 | uint32_t quantization; |
| 25 | uint32_t xfer_func; |
| 26 | } ATTRIBUTE_PACKED pix; |
| 27 | struct { |
| 28 | uint32_t width; |
| 29 | uint32_t height; |
| 30 | uint32_t pixelformat; |
| 31 | uint32_t field; |
| 32 | uint32_t colorspace; |
| 33 | struct { |
| 34 | uint32_t sizeimage; |
| 35 | uint32_t bytesperline; |
| 36 | uint16_t reserved[6]; |
| 37 | } ATTRIBUTE_PACKED plane_fmt[8]; |
| 38 | unsigned char num_planes; |
| 39 | unsigned char flags; |
| 40 | union { |
| 41 | unsigned char ycbcr_enc; |
| 42 | unsigned char hsv_enc; |
| 43 | } ; |
| 44 | unsigned char quantization; |
| 45 | unsigned char xfer_func; |
| 46 | unsigned char reserved[7]; |
| 47 | } ATTRIBUTE_PACKED pix_mp; |
| 48 | struct { |
| 49 | struct { |
| 50 | int32_t left; |
| 51 | int32_t top; |
| 52 | uint32_t width; |
| 53 | uint32_t height; |
| 54 | } ATTRIBUTE_PACKED w; |
| 55 | uint32_t field; |
| 56 | uint32_t chromakey; |
| 57 | mpers_ptr_t clips; |
| 58 | uint32_t clipcount; |
| 59 | mpers_ptr_t bitmap; |
| 60 | unsigned char global_alpha; |
| 61 | unsigned char mpers_end_filler_1[3]; |
| 62 | } ATTRIBUTE_PACKED win; |
| 63 | struct { |
| 64 | uint32_t sampling_rate; |
| 65 | uint32_t offset; |
| 66 | uint32_t samples_per_line; |
| 67 | uint32_t sample_format; |
| 68 | int32_t start[2]; |
| 69 | uint32_t count[2]; |
| 70 | uint32_t flags; |
| 71 | uint32_t reserved[2]; |
| 72 | } ATTRIBUTE_PACKED vbi; |
| 73 | struct { |
| 74 | uint16_t service_set; |
| 75 | uint16_t service_lines[2][24]; |
| 76 | unsigned char mpers_filler_2[2]; |
| 77 | uint32_t io_size; |
| 78 | uint32_t reserved[2]; |
| 79 | } ATTRIBUTE_PACKED sliced; |
| 80 | struct { |
| 81 | uint32_t pixelformat; |
| 82 | uint32_t buffersize; |
| 83 | unsigned char reserved[24]; |
| 84 | } ATTRIBUTE_PACKED sdr; |
| 85 | struct { |
| 86 | uint32_t dataformat; |
| 87 | uint32_t buffersize; |
| 88 | } ATTRIBUTE_PACKED meta; |
| 89 | unsigned char raw_data[200]; |
| 90 | } fmt; |
| 91 | } ATTRIBUTE_PACKED m32_struct_v4l2_format; |
| 92 | #define MPERS_m32_struct_v4l2_format m32_struct_v4l2_format |