1 // Copyright 2003, 2004 David Hilvert <dhilvert@auricle.dyndns.org>,
2 // <dhilvert@ugcs.caltech.edu>
4 /* This file is part of the Anti-Lamenessing Engine.
6 The Anti-Lamenessing Engine is free software; you can redistribute it
7 and/or modify it under the terms of the GNU General Public License as
8 published by the Free Software Foundation; either version 3 of the License,
9 or (at your option) any later version.
11 The Anti-Lamenessing Engine is distributed in the hope that it will be
12 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14 Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with the Anti-Lamenessing Engine; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __xvp610_320x240_h__
22 #define __xvp610_320x240_h__
27 * Device module for the IBM PC Camera Pro (IBM VGA Camera Model XVP610; FCC ID
30 * This module is designed for use with the Linux 2.6.x driver patched with
33 * http://auricle.dyndns.org/xvp610/
44 static const ale_real lpsf_calibrated_response
[LPSF_ROWS
][LPSF_COLS
][3] = {
63 static const ale_real nlpsf_calibrated_response
[NLPSF_ROWS
][NLPSF_COLS
][3] = {
68 { -11.4, -5.4, -9.1 },
82 class xvp610_320x240
{
86 * Linear colorspace PSF
90 class lpsf
: public d2::psf_template
<LPSF_ROWS
, LPSF_COLS
> {
92 lpsf() : d2::psf_template
<LPSF_ROWS
, LPSF_COLS
> (3, 3, lpsf_calibrated_response
) {
97 * This filter seems to produce nicer results.
99 class lpsf
: public d2::box
{
101 lpsf() : d2::box (0.5) {
107 * Non-linear colorspace PSF
110 class nlpsf
: public d2::psf_template
<NLPSF_ROWS
, NLPSF_COLS
> {
112 nlpsf() : d2::psf_template
<NLPSF_ROWS
, NLPSF_COLS
> (1, 5, nlpsf_calibrated_response
) {
120 class exposure
: public d2::exposure_default
{
123 * Uses defaults for now. (If this is changed, then update
124 * the usage message for --device accordingly.)
133 static ale_pos
view_angle() {