blob: 91f30e7d4c0b9e00b9ee084c8d7f6a33c3a7fa53 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef __V4L2_COMMON__
8#define __V4L2_COMMON__
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07009#include <linux/types.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070010#define V4L2_SEL_TGT_CROP 0x0000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070011#define V4L2_SEL_TGT_CROP_DEFAULT 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -070012#define V4L2_SEL_TGT_CROP_BOUNDS 0x0002
Christopher Ferris05d08e92016-02-04 13:16:38 -080013#define V4L2_SEL_TGT_NATIVE_SIZE 0x0003
Ben Cheng655a7c02013-10-16 16:09:24 -070014#define V4L2_SEL_TGT_COMPOSE 0x0100
Christopher Ferris05d08e92016-02-04 13:16:38 -080015#define V4L2_SEL_TGT_COMPOSE_DEFAULT 0x0101
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070016#define V4L2_SEL_TGT_COMPOSE_BOUNDS 0x0102
Ben Cheng655a7c02013-10-16 16:09:24 -070017#define V4L2_SEL_TGT_COMPOSE_PADDED 0x0103
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070018#define V4L2_SEL_FLAG_GE (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define V4L2_SEL_FLAG_LE (1 << 1)
20#define V4L2_SEL_FLAG_KEEP_CONFIG (1 << 2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070021struct v4l2_edid {
Christopher Ferris05d08e92016-02-04 13:16:38 -080022 __u32 pad;
Tao Baod7db5942015-01-28 10:07:51 -080023 __u32 start_block;
24 __u32 blocks;
25 __u32 reserved[5];
Christopher Ferris05d08e92016-02-04 13:16:38 -080026 __u8 * edid;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070027};
Christopher Ferrisd842e432019-03-07 10:21:59 -080028#define V4L2_SEL_TGT_CROP_ACTIVE V4L2_SEL_TGT_CROP
29#define V4L2_SEL_TGT_COMPOSE_ACTIVE V4L2_SEL_TGT_COMPOSE
30#define V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL V4L2_SEL_TGT_CROP
31#define V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL V4L2_SEL_TGT_COMPOSE
32#define V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS V4L2_SEL_TGT_CROP_BOUNDS
33#define V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS V4L2_SEL_TGT_COMPOSE_BOUNDS
34#define V4L2_SUBDEV_SEL_FLAG_SIZE_GE V4L2_SEL_FLAG_GE
35#define V4L2_SUBDEV_SEL_FLAG_SIZE_LE V4L2_SEL_FLAG_LE
36#define V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG V4L2_SEL_FLAG_KEEP_CONFIG
Ben Cheng655a7c02013-10-16 16:09:24 -070037#endif