Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 /*
0003  * Motion Eye video4linux driver for Sony Vaio PictureBook
0004  *
0005  * Copyright (C) 2001-2003 Stelian Pop <stelian@popies.net>
0006  *
0007  * Copyright (C) 2001-2002 AlcĂ´ve <www.alcove.com>
0008  *
0009  * Copyright (C) 2000 Andrew Tridgell <tridge@valinux.com>
0010  *
0011  * Earlier work by Werner Almesberger, Paul `Rusty' Russell and Paul Mackerras.
0012  *
0013  * Some parts borrowed from various video4linux drivers, especially
0014  * bttv-driver.c and zoran.c, see original files for credits.
0015  *
0016  * This program is free software; you can redistribute it and/or modify
0017  * it under the terms of the GNU General Public License as published by
0018  * the Free Software Foundation; either version 2 of the License, or
0019  * (at your option) any later version.
0020  *
0021  * This program is distributed in the hope that it will be useful,
0022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0024  * GNU General Public License for more details.
0025  *
0026  * You should have received a copy of the GNU General Public License
0027  * along with this program; if not, write to the Free Software
0028  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
0029  */
0030 
0031 #ifndef _MEYE_H_
0032 #define _MEYE_H_
0033 
0034 /****************************************************************************/
0035 /* Private API for handling mjpeg capture / playback.                       */
0036 /****************************************************************************/
0037 
0038 struct meye_params {
0039     unsigned char subsample;
0040     unsigned char quality;
0041     unsigned char sharpness;
0042     unsigned char agc;
0043     unsigned char picture;
0044     unsigned char framerate;
0045 };
0046 
0047 /* query the extended parameters */
0048 #define MEYEIOC_G_PARAMS    _IOR ('v', BASE_VIDIOC_PRIVATE+0, struct meye_params)
0049 /* set the extended parameters */
0050 #define MEYEIOC_S_PARAMS    _IOW ('v', BASE_VIDIOC_PRIVATE+1, struct meye_params)
0051 /* queue a buffer for mjpeg capture */
0052 #define MEYEIOC_QBUF_CAPT   _IOW ('v', BASE_VIDIOC_PRIVATE+2, int)
0053 /* sync a previously queued mjpeg buffer */
0054 #define MEYEIOC_SYNC        _IOWR('v', BASE_VIDIOC_PRIVATE+3, int)
0055 /* get a still uncompressed snapshot */
0056 #define MEYEIOC_STILLCAPT   _IO  ('v', BASE_VIDIOC_PRIVATE+4)
0057 /* get a jpeg compressed snapshot */
0058 #define MEYEIOC_STILLJCAPT  _IOR ('v', BASE_VIDIOC_PRIVATE+5, int)
0059 
0060 /* V4L2 private controls */
0061 #define V4L2_CID_MEYE_AGC       (V4L2_CID_USER_MEYE_BASE + 0)
0062 #define V4L2_CID_MEYE_PICTURE       (V4L2_CID_USER_MEYE_BASE + 1)
0063 #define V4L2_CID_MEYE_FRAMERATE     (V4L2_CID_USER_MEYE_BASE + 2)
0064 
0065 #endif