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 XAADAPTATIONCONTEXTBASEMMF_H |
|
19 #define XAADAPTATIONCONTEXTBASEMMF_H |
|
20 |
|
21 #include <stdlib.h> |
|
22 #include "xaglobals.h" |
|
23 #include "openmaxalwrapper.h" |
|
24 //#include "OpenMAXAL_ContentPipe.h" |
|
25 #include "xaplatform.h" |
|
26 |
|
27 |
|
28 /* ENUMERATIONS */ |
|
29 typedef enum { |
|
30 XAMediaPlayerAdaptationMMF = 0, |
|
31 XAMediaRecorderAdaptationMMF, |
|
32 XARadioAdaptationMMF, |
|
33 XACameraAdaptationMMF, |
|
34 XAOutputMixAdaptationMMF, |
|
35 XAVibraAdaptationMMF, |
|
36 XALedArrayAdaptationMMF, |
|
37 XAMDAdaptationMMF, |
|
38 XAEngineAdaptationMMF |
|
39 }AdaptationContextMMFIDS; |
|
40 |
|
41 /* Adaptation event structure */ |
|
42 typedef struct XAAdaptEventMMF_ |
|
43 { |
|
44 XAAdaptEventTypes eventtype; /* what kind of event, e.g. playitf event */ |
|
45 XAuint32 eventid; /* eventtype-specific event, e.g. XA_PLAYEVENT macro */ |
|
46 XAuint32 datasize; /* event data size */ |
|
47 void* data; /* event data if needed */ |
|
48 } XAAdaptEventMMF; |
|
49 |
|
50 /* Adaptation event callback */ |
|
51 typedef void (*xaAdaptEventHandlerMMF) ( void *pHandlerCtx, XAAdaptEventMMF* event ); |
|
52 |
|
53 /* Forward declaration of adaptation basecontext */ |
|
54 typedef struct XAAdaptationBaseMMFCtx_ XAAdaptationBaseMMFCtx; |
|
55 |
|
56 /* FUNCTIONS */ |
|
57 XAresult XAAdaptationBaseMMF_Init( XAAdaptationBaseMMFCtx* pSelf, XAuint32 ctxId ); |
|
58 XAresult XAAdaptationBaseMMF_PostInit( XAAdaptationBaseMMFCtx* ctx ); |
|
59 XAresult XAAdaptationBaseMMF_AddEventHandler( XAAdaptationBaseMMFCtx* ctx, xaAdaptEventHandlerMMF evtHandler, |
|
60 XAuint32 evtTypes,void *pHandlerCtx ); |
|
61 XAresult XAAdaptationBaseMMF_RemoveEventHandler( XAAdaptationBaseMMFCtx* ctx, xaAdaptEventHandlerMMF evtHandler ); |
|
62 void XAAdaptationBaseMMF_Free( XAAdaptationBaseMMFCtx* ctx ); |
|
63 //XAresult XAAdaptationBase_SetCPConfiguration(XAAdaptationBaseCtx* ctx, XAConfigExtensionCpKey configValue); |
|
64 |
|
65 #endif /*XAADAPTATIONCONTEXTBASEMMF_H*/ |
|
66 |
|