25
|
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".
|
19
|
8 |
*
|
25
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
19
|
11 |
*
|
25
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Stream Information Interface Header
|
|
15 |
*
|
|
16 |
*/
|
19
|
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_
|
25
|
33 |
{
|
19
|
34 |
/* parent interface */
|
|
35 |
struct XAStreamInformationItf_ itf;
|
|
36 |
/* pointer to self */
|
|
37 |
struct XAStreamInformationItfImpl_* self;
|
|
38 |
|
|
39 |
/*Adaptation variables*/
|
|
40 |
|
|
41 |
XAStreamInformationItf cbPtrToSelf;
|
25
|
42 |
xaStreamEventChangeCallback callback;
|
19
|
43 |
void *cbcontext;
|
|
44 |
XAAdaptationBaseCtx *adapCtx;
|
|
45 |
|
25
|
46 |
} XAStreamInformationItfImpl;
|
19
|
47 |
|
|
48 |
/** METHODS **/
|
|
49 |
|
|
50 |
/* Base interface XAStreamInformationItf implementation */
|
|
51 |
XAresult XAStreamInformationItfImpl_QueryMediaContainerInformation(
|
25
|
52 |
XAStreamInformationItf self, XAMediaContainerInformation * info);
|
19
|
53 |
|
|
54 |
XAresult XAStreamInformationItfImpl_QueryStreamType(
|
25
|
55 |
XAStreamInformationItf self, XAuint32 streamIndex, XAuint32 *domain);
|
19
|
56 |
|
|
57 |
XAresult XAStreamInformationItfImpl_QueryStreamInformation(
|
25
|
58 |
XAStreamInformationItf self, XAuint32 streamIndex, void * info);
|
19
|
59 |
|
|
60 |
XAresult XAStreamInformationItfImpl_QueryStreamName(
|
25
|
61 |
XAStreamInformationItf self, XAuint32 streamIndex,
|
|
62 |
XAuint16 * pNameSize, XAchar * pName);
|
19
|
63 |
|
|
64 |
XAresult XAStreamInformationItfImpl_RegisterStreamChangeCallback(
|
25
|
65 |
XAStreamInformationItf self, xaStreamEventChangeCallback callback,
|
|
66 |
void * pContext);
|
19
|
67 |
|
|
68 |
XAresult XAStreamInformationItfImpl_QueryActiveStreams(
|
25
|
69 |
XAStreamInformationItf self, XAuint32 *numStreams,
|
|
70 |
XAboolean *activeStreams);
|
19
|
71 |
|
|
72 |
XAresult XAStreamInformationItfImpl_SetActiveStream(
|
25
|
73 |
XAStreamInformationItf self, XAuint32 streamNum, XAboolean active,
|
|
74 |
XAboolean commitNow);
|
19
|
75 |
|
|
76 |
/* XAStreamInformationItfImpl -specific methods */
|
25
|
77 |
XAStreamInformationItfImpl* XAStreamInformationItfImpl_Create(
|
|
78 |
XAAdaptationBaseCtx *adapCtx);
|
19
|
79 |
void XAStreamInformationItfImpl_Free(XAStreamInformationItfImpl* self);
|
|
80 |
|
|
81 |
#endif /* XASTREAMINFORMATIONITF_H */
|