33
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Const parameters for brightness/constrast enhancement
|
|
15 |
* The tuning has 9 steps, each represented by 3 parameters.
|
|
16 |
* The smaller indices in the table generate "lighter" pictures.
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
#ifndef __BRIGHTNESSCONTRAST_H__
|
|
23 |
#define __BRIGHTNESSCONTRAST_H__
|
|
24 |
|
|
25 |
|
|
26 |
const TInt KMinBrightnessContrastIndex = 0;
|
|
27 |
const TInt KMedBrightnessContrastIndex = 10;
|
|
28 |
const TInt KMaxBrightnessContrastIndex = 20;
|
|
29 |
|
|
30 |
const TInt KMaxBCInputIndex = 100;
|
|
31 |
|
|
32 |
struct SEnhParam {
|
|
33 |
TReal a;
|
|
34 |
TReal b;
|
|
35 |
TReal g;
|
|
36 |
};
|
|
37 |
|
|
38 |
const struct SEnhParam KBrightnessContrastEnhParam[21] = {
|
|
39 |
{2.35, -0.1215, 0.5},
|
|
40 |
{2.17, -0.0936, 0.55},
|
|
41 |
{2, -0.07, 0.6},
|
|
42 |
{1.84, -0.0504, 0.65},
|
|
43 |
{1.69, -0.0345, 0.7},
|
|
44 |
{1.55, -0.022, 0.75},
|
|
45 |
{1.42, -0.0126, 0.8},
|
|
46 |
{1.3, -0.006, 0.85},
|
|
47 |
{1.19, -0.0019, 0.9},
|
|
48 |
{1.09, 0, 0.95},
|
|
49 |
{1, 0, 1},
|
|
50 |
{1.04, -0.04, 1.05},
|
|
51 |
{1.09, -0.0891, 1.1},
|
|
52 |
{1.15, -0.147, 1.15},
|
|
53 |
{1.22, -0.2134, 1.2},
|
|
54 |
{1.3, -0.288, 1.25},
|
|
55 |
{1.39, -0.3705, 1.3},
|
|
56 |
{1.49, -0.4606, 1.35},
|
|
57 |
{1.6, -0.558, 1.4},
|
|
58 |
{1.72, -0.6624, 1.45},
|
|
59 |
{1.85, -0.7735, 1.5}
|
|
60 |
};
|
|
61 |
|
|
62 |
#endif // __BRIGHTNESSCONTRAST_H__
|
|
63 |
|
|
64 |
// End of File
|