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: Header File |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef XACAPABILITIESMGR_H |
18 #ifndef XACAPABILITIESMGR_H |
19 #define XACAPABILITIESMGR_H |
19 #define XACAPABILITIESMGR_H |
20 |
20 |
21 #include "xaframeworkmgr.h" |
21 #include "xaframeworkmgr.h" |
22 #include "openmaxalwrapper.h" |
22 #include "openmaxalwrapper.h" |
23 #include "xaglobals.h" |
23 #include "xaglobals.h" |
24 |
|
25 |
24 |
26 #define AUD_D (XACAP_DECODER|XACAP_AUDIO) |
25 #define AUD_D (XACAP_DECODER|XACAP_AUDIO) |
27 #define AUD_E (XACAP_ENCODER|XACAP_AUDIO) |
26 #define AUD_E (XACAP_ENCODER|XACAP_AUDIO) |
28 #define VID_D (XACAP_DECODER|XACAP_VIDEO) |
27 #define VID_D (XACAP_DECODER|XACAP_VIDEO) |
29 #define VID_E ((XACapsType)(XACAP_ENCODER|XACAP_VIDEO)) |
28 #define VID_E ((XACapsType)(XACAP_ENCODER|XACAP_VIDEO)) |
38 /* Structure to hold commonly used capabilities of codec/device. |
37 /* Structure to hold commonly used capabilities of codec/device. |
39 */ |
38 */ |
40 typedef struct XACapabilities_ XACapabilities; |
39 typedef struct XACapabilities_ XACapabilities; |
41 |
40 |
42 struct XACapabilities_ |
41 struct XACapabilities_ |
43 { |
42 { |
44 XAuint32 capsType; |
43 XAuint32 capsType; |
45 XAuint32 xaid; /* OpenMAX id (e.g. XA_VIDEOCODEC macro) */ |
44 XAuint32 xaid; /* OpenMAX id (e.g. XA_VIDEOCODEC macro) */ |
46 XAchar* adaptId; /* TODO fill this */ |
45 XAchar* adaptId; /* Internal Adaptation Device IDs */ |
47 /* TODO Do we need a flag for default device id? */ |
46 XAuint32 noOfEntries; |
48 XAuint32 noOfEntries; |
47 void* pEntry; |
49 void* pEntry; |
|
50 |
48 |
51 /*add if/when needed*/ |
49 /*add if/when needed*/ |
52 XACapabilities* next; |
50 XACapabilities* next; |
53 }; |
51 }; |
54 |
52 |
55 |
53 XAresult XACapabilitiesMgr_CreateCapabilitieList(FrameworkMap* frameworkMap, |
56 XAresult XACapabilitiesMgr_CreateCapabilitieList( |
54 XACapabilities** ppListHead); |
57 FrameworkMap* frameworkMap, |
|
58 XACapabilities** ppListHead); |
|
59 |
55 |
60 XAresult XACapabilitiesMgr_DeleteCapabilitieList(XACapabilities** ppListHead); |
56 XAresult XACapabilitiesMgr_DeleteCapabilitieList(XACapabilities** ppListHead); |
61 |
57 |
62 XAresult XACapabilitiesMgr_GetCapsCount( |
58 XAresult XACapabilitiesMgr_GetCapsCount(XACapabilities* pListHead, |
63 XACapabilities* pListHead, |
59 XACapsType filter, XAuint32* count); |
64 XACapsType filter, |
|
65 XAuint32* count); |
|
66 |
60 |
67 XAresult XACapabilitiesMgr_GetCapsById( |
61 XAresult XACapabilitiesMgr_GetCapsById(XACapabilities* pListHead, |
68 XACapabilities* pListHead, |
62 XACapsType filter, XAuint32 maxId, XACapabilities* data); |
69 XACapsType filter, |
|
70 XAuint32 maxId, |
|
71 XACapabilities* data); |
|
72 |
63 |
73 XAresult XACapabilitiesMgr_GetCapsByIdx( |
64 XAresult XACapabilitiesMgr_GetCapsByIdx(XACapabilities* pListHead, |
74 XACapabilities* pListHead, |
65 XACapsType filter, XAuint32 idx, XACapabilities* data); |
75 XACapsType filter, |
|
76 XAuint32 idx, |
|
77 XACapabilities* data); |
|
78 |
66 |
79 XAresult XACapabilitiesMgr_QueryColorFormats( |
67 XAresult XACapabilitiesMgr_QueryColorFormats(XACapabilities* pListHead, |
80 XACapabilities* pListHead, |
68 XAuint32* pIndex, XAuint32* pColorFormats); |
81 XAuint32* pIndex, |
|
82 XAuint32* pColorFormats); |
|
83 |
69 |
84 #endif /* XACAPABILITIESMGR_H */ |
70 #endif /* XACAPABILITIESMGR_H */ |