1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef __V4L2_COMMON__ 7 #define __V4L2_COMMON__ 8 #include <linux/types.h> 9 #define V4L2_SEL_TGT_CROP 0x0000 10 #define V4L2_SEL_TGT_CROP_DEFAULT 0x0001 11 #define V4L2_SEL_TGT_CROP_BOUNDS 0x0002 12 #define V4L2_SEL_TGT_NATIVE_SIZE 0x0003 13 #define V4L2_SEL_TGT_COMPOSE 0x0100 14 #define V4L2_SEL_TGT_COMPOSE_DEFAULT 0x0101 15 #define V4L2_SEL_TGT_COMPOSE_BOUNDS 0x0102 16 #define V4L2_SEL_TGT_COMPOSE_PADDED 0x0103 17 #define V4L2_SEL_TGT_CROP_ACTIVE V4L2_SEL_TGT_CROP 18 #define V4L2_SEL_TGT_COMPOSE_ACTIVE V4L2_SEL_TGT_COMPOSE 19 #define V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL V4L2_SEL_TGT_CROP 20 #define V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL V4L2_SEL_TGT_COMPOSE 21 #define V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS V4L2_SEL_TGT_CROP_BOUNDS 22 #define V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS V4L2_SEL_TGT_COMPOSE_BOUNDS 23 #define V4L2_SEL_FLAG_GE (1 << 0) 24 #define V4L2_SEL_FLAG_LE (1 << 1) 25 #define V4L2_SEL_FLAG_KEEP_CONFIG (1 << 2) 26 #define V4L2_SUBDEV_SEL_FLAG_SIZE_GE V4L2_SEL_FLAG_GE 27 #define V4L2_SUBDEV_SEL_FLAG_SIZE_LE V4L2_SEL_FLAG_LE 28 #define V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG V4L2_SEL_FLAG_KEEP_CONFIG 29 struct v4l2_edid { 30 __u32 pad; 31 __u32 start_block; 32 __u32 blocks; 33 __u32 reserved[5]; 34 __u8 *edid; 35 }; 36 #endif 37