1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: MediaPlayer Object Implementation Header |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef XAMEDIAPLAYER_H |
18 #ifndef XAMEDIAPLAYER_H |
19 #define XAMEDIAPLAYER_H |
19 #define XAMEDIAPLAYER_H |
20 |
20 |
21 #include "openmaxalwrapper.h" |
21 #include "openmaxalwrapper.h" |
51 MP_VIDEOPOSTPROCESSINGITF, |
49 MP_VIDEOPOSTPROCESSINGITF, |
52 MP_NOKIAVOLUMEEXT, |
50 MP_NOKIAVOLUMEEXT, |
53 MP_NOKIALINEARVOLUME, |
51 MP_NOKIALINEARVOLUME, |
54 MP_STREAMINFORMATIONITF, |
52 MP_STREAMINFORMATIONITF, |
55 MP_ITFCOUNT |
53 MP_ITFCOUNT |
56 } MPInterfaces; |
54 } MPInterfaces; |
57 |
55 |
58 /** STRUCTURES **/ |
56 /** STRUCTURES **/ |
59 /* Specification for XAMediaPlayerImpl.*/ |
57 /* Specification for XAMediaPlayerImpl.*/ |
60 typedef struct XAMediaPlayerImpl_ |
58 typedef struct XAMediaPlayerImpl_ |
61 { |
59 { |
62 /* Parent for XAMediaPlayerImpl */ |
60 /* Parent for XAMediaPlayerImpl */ |
63 XAObjectItfImpl baseObj; |
61 XAObjectItfImpl baseObj; |
64 |
62 |
65 /* variables */ |
63 /* variables */ |
66 XADataSource *dataSrc; |
64 XADataSource *dataSrc; |
74 |
72 |
75 XAAdaptationBaseCtx* curAdaptCtx; |
73 XAAdaptationBaseCtx* curAdaptCtx; |
76 XAAdaptationBaseCtx* adaptationCtxGst; |
74 XAAdaptationBaseCtx* adaptationCtxGst; |
77 XAAdaptationBaseCtx* adaptationCtxMMF; |
75 XAAdaptationBaseCtx* adaptationCtxMMF; |
78 |
76 |
79 } XAMediaPlayerImpl; |
77 } XAMediaPlayerImpl; |
80 |
|
81 |
78 |
82 /** METHODS **/ |
79 /** METHODS **/ |
83 |
80 |
84 /* base object XAObjectItfImpl methods */ |
81 /* base object XAObjectItfImpl methods */ |
85 XAresult XAMediaPlayerImpl_DoRealize(XAObjectItf self); |
82 XAresult XAMediaPlayerImpl_DoRealize(XAObjectItf self); |
86 XAresult XAMediaPlayerImpl_DoResume(XAObjectItf self); |
83 XAresult XAMediaPlayerImpl_DoResume(XAObjectItf self); |
87 void XAMediaPlayerImpl_FreeResources(XAObjectItf self); |
84 void XAMediaPlayerImpl_FreeResources(XAObjectItf self); |
88 |
85 |
89 /* DynamicInterfaceManagement object-specific methods */ |
86 /* DynamicInterfaceManagement object-specific methods */ |
90 XAresult XAMediaPlayerImpl_DoAddItf(XAObjectItf self, XAObjItfMapEntry *mapEntry ); |
87 XAresult XAMediaPlayerImpl_DoAddItf(XAObjectItf self, |
91 XAresult XAMediaPlayerImpl_DoResumeItf(XAObjectItf self, XAObjItfMapEntry *mapEntry ); |
88 XAObjItfMapEntry *mapEntry); |
92 XAresult XAMediaPlayerImpl_DoRemoveItf(XAObjectItf self, XAObjItfMapEntry *mapEntry ); |
89 XAresult XAMediaPlayerImpl_DoResumeItf(XAObjectItf self, |
|
90 XAObjItfMapEntry *mapEntry); |
|
91 XAresult XAMediaPlayerImpl_DoRemoveItf(XAObjectItf self, |
|
92 XAObjItfMapEntry *mapEntry); |
93 |
93 |
94 #endif /* XAMEDIAPLAYER_H */ |
94 #endif /* XAMEDIAPLAYER_H */ |