📄 sensor_if.h
字号:
/* * drivers/media/video/omap/sensor_if.h * * Copyright (C) 2004 Texas Instruments, Inc. * * Sensor interface to OMAP camera capture drivers * Sensor driver should implement this interface * * This package is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #ifndef OMAP_SENSOR_IF_H#define OMAP_SENSOR_IF_H #define LEN_SENSOR_NAME 31struct camera_sensor { unsigned int version; char name[LEN_SENSOR_NAME + 1]; void *(*init)(struct v4l2_pix_format *); int (*cleanup)(void *); int (*power_on)(void *); int (*power_off)(void *); int (*enum_pixformat)(struct v4l2_fmtdesc *, void *); int (*try_format) (struct v4l2_pix_format *, void *); unsigned long (*calc_xclk) (struct v4l2_pix_format *, struct v4l2_fract *, void *); int (*configure) (struct v4l2_pix_format *, unsigned long, struct v4l2_fract *, void *); int (*query_control) (struct v4l2_queryctrl *, void *); int (*get_control) (struct v4l2_control *, void *); int (*set_control) (struct v4l2_control *, void *);}; #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -