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 // In some circumstances, a better filter might be this one, used with stdin_vg:
23 // 0.16 3 3 3 3 3.2 3.2 4.8 0 3.2 0 3.2 3.2 4.8 1.6 -3.2 1.6 28.8 40 36.8 9.6 16 12.8 3.2 4.44089209850063e-16 1.6 1.6 6.4 1.6 3.2 3.2 3.2 0.8 1 11 1 11 0 -1.6 -1.6 -3.2 -3.2 -3.2 -8 -8 -6.4 1.6 4.8 1.6 12.8 17.6 11.2 28.8 33.6 28.8 3.2 3.2 3.2 -3.2 -3.2 -3.2 -4.8 -6.4 -4.8 0 0 0 0 0 0
27 #ifndef __xvp610_640x480_h__
28 #define __xvp610_640x480_h__
33 * Device module for the IBM PC Camera Pro (IBM VGA Camera Model XVP610; FCC ID
36 * This module is designed for use with the Linux 2.6.x driver patched with
39 * http://auricle.dyndns.org/xvp610/
50 static const ale_real xvp610_640x480_lpsf_calibrated_response
[LPSF_ROWS
][LPSF_COLS
][3] = {
69 static const ale_real xvp610_640x480_nlpsf_calibrated_response
[NLPSF_ROWS
][NLPSF_COLS
][3] = {
74 { -11.4, -5.4, -9.1 },
88 class xvp610_640x480
{
92 * Linear colorspace PSF
96 class lpsf
: public d2::psf_template
<LPSF_ROWS
, LPSF_COLS
> {
98 lpsf() : d2::psf_template
<LPSF_ROWS
, LPSF_COLS
> (3, 3, xvp610_640x480_lpsf_calibrated_response
) {
103 * This filter seems to produce nicer results.
105 class lpsf
: public d2::box
{
107 lpsf() : d2::box (0.5) {
113 * Non-linear colorspace PSF
116 class nlpsf
: public d2::psf_template
<NLPSF_ROWS
, NLPSF_COLS
> {
118 nlpsf() : d2::psf_template
<NLPSF_ROWS
, NLPSF_COLS
> (1, 10, xvp610_640x480_nlpsf_calibrated_response
) {
126 class exposure
: public d2::exposure_default
{
129 * Uses defaults for now. (If this is changed, then update
130 * the usage message for --device accordingly.)
139 static ale_pos
view_angle() {