khronosfws/openmax_al/src/common/xaimagecontrolsitf.h
changeset 33 5e8b14bae8c3
parent 28 ebf79c79991a
child 36 73253677b50a
equal deleted inserted replaced
28:ebf79c79991a 33:5e8b14bae8c3
     1 /*
       
     2 * Copyright (c) 2009 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef XAIMAGECONTROLSITF_H
       
    19 #define XAIMAGECONTROLSITF_H
       
    20 
       
    21 #include "xaadptbasectx.h"
       
    22 
       
    23 
       
    24 /** MACROS **/
       
    25 #define DEFAULT_BRIGHTNESS_VALUE    50
       
    26 #define DEFAULT_CONTRAST_VALUE      0
       
    27 #define DEFAULT_GAMMA_VALUE         1000
       
    28 #define MAX_BRIGHTNESS_VALUE        100
       
    29 #define MAX_CONTRAST_VALUE          100
       
    30 #define MIN_CONTRAST_VALUE         -100
       
    31 
       
    32 /** TYPES **/
       
    33 
       
    34 /** ENUMERATIONS **/
       
    35 
       
    36 /** STRUCTURES **/
       
    37 /* Definition of XAImageControlsItf implementation */
       
    38 typedef struct XAImageControlsItfImpl_
       
    39 {
       
    40     /* parent interface */
       
    41     struct XAImageControlsItf_ itf;
       
    42     /* pointer to self */
       
    43     struct XAImageControlsItfImpl_* self;
       
    44 
       
    45     /* variables */
       
    46     XAuint32    brightness;
       
    47     XAint32     contrast;
       
    48     XApermille  gamma;
       
    49 
       
    50     /*Adaptation variables*/
       
    51     XAAdaptationBaseCtx *adapCtx;
       
    52    
       
    53 
       
    54 } XAImageControlsItfImpl;
       
    55 
       
    56 /** METHODS **/
       
    57 
       
    58 XAresult XAImageControlsItfImpl_SetBrightness(XAImageControlsItf self,
       
    59                                               XAuint32 brightness);
       
    60 
       
    61 XAresult XAImageControlsItfImpl_GetBrightness(XAImageControlsItf self,
       
    62                                               XAuint32 *pBrightness);
       
    63 
       
    64 XAresult XAImageControlsItfImpl_SetContrast(XAImageControlsItf self,
       
    65                                             XAint32 contrast);
       
    66 
       
    67 XAresult XAImageControlsItfImpl_GetContrast(XAImageControlsItf self,
       
    68                                             XAint32 *pContrast);
       
    69 
       
    70 XAresult XAImageControlsItfImpl_SetGamma(XAImageControlsItf self,
       
    71                                          XApermille gamma);
       
    72 
       
    73 XAresult XAImageControlsItfImpl_GetGamma(XAImageControlsItf self,
       
    74                                          XApermille *pGamma);
       
    75 
       
    76 XAresult XAImageControlsItfImpl_GetSupportedGammaSettings(XAImageControlsItf self,
       
    77                                                           XApermille *pMinValue,
       
    78                                                           XApermille *pMaxValue,
       
    79                                                           XAuint32 *pNumSettings,
       
    80                                                           XApermille **ppSettings);
       
    81 
       
    82 /* XAImageControlsItfImpl -specific methods */
       
    83 XAImageControlsItfImpl* XAImageControlsItfImpl_Create(XAAdaptationBaseCtx *adapCtx);
       
    84 void XAImageControlsItfImpl_Free(XAImageControlsItfImpl* self);
       
    85 
       
    86 #endif /* XAIMAGECONTROLSITF_H */