Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef __LINUX_V4L2_MEDIABUS_H
     20 #define __LINUX_V4L2_MEDIABUS_H
     21 #include <linux/media-bus-format.h>
     22 #include <linux/types.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #include <linux/videodev2.h>
     25 struct v4l2_mbus_framefmt {
     26   __u32 width;
     27   __u32 height;
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29   __u32 code;
     30   __u32 field;
     31   __u32 colorspace;
     32   __u16 ycbcr_enc;
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34   __u16 quantization;
     35   __u16 xfer_func;
     36   __u16 reserved[11];
     37 };
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define V4L2_MBUS_FROM_MEDIA_BUS_FMT(name) V4L2_MBUS_FMT_ ##name = MEDIA_BUS_FMT_ ##name
     40 enum v4l2_mbus_pixelcode {
     41   V4L2_MBUS_FROM_MEDIA_BUS_FMT(FIXED),
     42   V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB444_2X8_PADHI_BE),
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44   V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB444_2X8_PADHI_LE),
     45   V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB555_2X8_PADHI_BE),
     46   V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB555_2X8_PADHI_LE),
     47   V4L2_MBUS_FROM_MEDIA_BUS_FMT(BGR565_2X8_BE),
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49   V4L2_MBUS_FROM_MEDIA_BUS_FMT(BGR565_2X8_LE),
     50   V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB565_2X8_BE),
     51   V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB565_2X8_LE),
     52   V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB666_1X18),
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54   V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB888_1X24),
     55   V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB888_2X12_BE),
     56   V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB888_2X12_LE),
     57   V4L2_MBUS_FROM_MEDIA_BUS_FMT(ARGB8888_1X32),
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59   V4L2_MBUS_FROM_MEDIA_BUS_FMT(Y8_1X8),
     60   V4L2_MBUS_FROM_MEDIA_BUS_FMT(UV8_1X8),
     61   V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY8_1_5X8),
     62   V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY8_1_5X8),
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV8_1_5X8),
     65   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU8_1_5X8),
     66   V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY8_2X8),
     67   V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY8_2X8),
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV8_2X8),
     70   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU8_2X8),
     71   V4L2_MBUS_FROM_MEDIA_BUS_FMT(Y10_1X10),
     72   V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY10_2X10),
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74   V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY10_2X10),
     75   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV10_2X10),
     76   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU10_2X10),
     77   V4L2_MBUS_FROM_MEDIA_BUS_FMT(Y12_1X12),
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79   V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY8_1X16),
     80   V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY8_1X16),
     81   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV8_1X16),
     82   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU8_1X16),
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YDYUYDYV8_1X16),
     85   V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY10_1X20),
     86   V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY10_1X20),
     87   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV10_1X20),
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU10_1X20),
     90   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUV10_1X30),
     91   V4L2_MBUS_FROM_MEDIA_BUS_FMT(AYUV8_1X32),
     92   V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY12_2X12),
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94   V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY12_2X12),
     95   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV12_2X12),
     96   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU12_2X12),
     97   V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY12_1X24),
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99   V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY12_1X24),
    100   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV12_1X24),
    101   V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU12_1X24),
    102   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SBGGR8_1X8),
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SGBRG8_1X8),
    105   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SGRBG8_1X8),
    106   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SRGGB8_1X8),
    107   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SBGGR10_ALAW8_1X8),
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SGBRG10_ALAW8_1X8),
    110   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SGRBG10_ALAW8_1X8),
    111   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SRGGB10_ALAW8_1X8),
    112   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SBGGR10_DPCM8_1X8),
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SGBRG10_DPCM8_1X8),
    115   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SGRBG10_DPCM8_1X8),
    116   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SRGGB10_DPCM8_1X8),
    117   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SBGGR10_2X8_PADHI_BE),
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SBGGR10_2X8_PADHI_LE),
    120   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SBGGR10_2X8_PADLO_BE),
    121   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SBGGR10_2X8_PADLO_LE),
    122   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SBGGR10_1X10),
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SGBRG10_1X10),
    125   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SGRBG10_1X10),
    126   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SRGGB10_1X10),
    127   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SBGGR12_1X12),
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SGBRG12_1X12),
    130   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SGRBG12_1X12),
    131   V4L2_MBUS_FROM_MEDIA_BUS_FMT(SRGGB12_1X12),
    132   V4L2_MBUS_FROM_MEDIA_BUS_FMT(JPEG_1X8),
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134   V4L2_MBUS_FROM_MEDIA_BUS_FMT(S5C_UYVY_JPEG_1X8),
    135   V4L2_MBUS_FROM_MEDIA_BUS_FMT(AHSV8888_1X32),
    136 };
    137 #endif
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139