pwc-timon.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* Linux driver for Philips webcam
  2. (C) 2004-2006 Luc Saillard (luc@saillard.org)
  3. NOTE: this version of pwc is an unofficial (modified) release of pwc & pcwx
  4. driver and thus may have bugs that are not present in the original version.
  5. Please send bug reports and support requests to <luc@saillard.org>.
  6. The decompression routines have been implemented by reverse-engineering the
  7. Nemosoft binary pwcx module. Caveat emptor.
  8. This program is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2 of the License, or
  11. (at your option) any later version.
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. */
  20. /* This tables contains entries for the 675/680/690 (Timon) camera, with
  21. 4 different qualities (no compression, low, medium, high).
  22. It lists the bandwidth requirements for said mode by its alternate interface
  23. number. An alternate of 0 means that the mode is unavailable.
  24. There are 6 * 4 * 4 entries:
  25. 6 different resolutions subqcif, qsif, qcif, sif, cif, vga
  26. 6 framerates: 5, 10, 15, 20, 25, 30
  27. 4 compression modi: none, low, medium, high
  28. When an uncompressed mode is not available, the next available compressed mode
  29. will be chosen (unless the decompressor is absent). Sometimes there are only
  30. 1 or 2 compressed modes available; in that case entries are duplicated.
  31. */
  32. #ifndef PWC_TIMON_H
  33. #define PWC_TIMON_H
  34. #include "pwc.h"
  35. #define PWC_FPS_MAX_TIMON 6
  36. struct Timon_table_entry
  37. {
  38. char alternate; /* USB alternate interface */
  39. unsigned short packetsize; /* Normal packet size */
  40. unsigned short bandlength; /* Bandlength when decompressing */
  41. unsigned char mode[13]; /* precomputed mode settings for cam */
  42. };
  43. extern const struct Timon_table_entry Timon_table[PSZ_MAX][PWC_FPS_MAX_TIMON][4];
  44. extern const unsigned int TimonRomTable [16][2][16][8];
  45. extern const unsigned int Timon_fps_vector[PWC_FPS_MAX_TIMON];
  46. #endif