videoeditorengine/vedengine/videoprocessor/inc/brightnesscontrast.h
changeset 0 951a5db380a0
equal deleted inserted replaced
-1:000000000000 0:951a5db380a0
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 * Const parameters for brightness/constrast enhancement
       
    17 * The tuning has 9 steps, each represented by 3 parameters.
       
    18 * The smaller indices in the table generate "lighter" pictures.
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef     __BRIGHTNESSCONTRAST_H__
       
    24 #define     __BRIGHTNESSCONTRAST_H__
       
    25 
       
    26 
       
    27 const TInt KMinBrightnessContrastIndex = 0;
       
    28 const TInt KMedBrightnessContrastIndex = 10;
       
    29 const TInt KMaxBrightnessContrastIndex = 20;
       
    30 
       
    31 const TInt KMaxBCInputIndex = 100;
       
    32 
       
    33 struct SEnhParam {
       
    34     TReal   a;
       
    35     TReal   b;
       
    36     TReal   g;
       
    37 };
       
    38 
       
    39 const struct SEnhParam KBrightnessContrastEnhParam[21] = {   
       
    40    {2.35, -0.1215, 0.5},
       
    41    {2.17, -0.0936, 0.55},
       
    42    {2, -0.07, 0.6},
       
    43    {1.84, -0.0504, 0.65},
       
    44    {1.69, -0.0345, 0.7},
       
    45    {1.55, -0.022, 0.75},
       
    46    {1.42, -0.0126, 0.8},
       
    47    {1.3, -0.006, 0.85},
       
    48    {1.19, -0.0019, 0.9},
       
    49    {1.09, 0, 0.95},
       
    50    {1, 0, 1},
       
    51    {1.04, -0.04, 1.05},
       
    52    {1.09, -0.0891, 1.1},
       
    53    {1.15, -0.147, 1.15},
       
    54    {1.22, -0.2134, 1.2},
       
    55    {1.3, -0.288, 1.25},
       
    56    {1.39, -0.3705, 1.3},
       
    57    {1.49, -0.4606, 1.35},
       
    58    {1.6, -0.558, 1.4},
       
    59    {1.72, -0.6624, 1.45},
       
    60    {1.85, -0.7735, 1.5}
       
    61 };
       
    62 
       
    63 #endif      //  __BRIGHTNESSCONTRAST_H__
       
    64             
       
    65 // End of File