blob: 7adc459d56a1731c194ee808e09040f05ec51cc6 [file] [log] [blame]
Thomas Gleixner1a59d1b82019-05-27 08:55:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/* Linux driver for Philips webcam
Luc Saillard2b455db2006-04-24 10:29:46 -03003 (C) 2004-2006 Luc Saillard (luc@saillard.org)
Linus Torvalds1da177e2005-04-16 15:20:36 -07004
5 NOTE: this version of pwc is an unofficial (modified) release of pwc & pcwx
6 driver and thus may have bugs that are not present in the original version.
7 Please send bug reports and support requests to <luc@saillard.org>.
8 The decompression routines have been implemented by reverse-engineering the
9 Nemosoft binary pwcx module. Caveat emptor.
10
Linus Torvalds1da177e2005-04-16 15:20:36 -070011*/
12
13
14
15/* This tables contains entries for the 675/680/690 (Timon) camera, with
16 4 different qualities (no compression, low, medium, high).
17 It lists the bandwidth requirements for said mode by its alternate interface
18 number. An alternate of 0 means that the mode is unavailable.
19
20 There are 6 * 4 * 4 entries:
21 6 different resolutions subqcif, qsif, qcif, sif, cif, vga
22 6 framerates: 5, 10, 15, 20, 25, 30
23 4 compression modi: none, low, medium, high
24
25 When an uncompressed mode is not available, the next available compressed mode
26 will be chosen (unless the decompressor is absent). Sometimes there are only
27 1 or 2 compressed modes available; in that case entries are duplicated.
28*/
29
30#ifndef PWC_TIMON_H
31#define PWC_TIMON_H
32
Hans de Goedea08d2c72011-12-31 07:45:39 -030033#include "pwc.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070034
Luc Saillard9ee6d782007-04-22 23:54:36 -030035#define PWC_FPS_MAX_TIMON 6
36
Linus Torvalds1da177e2005-04-16 15:20:36 -070037struct Timon_table_entry
38{
39 char alternate; /* USB alternate interface */
40 unsigned short packetsize; /* Normal packet size */
41 unsigned short bandlength; /* Bandlength when decompressing */
42 unsigned char mode[13]; /* precomputed mode settings for cam */
43};
44
Luc Saillard9ee6d782007-04-22 23:54:36 -030045extern const struct Timon_table_entry Timon_table[PSZ_MAX][PWC_FPS_MAX_TIMON][4];
Luc Saillard2b455db2006-04-24 10:29:46 -030046extern const unsigned int TimonRomTable [16][2][16][8];
Luc Saillard9ee6d782007-04-22 23:54:36 -030047extern const unsigned int Timon_fps_vector[PWC_FPS_MAX_TIMON];
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
49#endif
50
51