| 1 |
// Package v4l, a facade to the Video4Linux video capture interface |
| 2 |
// Copyright (C) 2016 Zoltán Korándi <[email protected]> |
| 3 |
// |
| 4 |
// This program is free software: you can redistribute it and/or modify |
| 5 |
// it under the terms of the GNU General Public License as published by |
| 6 |
// the Free Software Foundation, either version 3 of the License, or |
| 7 |
// (at your option) any later version. |
| 8 |
// |
| 9 |
// This program is distributed in the hope that it will be useful, |
| 10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
// GNU General Public License for more details. |
| 13 |
// |
| 14 |
// You should have received a copy of the GNU General Public License |
| 15 |
// along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 |
|
| 17 |
#include <stdio.h> |
| 18 |
#include <stdlib.h> |
| 19 |
#include <stddef.h> |
| 20 |
#include <linux/videodev2.h> |
| 21 |
|
| 22 |
int main() { |
| 23 |
printf("// +build linux\n"); |
| 24 |
printf("// +build "); |
| 25 |
fflush(stdout); |
| 26 |
system("go env GOHOSTARCH"); |
| 27 |
printf("\n"); |
| 28 |
|
| 29 |
printf("/////////////////////////////////////////////////////\n"); |
| 30 |
printf("// //\n"); |
| 31 |
printf("// !!! THIS IS A GENERATED FILE, DO NOT EDIT !!! //\n"); |
| 32 |
printf("// //\n"); |
| 33 |
printf("/////////////////////////////////////////////////////\n"); |
| 34 |
printf("\n"); |
| 35 |
|
| 36 |
printf("package v4l\n\n"); |
| 37 |
|
| 38 |
printf("const (\n"); |
| 39 |
printf("\tvidioc_querycap = 0x%08llx\n", (long long unsigned) VIDIOC_QUERYCAP); |
| 40 |
printf("\tvidioc_gFmt = 0x%08llx\n", (long long unsigned) VIDIOC_G_FMT); |
| 41 |
printf("\tvidioc_sFmt = 0x%08llx\n", (long long unsigned) VIDIOC_S_FMT); |
| 42 |
printf("\tvidioc_gParm = 0x%08llx\n", (long long unsigned) VIDIOC_G_PARM); |
| 43 |
printf("\tvidioc_sParm = 0x%08llx\n", (long long unsigned) VIDIOC_S_PARM); |
| 44 |
printf("\tvidioc_reqbufs = 0x%08llx\n", (long long unsigned) VIDIOC_REQBUFS); |
| 45 |
printf("\tvidioc_querybuf = 0x%08llx\n", (long long unsigned) VIDIOC_QUERYBUF); |
| 46 |
printf("\tvidioc_qbuf = 0x%08llx\n", (long long unsigned) VIDIOC_QBUF); |
| 47 |
printf("\tvidioc_dqbuf = 0x%08llx\n", (long long unsigned) VIDIOC_DQBUF); |
| 48 |
printf("\tvidioc_streamon = 0x%08llx\n", (long long unsigned) VIDIOC_STREAMON); |
| 49 |
printf("\tvidioc_streamoff = 0x%08llx\n", (long long unsigned) VIDIOC_STREAMOFF); |
| 50 |
printf("\tvidioc_cropcap = 0x%08llx\n", (long long unsigned) VIDIOC_CROPCAP); |
| 51 |
printf("\tvidioc_sCrop = 0x%08llx\n", (long long unsigned) VIDIOC_S_CROP); |
| 52 |
printf("\tvidioc_enumstd = 0x%08llx\n", (long long unsigned) VIDIOC_ENUMSTD); |
| 53 |
printf("\tvidioc_enumFmt = 0x%08llx\n", (long long unsigned) VIDIOC_ENUM_FMT); |
| 54 |
printf("\tvidioc_enumFramesizes = 0x%08llx\n", (long long unsigned) VIDIOC_ENUM_FRAMESIZES); |
| 55 |
printf("\tvidioc_enumFrameintervals = 0x%08llx\n", (long long unsigned) VIDIOC_ENUM_FRAMEINTERVALS); |
| 56 |
printf("\tvidioc_queryctrl = 0x%08llx\n", (long long unsigned) VIDIOC_QUERYCTRL); |
| 57 |
printf("\tvidioc_querymenu = 0x%08llx\n", (long long unsigned) VIDIOC_QUERYMENU); |
| 58 |
printf("\tvidioc_gCtrl = 0x%08llx\n", (long long unsigned) VIDIOC_G_CTRL); |
| 59 |
printf("\tvidioc_sCtrl = 0x%08llx\n", (long long unsigned) VIDIOC_S_CTRL); |
| 60 |
printf(")\n\n"); |
| 61 |
|
| 62 |
printf("const (\n"); |
| 63 |
printf("\tsize_capability = %llu\n", (long long unsigned) sizeof(struct v4l2_capability)); |
| 64 |
printf("\tsize_format = %llu\n", (long long unsigned) sizeof(struct v4l2_format)); |
| 65 |
printf("\tsize_streamparm = %llu\n", (long long unsigned) sizeof(struct v4l2_streamparm)); |
| 66 |
printf("\tsize_requestbuffers = %llu\n", (long long unsigned) sizeof(struct v4l2_requestbuffers)); |
| 67 |
printf("\tsize_buffer = %llu\n", (long long unsigned) sizeof(struct v4l2_buffer)); |
| 68 |
printf("\tsize_int = %llu\n", (long long unsigned) sizeof(int)); |
| 69 |
printf("\tsize_cropcap = %llu\n", (long long unsigned) sizeof(struct v4l2_cropcap)); |
| 70 |
printf("\tsize_crop = %llu\n", (long long unsigned) sizeof(struct v4l2_crop)); |
| 71 |
printf("\tsize_standard = %llu\n", (long long unsigned) sizeof(struct v4l2_standard)); |
| 72 |
printf("\tsize_fmtdesc = %llu\n", (long long unsigned) sizeof(struct v4l2_fmtdesc)); |
| 73 |
printf("\tsize_frmsizeenum = %llu\n", (long long unsigned) sizeof(struct v4l2_frmsizeenum)); |
| 74 |
printf("\tsize_frmivalenum = %llu\n", (long long unsigned) sizeof(struct v4l2_frmivalenum)); |
| 75 |
printf("\tsize_queryctrl = %llu\n", (long long unsigned) sizeof(struct v4l2_queryctrl)); |
| 76 |
printf("\tsize_querymenu = %llu\n", (long long unsigned) sizeof(struct v4l2_querymenu)); |
| 77 |
printf("\tsize_control = %llu\n", (long long unsigned) sizeof(struct v4l2_control)); |
| 78 |
printf(")\n\n"); |
| 79 |
|
| 80 |
printf("const (\n"); |
| 81 |
printf("\toffs_capability_driver = %llu\n", (long long unsigned) offsetof(struct v4l2_capability, driver)); |
| 82 |
printf("\tsize_capability_driver = %llu\n", (long long unsigned) sizeof((struct v4l2_capability){0}.driver)); |
| 83 |
printf("\toffs_capability_card = %llu\n", (long long unsigned) offsetof(struct v4l2_capability, card)); |
| 84 |
printf("\tsize_capability_card = %llu\n", (long long unsigned) sizeof((struct v4l2_capability){0}.card)); |
| 85 |
printf("\toffs_capability_busInfo = %llu\n", (long long unsigned) offsetof(struct v4l2_capability, bus_info)); |
| 86 |
printf("\tsize_capability_busInfo = %llu\n", (long long unsigned) sizeof((struct v4l2_capability){0}.bus_info)); |
| 87 |
printf("\toffs_capability_version = %llu\n", (long long unsigned) offsetof(struct v4l2_capability, version)); |
| 88 |
printf("\toffs_capability_capabilities = %llu\n", (long long unsigned) offsetof(struct v4l2_capability, capabilities)); |
| 89 |
printf("\toffs_capability_deviceCaps = %llu\n", (long long unsigned) offsetof(struct v4l2_capability, device_caps)); |
| 90 |
printf(")\n\n"); |
| 91 |
|
| 92 |
printf("const (\n"); |
| 93 |
printf("\toffs_format_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_format, type)); |
| 94 |
printf("\toffs_format_fmt = %llu\n", (long long unsigned) offsetof(struct v4l2_format, fmt)); |
| 95 |
printf(")\n\n"); |
| 96 |
|
| 97 |
printf("const (\n"); |
| 98 |
printf("\toffs_pixFormat_width = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, width)); |
| 99 |
printf("\toffs_pixFormat_height = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, height)); |
| 100 |
printf("\toffs_pixFormat_pixelformat = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, pixelformat)); |
| 101 |
printf("\toffs_pixFormat_field = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, field)); |
| 102 |
printf("\toffs_pixFormat_bytesperline = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, bytesperline)); |
| 103 |
printf("\toffs_pixFormat_sizeimage = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, sizeimage)); |
| 104 |
printf("\toffs_pixFormat_colorspace = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, colorspace)); |
| 105 |
printf("\toffs_pixFormat_priv = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, priv)); |
| 106 |
printf("\toffs_pixFormat_flags = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, flags)); |
| 107 |
printf("\toffs_pixFormat_ycbcrEnc = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, ycbcr_enc)); |
| 108 |
printf("\toffs_pixFormat_quantization = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, quantization)); |
| 109 |
printf("\toffs_pixFormat_xferFunc = %llu\n", (long long unsigned) offsetof(struct v4l2_pix_format, xfer_func)); |
| 110 |
printf(")\n\n"); |
| 111 |
|
| 112 |
printf("const (\n"); |
| 113 |
printf("\toffs_streamparm_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_streamparm, type)); |
| 114 |
printf("\toffs_streamparm_parm = %llu\n", (long long unsigned) offsetof(struct v4l2_streamparm, parm)); |
| 115 |
printf(")\n\n"); |
| 116 |
|
| 117 |
printf("const (\n"); |
| 118 |
printf("\toffs_captureparm_capability = %llu\n", (long long unsigned) offsetof(struct v4l2_captureparm, capability)); |
| 119 |
printf("\toffs_captureparm_capturemode = %llu\n", (long long unsigned) offsetof(struct v4l2_captureparm, capturemode)); |
| 120 |
printf("\toffs_captureparm_timeperframe = %llu\n", (long long unsigned) offsetof(struct v4l2_captureparm, timeperframe)); |
| 121 |
printf("\toffs_captureparm_extendedmode = %llu\n", (long long unsigned) offsetof(struct v4l2_captureparm, extendedmode)); |
| 122 |
printf("\toffs_captureparm_readbuffers = %llu\n", (long long unsigned) offsetof(struct v4l2_captureparm, readbuffers)); |
| 123 |
printf(")\n\n"); |
| 124 |
|
| 125 |
printf("const (\n"); |
| 126 |
printf("\toffs_requestbuffers_count = %llu\n", (long long unsigned) offsetof(struct v4l2_requestbuffers, count)); |
| 127 |
printf("\toffs_requestbuffers_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_requestbuffers, type)); |
| 128 |
printf("\toffs_requestbuffers_memory = %llu\n", (long long unsigned) offsetof(struct v4l2_requestbuffers, memory)); |
| 129 |
printf(")\n\n"); |
| 130 |
|
| 131 |
printf("const (\n"); |
| 132 |
printf("\toffs_buffer_index = %llu\n", (long long unsigned) offsetof(struct v4l2_buffer, index)); |
| 133 |
printf("\toffs_buffer_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_buffer, type)); |
| 134 |
printf("\toffs_buffer_bytesused = %llu\n", (long long unsigned) offsetof(struct v4l2_buffer, bytesused)); |
| 135 |
printf("\toffs_buffer_flags = %llu\n", (long long unsigned) offsetof(struct v4l2_buffer, flags)); |
| 136 |
printf("\toffs_buffer_field = %llu\n", (long long unsigned) offsetof(struct v4l2_buffer, field)); |
| 137 |
printf("\toffs_buffer_timecode = %llu\n", (long long unsigned) offsetof(struct v4l2_buffer, timecode)); |
| 138 |
printf("\toffs_buffer_sequence = %llu\n", (long long unsigned) offsetof(struct v4l2_buffer, sequence)); |
| 139 |
printf("\toffs_buffer_memory = %llu\n", (long long unsigned) offsetof(struct v4l2_buffer, memory)); |
| 140 |
printf("\toffs_buffer_offset = %llu\n", (long long unsigned) offsetof(struct v4l2_buffer, m.offset)); |
| 141 |
printf("\toffs_buffer_length = %llu\n", (long long unsigned) offsetof(struct v4l2_buffer, length)); |
| 142 |
printf(")\n\n"); |
| 143 |
|
| 144 |
printf("const (\n"); |
| 145 |
printf("\toffs_cropcap_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_cropcap, type)); |
| 146 |
printf("\toffs_cropcap_bounds = %llu\n", (long long unsigned) offsetof(struct v4l2_cropcap, bounds)); |
| 147 |
printf("\toffs_cropcap_defrect = %llu\n", (long long unsigned) offsetof(struct v4l2_cropcap, defrect)); |
| 148 |
printf("\toffs_cropcap_pixelaspect = %llu\n", (long long unsigned) offsetof(struct v4l2_cropcap, pixelaspect)); |
| 149 |
printf(")\n\n"); |
| 150 |
|
| 151 |
printf("const (\n"); |
| 152 |
printf("\toffs_crop_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_crop, type)); |
| 153 |
printf("\toffs_crop_c = %llu\n", (long long unsigned) offsetof(struct v4l2_crop, c)); |
| 154 |
printf(")\n\n"); |
| 155 |
|
| 156 |
printf("const (\n"); |
| 157 |
printf("\toffs_fract_numerator = %llu\n", (long long unsigned) offsetof(struct v4l2_fract, numerator)); |
| 158 |
printf("\toffs_fract_denominator = %llu\n", (long long unsigned) offsetof(struct v4l2_fract, denominator)); |
| 159 |
printf(")\n\n"); |
| 160 |
|
| 161 |
printf("const (\n"); |
| 162 |
printf("\toffs_timecode_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_timecode, type)); |
| 163 |
printf("\toffs_timecode_flags = %llu\n", (long long unsigned) offsetof(struct v4l2_timecode, flags)); |
| 164 |
printf("\toffs_timecode_frames = %llu\n", (long long unsigned) offsetof(struct v4l2_timecode, frames)); |
| 165 |
printf("\toffs_timecode_seconds = %llu\n", (long long unsigned) offsetof(struct v4l2_timecode, seconds)); |
| 166 |
printf("\toffs_timecode_minutes = %llu\n", (long long unsigned) offsetof(struct v4l2_timecode, minutes)); |
| 167 |
printf("\toffs_timecode_hours = %llu\n", (long long unsigned) offsetof(struct v4l2_timecode, hours)); |
| 168 |
printf("\toffs_timecode_userbits = %llu\n", (long long unsigned) offsetof(struct v4l2_timecode, userbits)); |
| 169 |
printf(")\n\n"); |
| 170 |
|
| 171 |
printf("const (\n"); |
| 172 |
printf("\toffs_rect_left = %llu\n", (long long unsigned) offsetof(struct v4l2_rect, left)); |
| 173 |
printf("\toffs_rect_top = %llu\n", (long long unsigned) offsetof(struct v4l2_rect, top)); |
| 174 |
printf("\toffs_rect_width = %llu\n", (long long unsigned) offsetof(struct v4l2_rect, width)); |
| 175 |
printf("\toffs_rect_height = %llu\n", (long long unsigned) offsetof(struct v4l2_rect, height)); |
| 176 |
printf(")\n\n"); |
| 177 |
|
| 178 |
printf("const (\n"); |
| 179 |
printf("\toffs_standard_index = %llu\n", (long long unsigned) offsetof(struct v4l2_standard, index)); |
| 180 |
printf("\toffs_standard_id = %llu\n", (long long unsigned) offsetof(struct v4l2_standard, id)); |
| 181 |
printf("\toffs_standard_name = %llu\n", (long long unsigned) offsetof(struct v4l2_standard, name)); |
| 182 |
printf("\tsize_standard_name = %llu\n", (long long unsigned) sizeof((struct v4l2_standard){0}.name)); |
| 183 |
printf("\toffs_standard_frameperiod = %llu\n", (long long unsigned) offsetof(struct v4l2_standard, frameperiod)); |
| 184 |
printf("\toffs_standard_framelines = %llu\n", (long long unsigned) offsetof(struct v4l2_standard, framelines)); |
| 185 |
printf(")\n\n"); |
| 186 |
|
| 187 |
printf("const (\n"); |
| 188 |
printf("\toffs_fmtdesc_index = %llu\n", (long long unsigned) offsetof(struct v4l2_fmtdesc, index)); |
| 189 |
printf("\toffs_fmtdesc_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_fmtdesc, type)); |
| 190 |
printf("\toffs_fmtdesc_flags = %llu\n", (long long unsigned) offsetof(struct v4l2_fmtdesc, flags)); |
| 191 |
printf("\toffs_fmtdesc_description = %llu\n", (long long unsigned) offsetof(struct v4l2_fmtdesc, description)); |
| 192 |
printf("\tsize_fmtdesc_description = %llu\n", (long long unsigned) sizeof((struct v4l2_fmtdesc){0}.description)); |
| 193 |
printf("\toffs_fmtdesc_pixelformat = %llu\n", (long long unsigned) offsetof(struct v4l2_fmtdesc, pixelformat)); |
| 194 |
printf(")\n\n"); |
| 195 |
|
| 196 |
printf("const (\n"); |
| 197 |
printf("\toffs_frmsizeenum_index = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsizeenum, index)); |
| 198 |
printf("\toffs_frmsizeenum_pixelFormat = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsizeenum, pixel_format)); |
| 199 |
printf("\toffs_frmsizeenum_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsizeenum, type)); |
| 200 |
printf("\toffs_frmsizeenum_discrete = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsizeenum, discrete)); |
| 201 |
printf("\toffs_frmsizeenum_stepwise = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsizeenum, stepwise)); |
| 202 |
printf(")\n\n"); |
| 203 |
|
| 204 |
printf("const (\n"); |
| 205 |
printf("\toffs_frmsizeDiscrete_width = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsize_discrete, width)); |
| 206 |
printf("\toffs_frmsizeDiscrete_height = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsize_discrete, height)); |
| 207 |
printf(")\n\n"); |
| 208 |
|
| 209 |
printf("const (\n"); |
| 210 |
printf("\toffs_frmsizeStepwise_minWidth = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsize_stepwise, min_width)); |
| 211 |
printf("\toffs_frmsizeStepwise_maxWidth = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsize_stepwise, max_width)); |
| 212 |
printf("\toffs_frmsizeStepwise_stepWidth = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsize_stepwise, step_width)); |
| 213 |
printf("\toffs_frmsizeStepwise_minHeight = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsize_stepwise, min_height)); |
| 214 |
printf("\toffs_frmsizeStepwise_maxHeight = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsize_stepwise, max_height)); |
| 215 |
printf("\toffs_frmsizeStepwise_stepHeight = %llu\n", (long long unsigned) offsetof(struct v4l2_frmsize_stepwise, step_height)); |
| 216 |
printf(")\n\n"); |
| 217 |
|
| 218 |
printf("const (\n"); |
| 219 |
printf("\toffs_frmivalenum_index = %llu\n", (long long unsigned) offsetof(struct v4l2_frmivalenum, index)); |
| 220 |
printf("\toffs_frmivalenum_pixelFormat = %llu\n", (long long unsigned) offsetof(struct v4l2_frmivalenum, pixel_format)); |
| 221 |
printf("\toffs_frmivalenum_width = %llu\n", (long long unsigned) offsetof(struct v4l2_frmivalenum, width)); |
| 222 |
printf("\toffs_frmivalenum_height = %llu\n", (long long unsigned) offsetof(struct v4l2_frmivalenum, height)); |
| 223 |
printf("\toffs_frmivalenum_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_frmivalenum, type)); |
| 224 |
printf("\toffs_frmivalenum_discrete = %llu\n", (long long unsigned) offsetof(struct v4l2_frmivalenum, discrete)); |
| 225 |
printf("\toffs_frmivalenum_stepwise = %llu\n", (long long unsigned) offsetof(struct v4l2_frmivalenum, stepwise)); |
| 226 |
printf(")\n\n"); |
| 227 |
|
| 228 |
printf("const (\n"); |
| 229 |
printf("\toffs_frmivalStepwise_min = %llu\n", (long long unsigned) offsetof(struct v4l2_frmival_stepwise, min)); |
| 230 |
printf("\toffs_frmivalStepwise_max = %llu\n", (long long unsigned) offsetof(struct v4l2_frmival_stepwise, max)); |
| 231 |
printf("\toffs_frmivalStepwise_step = %llu\n", (long long unsigned) offsetof(struct v4l2_frmival_stepwise, step)); |
| 232 |
printf(")\n\n"); |
| 233 |
|
| 234 |
printf("const (\n"); |
| 235 |
printf("\toffs_queryctrl_id = %llu\n", (long long unsigned) offsetof(struct v4l2_queryctrl, id)); |
| 236 |
printf("\toffs_queryctrl_typ = %llu\n", (long long unsigned) offsetof(struct v4l2_queryctrl, type)); |
| 237 |
printf("\toffs_queryctrl_name = %llu\n", (long long unsigned) offsetof(struct v4l2_queryctrl, name)); |
| 238 |
printf("\tsize_queryctrl_name = %llu\n", (long long unsigned) sizeof((struct v4l2_queryctrl){0}.name)); |
| 239 |
printf("\toffs_queryctrl_minimum = %llu\n", (long long unsigned) offsetof(struct v4l2_queryctrl, minimum)); |
| 240 |
printf("\toffs_queryctrl_maximum = %llu\n", (long long unsigned) offsetof(struct v4l2_queryctrl, maximum)); |
| 241 |
printf("\toffs_queryctrl_step = %llu\n", (long long unsigned) offsetof(struct v4l2_queryctrl, step)); |
| 242 |
printf("\toffs_queryctrl_defaultValue = %llu\n", (long long unsigned) offsetof(struct v4l2_queryctrl, default_value)); |
| 243 |
printf("\toffs_queryctrl_flags = %llu\n", (long long unsigned) offsetof(struct v4l2_queryctrl, flags)); |
| 244 |
printf(")\n\n"); |
| 245 |
|
| 246 |
printf("const (\n"); |
| 247 |
printf("\toffs_querymenu_id = %llu\n", (long long unsigned) offsetof(struct v4l2_querymenu, id)); |
| 248 |
printf("\toffs_querymenu_index = %llu\n", (long long unsigned) offsetof(struct v4l2_querymenu, index)); |
| 249 |
printf("\toffs_querymenu_name = %llu\n", (long long unsigned) offsetof(struct v4l2_querymenu, name)); |
| 250 |
printf("\tsize_querymenu_name = %llu\n", (long long unsigned) sizeof((struct v4l2_querymenu){0}.name)); |
| 251 |
printf("\toffs_querymenu_value = %llu\n", (long long unsigned) offsetof(struct v4l2_querymenu, value)); |
| 252 |
printf(")\n\n"); |
| 253 |
|
| 254 |
printf("const (\n"); |
| 255 |
printf("\toffs_control_id = %llu\n", (long long unsigned) offsetof(struct v4l2_control, id)); |
| 256 |
printf("\toffs_control_value = %llu\n", (long long unsigned) offsetof(struct v4l2_control, value)); |
| 257 |
printf(")\n"); |
| 258 |
|
| 259 |
return 0; |
| 260 |
} |