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