~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/v4l2-common.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) */
  2 /*
  3  * include/linux/v4l2-common.h
  4  *
  5  * Common V4L2 and V4L2 subdev definitions.
  6  *
  7  * Users are advised to #include this file either through videodev2.h
  8  * (V4L2) or through v4l2-subdev.h (V4L2 subdev) rather than to refer
  9  * to this file directly.
 10  *
 11  * Copyright (C) 2012 Nokia Corporation
 12  * Contact: Sakari Ailus <sakari.ailus@iki.fi>
 13  */
 14 
 15 #ifndef __V4L2_COMMON__
 16 #define __V4L2_COMMON__
 17 
 18 #include <linux/types.h>
 19 
 20 /*
 21  *
 22  * Selection interface definitions
 23  *
 24  */
 25 
 26 /* Current cropping area */
 27 #define V4L2_SEL_TGT_CROP               0x0000
 28 /* Default cropping area */
 29 #define V4L2_SEL_TGT_CROP_DEFAULT       0x0001
 30 /* Cropping bounds */
 31 #define V4L2_SEL_TGT_CROP_BOUNDS        0x0002
 32 /* Native frame size */
 33 #define V4L2_SEL_TGT_NATIVE_SIZE        0x0003
 34 /* Current composing area */
 35 #define V4L2_SEL_TGT_COMPOSE            0x0100
 36 /* Default composing area */
 37 #define V4L2_SEL_TGT_COMPOSE_DEFAULT    0x0101
 38 /* Composing bounds */
 39 #define V4L2_SEL_TGT_COMPOSE_BOUNDS     0x0102
 40 /* Current composing area plus all padding pixels */
 41 #define V4L2_SEL_TGT_COMPOSE_PADDED     0x0103
 42 
 43 /* Selection flags */
 44 #define V4L2_SEL_FLAG_GE                (1 << 0)
 45 #define V4L2_SEL_FLAG_LE                (1 << 1)
 46 #define V4L2_SEL_FLAG_KEEP_CONFIG       (1 << 2)
 47 
 48 struct v4l2_edid {
 49         __u32 pad;
 50         __u32 start_block;
 51         __u32 blocks;
 52         __u32 reserved[5];
 53         __u8  *edid;
 54 };
 55 
 56 #ifndef __KERNEL__
 57 /* Backward compatibility target definitions --- to be removed. */
 58 #define V4L2_SEL_TGT_CROP_ACTIVE        V4L2_SEL_TGT_CROP
 59 #define V4L2_SEL_TGT_COMPOSE_ACTIVE     V4L2_SEL_TGT_COMPOSE
 60 #define V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL V4L2_SEL_TGT_CROP
 61 #define V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL V4L2_SEL_TGT_COMPOSE
 62 #define V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS V4L2_SEL_TGT_CROP_BOUNDS
 63 #define V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS V4L2_SEL_TGT_COMPOSE_BOUNDS
 64 
 65 /* Backward compatibility flag definitions --- to be removed. */
 66 #define V4L2_SUBDEV_SEL_FLAG_SIZE_GE    V4L2_SEL_FLAG_GE
 67 #define V4L2_SUBDEV_SEL_FLAG_SIZE_LE    V4L2_SEL_FLAG_LE
 68 #define V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG V4L2_SEL_FLAG_KEEP_CONFIG
 69 #endif
 70 
 71 #endif /* __V4L2_COMMON__ */
 72 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php