1 /*
2 SANE EPSON backend
3 Copyright (C) 2001 SEIKO EPSON Corporation
4
5 Date Author Reason
6 06/01/2001 N.Sasaki New
7
8 This file is part of the `iscan' program.
9
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23
24 As a special exception, the copyright holders give permission
25 to link the code of this program with the esmod library and
26 distribute linked combinations including the two. You must obey
27 the GNU General Public License in all respects for all of the
28 code used other then esmod.
29 */
30
31 /*--------------------------------------------------------------*/
32 #include "pisa_marquee.h"
33
34 /*--------------------------------------------------------------*/
operator =(const marquee & x)35 marquee & marquee::operator= ( const marquee & x )
36 {
37 if ( & x != this )
38 {
39 int i, j;
40
41 active = x.active;
42 offset = x.offset;
43 area = x.area;
44 scale = x.scale;
45 gamma = x.gamma;
46 highlight = x.highlight;
47 shadow = x.shadow;
48 threshold = x.threshold;
49
50 for ( i = 0; i < 4; i++ )
51 for ( j = 0; j < 256; j++ )
52 gamma_table [ i ] [ j ] = x.gamma_table [ i ] [ j ];
53
54 graybalance = x.graybalance;
55 saturation = x.saturation;
56
57 focus = x.focus;
58
59 for ( i = 0; i < 3; i++ )
60 {
61 film_gamma [ i ] = x.film_gamma [ i ];
62 film_yp [ i ] = x.film_yp [ i ];
63 grayl [ i ] = x.grayl [ i ];
64 }
65
66 for ( i = 0; i < 256; i++ )
67 {
68 lut.gamma_r [ i ] = x.lut.gamma_r [ i ];
69 lut.gamma_g [ i ] = x.lut.gamma_g [ i ];
70 lut.gamma_b [ i ] = x.lut.gamma_b [ i ];
71 }
72 }
73
74 return ( * this );
75 }
76
77 /*--------------------------------------------------------------*/
78