Line | Count | Source (jump to first uncovered line) |
1 | | /* auto-generated, do not modify */ |
2 | | #include "config.h" |
3 | | |
4 | | #include "fu-v4l-struct.h" |
5 | | |
6 | | #ifdef G_LOG_DOMAIN |
7 | | #undef G_LOG_DOMAIN |
8 | | #endif |
9 | | #define G_LOG_DOMAIN "FuStruct" |
10 | | |
11 | | gchar * |
12 | | fu_v4l_cap_to_string(FuV4lCap val) |
13 | 0 | { |
14 | 0 | const gchar *data[30] = {0}; |
15 | 0 | guint idx = 0; |
16 | 0 | if (val == FU_V4L_CAP_NONE) |
17 | 0 | return g_strdup("none"); |
18 | 0 | if (val & FU_V4L_CAP_VIDEO_CAPTURE) |
19 | 0 | data[idx++] = "video-capture"; |
20 | 0 | if (val & FU_V4L_CAP_VIDEO_OUTPUT) |
21 | 0 | data[idx++] = "video-output"; |
22 | 0 | if (val & FU_V4L_CAP_VIDEO_OVERLAY) |
23 | 0 | data[idx++] = "video-overlay"; |
24 | 0 | if (val & FU_V4L_CAP_VBI_CAPTURE) |
25 | 0 | data[idx++] = "vbi-capture"; |
26 | 0 | if (val & FU_V4L_CAP_VBI_OUTPUT) |
27 | 0 | data[idx++] = "vbi-output"; |
28 | 0 | if (val & FU_V4L_CAP_SLICED_VBI_CAPTURE) |
29 | 0 | data[idx++] = "sliced-vbi-capture"; |
30 | 0 | if (val & FU_V4L_CAP_SLICED_VBI_OUTPUT) |
31 | 0 | data[idx++] = "sliced-vbi-output"; |
32 | 0 | if (val & FU_V4L_CAP_RDS_CAPTURE) |
33 | 0 | data[idx++] = "rds-capture"; |
34 | 0 | if (val & FU_V4L_CAP_VIDEO_OUTPUT_OVERLAY) |
35 | 0 | data[idx++] = "video-output-overlay"; |
36 | 0 | if (val & FU_V4L_CAP_HW_FREQ_SEEK) |
37 | 0 | data[idx++] = "hw-freq-seek"; |
38 | 0 | if (val & FU_V4L_CAP_RDS_OUTPUT) |
39 | 0 | data[idx++] = "rds-output"; |
40 | 0 | if (val & FU_V4L_CAP_VIDEO_CAPTURE_MPLANE) |
41 | 0 | data[idx++] = "video-capture-mplane"; |
42 | 0 | if (val & FU_V4L_CAP_VIDEO_OUTPUT_MPLANE) |
43 | 0 | data[idx++] = "video-output-mplane"; |
44 | 0 | if (val & FU_V4L_CAP_VIDEO_M2M_MPLANE) |
45 | 0 | data[idx++] = "video-m2m-mplane"; |
46 | 0 | if (val & FU_V4L_CAP_VIDEO_M2M) |
47 | 0 | data[idx++] = "video-m2m"; |
48 | 0 | if (val & FU_V4L_CAP_TUNER) |
49 | 0 | data[idx++] = "tuner"; |
50 | 0 | if (val & FU_V4L_CAP_AUDIO) |
51 | 0 | data[idx++] = "audio"; |
52 | 0 | if (val & FU_V4L_CAP_RADIO) |
53 | 0 | data[idx++] = "radio"; |
54 | 0 | if (val & FU_V4L_CAP_MODULATOR) |
55 | 0 | data[idx++] = "modulator"; |
56 | 0 | if (val & FU_V4L_CAP_SDR_CAPTURE) |
57 | 0 | data[idx++] = "sdr-capture"; |
58 | 0 | if (val & FU_V4L_CAP_EXT_PIX_FORMAT) |
59 | 0 | data[idx++] = "ext-pix-format"; |
60 | 0 | if (val & FU_V4L_CAP_SDR_OUTPUT) |
61 | 0 | data[idx++] = "sdr-output"; |
62 | 0 | if (val & FU_V4L_CAP_META_CAPTURE) |
63 | 0 | data[idx++] = "meta-capture"; |
64 | 0 | if (val & FU_V4L_CAP_READWRITE) |
65 | 0 | data[idx++] = "readwrite"; |
66 | 0 | if (val & FU_V4L_CAP_STREAMING) |
67 | 0 | data[idx++] = "streaming"; |
68 | 0 | if (val & FU_V4L_CAP_META_OUTPUT) |
69 | 0 | data[idx++] = "meta-output"; |
70 | 0 | if (val & FU_V4L_CAP_TOUCH) |
71 | 0 | data[idx++] = "touch"; |
72 | 0 | if (val & FU_V4L_CAP_IO_MC) |
73 | 0 | data[idx++] = "io-mc"; |
74 | 0 | if (val & FU_V4L_CAP_DEVICE_CAPS) |
75 | 0 | data[idx++] = "device-caps"; |
76 | 0 | return g_strjoinv(",", (gchar **)data); |
77 | 0 | } |