Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /* Linux driver for Philips webcam
0003    (C) 2004-2006 Luc Saillard (luc@saillard.org)
0004 
0005    NOTE: this version of pwc is an unofficial (modified) release of pwc & pcwx
0006    driver and thus may have bugs that are not present in the original version.
0007    Please send bug reports and support requests to <luc@saillard.org>.
0008    The decompression routines have been implemented by reverse-engineering the
0009    Nemosoft binary pwcx module. Caveat emptor.
0010 
0011 */
0012 
0013 
0014 
0015 /* This tables contains entries for the 675/680/690 (Timon) camera, with
0016    4 different qualities (no compression, low, medium, high).
0017    It lists the bandwidth requirements for said mode by its alternate interface
0018    number. An alternate of 0 means that the mode is unavailable.
0019 
0020    There are 6 * 4 * 4 entries:
0021      6 different resolutions subqcif, qsif, qcif, sif, cif, vga
0022      6 framerates: 5, 10, 15, 20, 25, 30
0023      4 compression modi: none, low, medium, high
0024 
0025    When an uncompressed mode is not available, the next available compressed mode
0026    will be chosen (unless the decompressor is absent). Sometimes there are only
0027    1 or 2 compressed modes available; in that case entries are duplicated.
0028 */
0029 
0030 #ifndef PWC_TIMON_H
0031 #define PWC_TIMON_H
0032 
0033 #include "pwc.h"
0034 
0035 #define PWC_FPS_MAX_TIMON 6
0036 
0037 struct Timon_table_entry
0038 {
0039     char alternate;         /* USB alternate interface */
0040     unsigned short packetsize;  /* Normal packet size */
0041     unsigned short bandlength;  /* Bandlength when decompressing */
0042     unsigned char mode[13];     /* precomputed mode settings for cam */
0043 };
0044 
0045 extern const struct Timon_table_entry Timon_table[PSZ_MAX][PWC_FPS_MAX_TIMON][4];
0046 extern const unsigned int TimonRomTable [16][2][16][8];
0047 extern const unsigned int Timon_fps_vector[PWC_FPS_MAX_TIMON];
0048 
0049 #endif
0050 
0051