meye.h 2.5 KB

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