|
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: Stream Information Interface Header |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XASTREAMINFORMATIONITF_H |
|
19 #define XASTREAMINFORMATIONITF_H |
|
20 |
|
21 #include "openmaxalwrapper.h" |
|
22 #include "xaadptbasectx.h" |
|
23 |
|
24 /** MACROS **/ |
|
25 |
|
26 /** TYPES **/ |
|
27 |
|
28 /** ENUMERATIONS **/ |
|
29 |
|
30 /** STRUCTURES **/ |
|
31 /* Definition of XAStreamInformationItf implementation */ |
|
32 typedef struct XAStreamInformationItfImpl_ |
|
33 { |
|
34 /* parent interface */ |
|
35 struct XAStreamInformationItf_ itf; |
|
36 /* pointer to self */ |
|
37 struct XAStreamInformationItfImpl_* self; |
|
38 |
|
39 /*Adaptation variables*/ |
|
40 |
|
41 XAStreamInformationItf cbPtrToSelf; |
|
42 xaStreamEventChangeCallback callback; |
|
43 void *cbcontext; |
|
44 XAAdaptationBaseCtx *adapCtx; |
|
45 |
|
46 } XAStreamInformationItfImpl; |
|
47 |
|
48 /** METHODS **/ |
|
49 |
|
50 /* Base interface XAStreamInformationItf implementation */ |
|
51 XAresult XAStreamInformationItfImpl_QueryMediaContainerInformation( |
|
52 XAStreamInformationItf self, XAMediaContainerInformation * info); |
|
53 |
|
54 XAresult XAStreamInformationItfImpl_QueryStreamType( |
|
55 XAStreamInformationItf self, XAuint32 streamIndex, XAuint32 *domain); |
|
56 |
|
57 XAresult XAStreamInformationItfImpl_QueryStreamInformation( |
|
58 XAStreamInformationItf self, XAuint32 streamIndex, void * info); |
|
59 |
|
60 XAresult XAStreamInformationItfImpl_QueryStreamName( |
|
61 XAStreamInformationItf self, XAuint32 streamIndex, |
|
62 XAuint16 * pNameSize, XAchar * pName); |
|
63 |
|
64 XAresult XAStreamInformationItfImpl_RegisterStreamChangeCallback( |
|
65 XAStreamInformationItf self, xaStreamEventChangeCallback callback, |
|
66 void * pContext); |
|
67 |
|
68 XAresult XAStreamInformationItfImpl_QueryActiveStreams( |
|
69 XAStreamInformationItf self, XAuint32 *numStreams, |
|
70 XAboolean *activeStreams); |
|
71 |
|
72 XAresult XAStreamInformationItfImpl_SetActiveStream( |
|
73 XAStreamInformationItf self, XAuint32 streamNum, XAboolean active, |
|
74 XAboolean commitNow); |
|
75 |
|
76 /* XAStreamInformationItfImpl -specific methods */ |
|
77 XAStreamInformationItfImpl* XAStreamInformationItfImpl_Create( |
|
78 XAAdaptationBaseCtx *adapCtx); |
|
79 void XAStreamInformationItfImpl_Free(XAStreamInformationItfImpl* self); |
|
80 |
|
81 #endif /* XASTREAMINFORMATIONITF_H */ |