1/*
2 * Motion Eye video4linux driver for Sony Vaio PictureBook
3 *
4 * Copyright (C) 2001 Stelian Pop <stelian.pop@fr.alcove.com>, Alc�ve
5 *
6 * Copyright (C) 2000 Andrew Tridgell <tridge@valinux.com>
7 *
8 * Earlier work by Werner Almesberger, Paul `Rusty' Russell and Paul Mackerras.
9 *
10 * Some parts borrowed from various video4linux drivers, especially
11 * bttv-driver.c and zoran.c, see original files for credits.
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 */
27
28#ifndef _MEYE_H_
29#define _MEYE_H_
30
31/****************************************************************************/
32/* Private API for handling mjpeg capture / playback.                       */
33/****************************************************************************/
34
35struct meye_params {
36	unsigned char subsample;
37	unsigned char quality;
38	unsigned char sharpness;
39	unsigned char agc;
40	unsigned char picture;
41	unsigned char framerate;
42};
43
44/* query the extended parameters */
45#define MEYEIOC_G_PARAMS	_IOR ('v', BASE_VIDIOCPRIVATE+0, struct meye_params)
46/* set the extended parameters */
47#define MEYEIOC_S_PARAMS	_IOW ('v', BASE_VIDIOCPRIVATE+1, struct meye_params)
48/* queue a buffer for mjpeg capture */
49#define MEYEIOC_QBUF_CAPT	_IOW ('v', BASE_VIDIOCPRIVATE+2, int)
50/* sync a previously queued mjpeg buffer */
51#define MEYEIOC_SYNC		_IOWR('v', BASE_VIDIOCPRIVATE+3, int)
52/* get a still uncompressed snapshot */
53#define MEYEIOC_STILLCAPT	_IO  ('v', BASE_VIDIOCPRIVATE+4)
54/* get a jpeg compressed snapshot */
55#define MEYEIOC_STILLJCAPT	_IOR ('v', BASE_VIDIOCPRIVATE+5, int)
56
57#endif
58