You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
5.0 KiB
120 lines
5.0 KiB
4 months ago
|
/****************************************************************************
|
||
|
****************************************************************************
|
||
|
***
|
||
|
*** This header was automatically generated from a Linux kernel header
|
||
|
*** of the same name, to make information necessary for userspace to
|
||
|
*** call into the kernel available to libc. It contains only constants,
|
||
|
*** structures, and macros generated from the original header, and thus,
|
||
|
*** contains no copyrightable information.
|
||
|
***
|
||
|
*** To edit the content of this header, modify the corresponding
|
||
|
*** source file (e.g. under external/kernel-headers/original/) then
|
||
|
*** run bionic/libc/kernel/tools/update_all.py
|
||
|
***
|
||
|
*** Any manual change here will be lost the next time this script will
|
||
|
*** be run. You've been warned!
|
||
|
***
|
||
|
****************************************************************************
|
||
|
****************************************************************************/
|
||
|
#ifndef __LINUX_V4L2_MEDIABUS_H
|
||
|
#define __LINUX_V4L2_MEDIABUS_H
|
||
|
#include <linux/media-bus-format.h>
|
||
|
#include <linux/types.h>
|
||
|
#include <linux/videodev2.h>
|
||
|
#define V4L2_MBUS_FRAMEFMT_SET_CSC 0x0001
|
||
|
struct v4l2_mbus_framefmt {
|
||
|
__u32 width;
|
||
|
__u32 height;
|
||
|
__u32 code;
|
||
|
__u32 field;
|
||
|
__u32 colorspace;
|
||
|
union {
|
||
|
__u16 ycbcr_enc;
|
||
|
__u16 hsv_enc;
|
||
|
};
|
||
|
__u16 quantization;
|
||
|
__u16 xfer_func;
|
||
|
__u16 flags;
|
||
|
__u16 reserved[10];
|
||
|
};
|
||
|
#define V4L2_MBUS_FROM_MEDIA_BUS_FMT(name) V4L2_MBUS_FMT_ ##name = MEDIA_BUS_FMT_ ##name
|
||
|
enum v4l2_mbus_pixelcode {
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(FIXED),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB444_2X8_PADHI_BE),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(RGB444_2X8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10),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY10_2X10),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY10_2X10),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV10_2X10),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU10_2X10),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(Y12_1X12),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY8_1X16),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY8_1X16),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV8_1X16),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU8_1X16),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(YDYUYDYV8_1X16),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY10_1X20),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY10_1X20),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV10_1X20),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU10_1X20),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUV10_1X30),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(AYUV8_1X32),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY12_2X12),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY12_2X12),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(YUYV12_2X12),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(YVYU12_2X12),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(UYVY12_1X24),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_FMT(VYUY12_1X24),
|
||
|
V4L2_MBUS_FROM_MEDIA_BUS_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