1655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/****************************************************************************
2655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************
3655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
4655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   This header was automatically generated from a Linux kernel header
5655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   of the same name, to make information necessary for userspace to
6655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   call into the kernel available to libc.  It contains only constants,
7655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   structures, and macros generated from the original header, and thus,
8655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   contains no copyrightable information.
9655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
10655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   To edit the content of this header, modify the corresponding
11655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   source file (e.g. under external/kernel-headers/original/) then
12655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   run bionic/libc/kernel/tools/update_all.py
13655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
14655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   Any manual change here will be lost the next time this script will
15655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   be run. You've been warned!
16655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
17655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************
18655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************/
19655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifndef __LINUX_V4L2_MEDIABUS_H
20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define __LINUX_V4L2_MEDIABUS_H
21655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/types.h>
22655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/videodev2.h>
23655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengenum v4l2_mbus_pixelcode {
25d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_FIXED = 0x0001,
26d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_RGB444_2X8_PADHI_BE = 0x1001,
27d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_RGB444_2X8_PADHI_LE = 0x1002,
28d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_RGB555_2X8_PADHI_BE = 0x1003,
30d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_RGB555_2X8_PADHI_LE = 0x1004,
31d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_BGR565_2X8_BE = 0x1005,
32d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_BGR565_2X8_LE = 0x1006,
33d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_RGB565_2X8_BE = 0x1007,
35d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_RGB565_2X8_LE = 0x1008,
36d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_RGB666_1X18 = 0x1009,
37d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_RGB888_1X24 = 0x100a,
38d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_RGB888_2X12_BE = 0x100b,
40d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_RGB888_2X12_LE = 0x100c,
41d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_ARGB8888_1X32 = 0x100d,
42d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_Y8_1X8 = 0x2001,
43d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_UV8_1X8 = 0x2015,
45d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_UYVY8_1_5X8 = 0x2002,
46d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_VYUY8_1_5X8 = 0x2003,
47d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YUYV8_1_5X8 = 0x2004,
48d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YVYU8_1_5X8 = 0x2005,
50d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_UYVY8_2X8 = 0x2006,
51d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_VYUY8_2X8 = 0x2007,
52d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YUYV8_2X8 = 0x2008,
53d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YVYU8_2X8 = 0x2009,
55d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_Y10_1X10 = 0x200a,
56d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_UYVY10_2X10 = 0x2018,
57d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_VYUY10_2X10 = 0x2019,
58d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YUYV10_2X10 = 0x200b,
60d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YVYU10_2X10 = 0x200c,
61d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_Y12_1X12 = 0x2013,
62d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_UYVY8_1X16 = 0x200f,
63d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_VYUY8_1X16 = 0x2010,
65d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YUYV8_1X16 = 0x2011,
66d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YVYU8_1X16 = 0x2012,
67d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YDYUYDYV8_1X16 = 0x2014,
68d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_UYVY10_1X20 = 0x201a,
70d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_VYUY10_1X20 = 0x201b,
71d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YUYV10_1X20 = 0x200d,
72d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YVYU10_1X20 = 0x200e,
73d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YUV10_1X30 = 0x2016,
75d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_AYUV8_1X32 = 0x2017,
76d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_UYVY12_2X12 = 0x201c,
77d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_VYUY12_2X12 = 0x201d,
78d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YUYV12_2X12 = 0x201e,
80d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YVYU12_2X12 = 0x201f,
81d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_UYVY12_1X24 = 0x2020,
82d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_VYUY12_1X24 = 0x2021,
83d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YUYV12_1X24 = 0x2022,
85d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_YVYU12_1X24 = 0x2023,
86d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SBGGR8_1X8 = 0x3001,
87d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SGBRG8_1X8 = 0x3013,
88d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SGRBG8_1X8 = 0x3002,
90d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SRGGB8_1X8 = 0x3014,
91d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SBGGR10_ALAW8_1X8 = 0x3015,
92d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SGBRG10_ALAW8_1X8 = 0x3016,
93d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SGRBG10_ALAW8_1X8 = 0x3017,
95d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SRGGB10_ALAW8_1X8 = 0x3018,
96d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SBGGR10_DPCM8_1X8 = 0x300b,
97d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SGBRG10_DPCM8_1X8 = 0x300c,
98d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8 = 0x3009,
100d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SRGGB10_DPCM8_1X8 = 0x300d,
101d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_BE = 0x3003,
102d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE = 0x3004,
103d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_BE = 0x3005,
105d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_LE = 0x3006,
106d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SBGGR10_1X10 = 0x3007,
107d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SGBRG10_1X10 = 0x300e,
108d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SGRBG10_1X10 = 0x300a,
110d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SRGGB10_1X10 = 0x300f,
111d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SBGGR12_1X12 = 0x3008,
112d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SGBRG12_1X12 = 0x3010,
113d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SGRBG12_1X12 = 0x3011,
115d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_SRGGB12_1X12 = 0x3012,
116d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_JPEG_1X8 = 0x4001,
117d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_S5C_UYVY_JPEG_1X8 = 0x5001,
118d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  V4L2_MBUS_FMT_AHSV8888_1X32 = 0x6001,
120655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
121655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct v4l2_mbus_framefmt {
122d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 width;
12338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 height;
125d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 code;
126d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 field;
127d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 colorspace;
12838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 reserved[7];
130655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
131655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#endif
132