19
|
1 |
/*
|
25
|
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: Header File
|
|
15 |
*
|
|
16 |
*/
|
19
|
17 |
|
|
18 |
#ifndef XACAPABILITIESMGR_H
|
|
19 |
#define XACAPABILITIESMGR_H
|
|
20 |
|
|
21 |
#include "xaframeworkmgr.h"
|
|
22 |
#include "openmaxalwrapper.h"
|
|
23 |
#include "xaglobals.h"
|
|
24 |
|
|
25 |
#define AUD_D (XACAP_DECODER|XACAP_AUDIO)
|
|
26 |
#define AUD_E (XACAP_ENCODER|XACAP_AUDIO)
|
|
27 |
#define VID_D (XACAP_DECODER|XACAP_VIDEO)
|
|
28 |
#define VID_E ((XACapsType)(XACAP_ENCODER|XACAP_VIDEO))
|
|
29 |
#define IMG_D (XACAP_DECODER|XACAP_IMAGE)
|
|
30 |
#define IMG_E ((XACapsType)(XACAP_ENCODER|XACAP_IMAGE))
|
|
31 |
#define AUD_O ((XACapsType)(XACAP_DEVSNK|XACAP_AUDIO))
|
|
32 |
#define AUD_I (XACAP_DEVSRC|XACAP_AUDIO)
|
|
33 |
#define VID_O (XACAP_DEVSNK|XACAP_VIDEO)
|
|
34 |
#define VID_I (XACAP_DEVSRC|XACAP_VIDEO)
|
|
35 |
#define ANY 0x7FFFFFFF
|
|
36 |
|
|
37 |
/* Structure to hold commonly used capabilities of codec/device.
|
|
38 |
*/
|
|
39 |
typedef struct XACapabilities_ XACapabilities;
|
|
40 |
|
|
41 |
struct XACapabilities_
|
25
|
42 |
{
|
|
43 |
XAuint32 capsType;
|
|
44 |
XAuint32 xaid; /* OpenMAX id (e.g. XA_VIDEOCODEC macro) */
|
|
45 |
XAchar* adaptId; /* Internal Adaptation Device IDs */
|
|
46 |
XAuint32 noOfEntries;
|
|
47 |
void* pEntry;
|
19
|
48 |
|
|
49 |
/*add if/when needed*/
|
|
50 |
XACapabilities* next;
|
25
|
51 |
};
|
19
|
52 |
|
25
|
53 |
XAresult XACapabilitiesMgr_CreateCapabilitieList(FrameworkMap* frameworkMap,
|
|
54 |
XACapabilities** ppListHead);
|
19
|
55 |
|
|
56 |
XAresult XACapabilitiesMgr_DeleteCapabilitieList(XACapabilities** ppListHead);
|
|
57 |
|
25
|
58 |
XAresult XACapabilitiesMgr_GetCapsCount(XACapabilities* pListHead,
|
|
59 |
XACapsType filter, XAuint32* count);
|
19
|
60 |
|
25
|
61 |
XAresult XACapabilitiesMgr_GetCapsById(XACapabilities* pListHead,
|
|
62 |
XACapsType filter, XAuint32 maxId, XACapabilities* data);
|
19
|
63 |
|
25
|
64 |
XAresult XACapabilitiesMgr_GetCapsByIdx(XACapabilities* pListHead,
|
|
65 |
XACapsType filter, XAuint32 idx, XACapabilities* data);
|
19
|
66 |
|
25
|
67 |
XAresult XACapabilitiesMgr_QueryColorFormats(XACapabilities* pListHead,
|
|
68 |
XAuint32* pIndex, XAuint32* pColorFormats);
|
19
|
69 |
|
|
70 |
#endif /* XACAPABILITIESMGR_H */
|