brintos

brintos / linux-shallow public Read only

0
0
Text · 2.0 KiB · 5a23a15 Raw
72 lines · c
1/* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) */2/*3 * include/linux/v4l2-common.h4 *5 * Common V4L2 and V4L2 subdev definitions.6 *7 * Users are advised to #include this file either through videodev2.h8 * (V4L2) or through v4l2-subdev.h (V4L2 subdev) rather than to refer9 * to this file directly.10 *11 * Copyright (C) 2012 Nokia Corporation12 * 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 definitions23 *24 */25 26/* Current cropping area */27#define V4L2_SEL_TGT_CROP		0x000028/* Default cropping area */29#define V4L2_SEL_TGT_CROP_DEFAULT	0x000130/* Cropping bounds */31#define V4L2_SEL_TGT_CROP_BOUNDS	0x000232/* Native frame size */33#define V4L2_SEL_TGT_NATIVE_SIZE	0x000334/* Current composing area */35#define V4L2_SEL_TGT_COMPOSE		0x010036/* Default composing area */37#define V4L2_SEL_TGT_COMPOSE_DEFAULT	0x010138/* Composing bounds */39#define V4L2_SEL_TGT_COMPOSE_BOUNDS	0x010240/* Current composing area plus all padding pixels */41#define V4L2_SEL_TGT_COMPOSE_PADDED	0x010342 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 48struct 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_CROP59#define V4L2_SEL_TGT_COMPOSE_ACTIVE	V4L2_SEL_TGT_COMPOSE60#define V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL	V4L2_SEL_TGT_CROP61#define V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL V4L2_SEL_TGT_COMPOSE62#define V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS	V4L2_SEL_TGT_CROP_BOUNDS63#define V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS V4L2_SEL_TGT_COMPOSE_BOUNDS64 65/* Backward compatibility flag definitions --- to be removed. */66#define V4L2_SUBDEV_SEL_FLAG_SIZE_GE	V4L2_SEL_FLAG_GE67#define V4L2_SUBDEV_SEL_FLAG_SIZE_LE	V4L2_SEL_FLAG_LE68#define V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG V4L2_SEL_FLAG_KEEP_CONFIG69#endif70 71#endif /* __V4L2_COMMON__ */72