| hardware | index /usr/ports/multimedia/kbtv2-core/work/kbtv-2.0/Core/hardware.py |
MODULE
hardware -- classes for hardware setup
COPYRIGHT
(c) 2005-2008, Danny Pansters <danny@ricin.com>
All rights reserved. Dit werk is auteursrechtelijk beschermd.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
DESCRIPTION
This module contains classes for hardware setup and detection. The
main class which uses all others is Setup.
CLASSES
Chip
HWPool
Product
Setup
CONSTANTS
BKTR_PRODUCTS
Bktr product matrix, dictionary {(vendor_id, product_id): 'desc'}.
Here product_id is a fake id reflecting the bktr card number
BACKENDS = ('bktr', 'cxm', 'saa', 'pwc')
Backend modules for FreeBSD, only the bktr backend is guaranteed to be
available (though maybe not functional if the device isn't set up
properly yet). The others depend on build/install preferences.
PWC_PRODUCTS
Pwc product matrix, dictionary {(vendor_id, product_id): 'desc'}.
CXM_PRODUCTS
Cxm product matrix, dictionary {(vendor_id, product_id): 'desc'}.
SAA_PRODUCTS
Saa product matrix, dictionary {(vendor_id, product_id): 'desc'}.
Though there are many cards listed it doesn't mean that they all work.
TUNER_TYPES
Tuner type dictionary {number: 'desc'}.
BROADCAST_STANDARDS
Broadcast standard dictionary {number: 'desc'}
VIDEO_STANDARDS
Video standard dictionary {number: 'desc'}
AUDIO_STANDARDS
Audio standard dictionary {number: 'desc'}
WEBCAM_STANDARDS
Webcam standard (sizes) dictionary {number: 'desc'}
| Modules | ||||||
| ||||||
| Classes | ||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||
| Data | ||
| AUDIO_STANDARDS = {0: 'FM-Mono/NICAM', 1: 'FM-Stereo (A2, D/K1)'} BACKENDS = ('bktr', 'cxm', 'saa', 'pwc') BKTR_PRODUCTS = {('0x0070', '0xff02'): 'Hauppauge WinCast/TV', ('0x1033', '0xff08'): 'NEC PK-UG-X017', ('0x107d', '0xff0f'): 'Leadtek Winfast TV 2000', ('0x10b4', '0xff03'): 'STB TV/PCI', ('0x10e0', '0xff05'): 'IMS TV Turbo', ('0x10fc', '0xff09'): 'I/O DATA GV-BCTV2/PCI', ('0x10fc', '0xff11'): 'I/O DATA GV-BCTV3/PCI', ('0x11bd', '0xff01'): 'Pinnacle/Miro TV', ('0x11bd', '0xff13'): 'Pinnacle PCTV Rave', ('0x12cd', '0xff0d'): 'Video Highway Xtreme', ...} BROADCAST_STANDARDS = {0: 'PAL B/G', 1: 'PAL D/K', 2: 'PAL I', 3: 'PAL L', 4: "PAL L'", 5: 'NTSC', 6: 'NTSC Japan'} CXM_PRODUCTS = {('0x0070', '0x4000'): 'Hauppauge WinTV PVR-350', ('0x0070', '0x4001'): 'Hauppauge WinTV PVR-250 (v1)', ('0x0070', '0x4009'): 'Hauppauge WinTV PVR-250', ('0x0070', '0x4801'): 'Hauppauge WinTV PVR-250 MCE', ('0x0070', '0x8800'): 'Hauppauge WinTV PVR-150/500', ('0x0070', '0x8801'): 'Hauppauge WinTV PVR-150/500', ('0x0070', '0x8803'): 'Hauppauge WinTV PVR-150/500', ('0x0070', '0x8804'): 'Hauppauge WinTV PVR-150/500', ('0x0070', '0x8811'): 'Hauppauge WinTV PVR-150/500', ('0xff00', '0xff00'): 'Unknown card'} PWC_PRODUCTS = {('0x041e', '0x400c'): 'Creative Labs Webcam 5 (old model)', ('0x041e', '0x4011'): 'Creative Labs Webcam Pro Ex', ('0x046d', '0x08b0'): 'Logitech QuickCam Pro 3000', ('0x046d', '0x08b1'): 'Logitech QuickCam Notebook Pro (old model)', ('0x046d', '0x08b2'): 'Logitech QuickCam Pro 4000', ('0x046d', '0x08b3'): 'Logitech QuickCam Zoom', ('0x046d', '0x08b4'): 'Logitech QuickCam Zoom (new model)', ('0x046d', '0x08b5'): 'Logitech QuickCam Orbit/Sphere (old model)', ('0x046d', '0x08b6'): 'Logitech QuickCam (reserved ID)', ('0x046d', '0x08b7'): 'Logitech QuickCam (reserved ID)', ...} SAA_PRODUCTS = {('0x0000', '0x4091'): 'Beholder BeholdTV 409 FM', ('0x1019', '0x4cb4'): 'Elitegroup ECS TVP3XP FM1216 Tuner', ('0x1019', '0x4cb5'): 'Elitegroup ECS TVP3XP FM1236 Tuner (NTSC, FM)', ('0x102b', '0x48d0'): 'Matrox CronosPlus', ('0x1043', '0x0210'): 'FlyTV mini Asus Digimatrix/Digimatrix TV', ('0x1043', '0x4840'): 'ASUS TV-FM 7134', ('0x1043', '0x4842'): 'TV-FM 7134', ('0x1043', '0x4843'): 'ASUS TV-FM 7133', ('0x1043', '0x4845'): 'TV-FM 7135', ('0x1043', '0x4862'): 'P7131 Dual', ...} TUNER_TYPES = {0: 'None', 1: 'Philips', 2: 'Philips MK3', 3: 'Temic', 4: 'Alps', 5: 'LG', 6: 'Microtune'} VENDORS = {'0x0000': 'Beholder', '0x0070': 'Hauppauge Computer Works Inc', '0x0270': 'Hauppauge Computer Works Inc', '0x041e': 'Creative Labs', '0x046d': 'Logitech', '0x0471': 'Philips Semiconductors', '0x04cc': 'Sotec', '0x055d': 'Samsung', '0x069a': 'Askey Computer Corp', '0x06be': 'AME Co', ...} VIDEO_STANDARDS = {0: 'AUTO', 1: 'NTSC', 2: 'NTSC-J', 3: 'PAL', 4: 'PAL-M', 5: 'PAL-N', 6: 'SECAM'} WEBCAM_STANDARDS = {0: 'SQCIF', 1: 'QSIF', 2: 'QCIF', 3: 'SIF', 4: 'CIF', 5: '4SIF', 6: '4CIF'} | ||