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: Engine Implementation Header |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XAENGINE_H |
|
19 #define XAENGINE_H |
|
20 |
|
21 #include "openmaxalwrapper.h" |
|
22 #include "xaglobals.h" |
|
23 #include "xaobjectitf.h" |
|
24 #include "xaengineadaptctx.h" |
|
25 |
|
26 #include "xaengineadaptctxmmf.h" |
|
27 #include "xaframeworkmgr.h" |
|
28 #include "xacapabilitiesmgr.h" |
|
29 |
|
30 /** MACROS **/ |
|
31 |
|
32 /** TYPES **/ |
|
33 |
|
34 /** ENUMERATIONS **/ |
|
35 /* Enumeration for interfaces that Engine supports. */ |
|
36 typedef enum |
|
37 { |
|
38 ENGINE_OBJECTITF, |
|
39 ENGINE_ENGINEITF, |
|
40 ENGINE_DIMITF, |
|
41 ENGINE_THREADSYNCITF, |
|
42 /* |
|
43 ENGINE_CONFIGEXTENSIONSITF, |
|
44 ENGINE_DEVICEVOLUMEITF, |
|
45 */ |
|
46 ENGINE_AUDIOIODEVICECAPAITF, |
|
47 /* ENGINE_AUDIODECODERCAPAITF,*/ |
|
48 ENGINE_AUDIOENCODERCAPAITF, |
|
49 /* |
|
50 ENGINE_CAMERACAPAITF, |
|
51 ENGINE_IMAGEDECODERCAPAITF, |
|
52 ENGINE_IMAGEENCODERCAPAITF, |
|
53 ENGINE_VIDEODECODERCAPAITF, |
|
54 ENGINE_VIDEOENCODERCAPAITF, |
|
55 */ |
|
56 ENGINE_ITFCOUNT |
|
57 } XAEngineInterfaces; |
|
58 |
|
59 /** STRUCTURES **/ |
|
60 /* Specification for XAEngineImpl. |
|
61 */ |
|
62 typedef struct XAEngineImpl_ |
|
63 { |
|
64 /* Parent for XAEngineImpl */ |
|
65 XAObjectItfImpl baseObj; |
|
66 |
|
67 /* engine variables */ |
|
68 XAboolean isThreadSafe; |
|
69 |
|
70 //actual adpatation context can point to either MMF or GST implementations |
|
71 FrameworkMap *frameworkMap; |
|
72 XACapabilities* capabilities; |
|
73 |
|
74 /* void* adaptationGstCtx; |
|
75 void* adaptationMmfCtx;*/ |
|
76 } XAEngineImpl; |
|
77 |
|
78 /** METHODS **/ |
|
79 |
|
80 /* base object XAObjectItfImpl methods */ |
|
81 XAresult XAEngineImpl_DoRealize(XAObjectItf self); |
|
82 XAresult XAEngineImpl_DoResume(XAObjectItf self); |
|
83 void XAEngineImpl_FreeResources(XAObjectItf self); |
|
84 |
|
85 /* XAEngineImpl -specific methods */ |
|
86 |
|
87 #endif /* XAENGINE_H */ |
|