|
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 "openmaxalwrapper.h" |
|
22 #include "xaglobals.h" |
|
23 #ifdef _GSTREAMER_BACKEND_ |
|
24 #include "XAAdaptationContextBase.h" |
|
25 #endif |
|
26 |
|
27 /** MACROS **/ |
|
28 #define DEFAULT_BRIGHTNESS_VALUE 50 |
|
29 #define DEFAULT_CONTRAST_VALUE 0 |
|
30 #define DEFAULT_GAMMA_VALUE 1000 |
|
31 #define MAX_BRIGHTNESS_VALUE 100 |
|
32 #define MAX_CONTRAST_VALUE 100 |
|
33 #define MIN_CONTRAST_VALUE -100 |
|
34 |
|
35 /** TYPES **/ |
|
36 |
|
37 /** ENUMERATIONS **/ |
|
38 |
|
39 /** STRUCTURES **/ |
|
40 /* Definition of XAImageControlsItf implementation */ |
|
41 typedef struct XAImageControlsItfImpl_ |
|
42 { |
|
43 /* parent interface */ |
|
44 struct XAImageControlsItf_ itf; |
|
45 /* pointer to self */ |
|
46 struct XAImageControlsItfImpl_* self; |
|
47 |
|
48 /* variables */ |
|
49 XAuint32 brightness; |
|
50 XAint32 contrast; |
|
51 XApermille gamma; |
|
52 #ifdef _GSTREAMER_BACKEND_ |
|
53 /*Adaptation variables*/ |
|
54 XAAdaptationBaseCtx *adapCtx; |
|
55 #endif |
|
56 |
|
57 } XAImageControlsItfImpl; |
|
58 |
|
59 /** METHODS **/ |
|
60 |
|
61 XAresult XAImageControlsItfImpl_SetBrightness(XAImageControlsItf self, |
|
62 XAuint32 brightness); |
|
63 |
|
64 XAresult XAImageControlsItfImpl_GetBrightness(XAImageControlsItf self, |
|
65 XAuint32 *pBrightness); |
|
66 |
|
67 XAresult XAImageControlsItfImpl_SetContrast(XAImageControlsItf self, |
|
68 XAint32 contrast); |
|
69 |
|
70 XAresult XAImageControlsItfImpl_GetContrast(XAImageControlsItf self, |
|
71 XAint32 *pContrast); |
|
72 |
|
73 XAresult XAImageControlsItfImpl_SetGamma(XAImageControlsItf self, |
|
74 XApermille gamma); |
|
75 |
|
76 XAresult XAImageControlsItfImpl_GetGamma(XAImageControlsItf self, |
|
77 XApermille *pGamma); |
|
78 |
|
79 XAresult XAImageControlsItfImpl_GetSupportedGammaSettings(XAImageControlsItf self, |
|
80 XApermille *pMinValue, |
|
81 XApermille *pMaxValue, |
|
82 XAuint32 *pNumSettings, |
|
83 XApermille **ppSettings); |
|
84 #ifdef _GSTREAMER_BACKEND_ |
|
85 /* XAImageControlsItfImpl -specific methods */ |
|
86 XAImageControlsItfImpl* XAImageControlsItfImpl_Create(XAAdaptationBaseCtx *adapCtx); |
|
87 #endif |
|
88 void XAImageControlsItfImpl_Free(XAImageControlsItfImpl* self); |
|
89 |
|
90 #endif /* XAIMAGECONTROLSITF_H */ |