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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XAMETADATAADAPTATION_H |
|
19 #define XAMETADATAADAPTATION_H |
|
20 |
|
21 #include "XADebug.h" |
|
22 #include "XAAdaptationContextBase.h" |
|
23 #include "XAMediaRecorderAdaptCtx.h" |
|
24 |
|
25 /* FUNCTIONS */ |
|
26 typedef struct XAMetadataImplTagList |
|
27 { |
|
28 XAuint32 itemcount; /* number of items in all three following arrays */ |
|
29 XAMetadataInfo** mdeKeys; /* array of tag keys */ |
|
30 XAMetadataInfo** mdeValues; /* array of tag values */ |
|
31 } XAMetadataImplTagList; |
|
32 |
|
33 XAresult XAMetadataAdapt_PreInit(XAAdaptationBaseCtx *bCtx); |
|
34 XAresult XAMetadataAdapt_PostInit(XAAdaptationBaseCtx *bCtx); |
|
35 const XAchar* XAMetadataAdapt_ParseKhronosKey(const XAchar* KKey); |
|
36 void XAMetadataAdapt_FreeImplTagList(XAMetadataImplTagList *list, XAboolean freeItems); |
|
37 |
|
38 XAresult XAMetadataExtractionItfAdapt_FillTagList(XAAdaptationBaseCtx *bCtx, |
|
39 XAMetadataImplTagList* tagList); |
|
40 |
|
41 |
|
42 XAresult XAMetadataTraversalItfAdapt_SetMode(XAAdaptationBaseCtx *bCtx, XAuint32 mode); |
|
43 XAresult XAMetadataTraversalItfAdapt_GetChildCount(XAAdaptationBaseCtx *bCtx, XAuint32 *pCount); |
|
44 XAresult XAMetadataTraversalItfAdapt_GetChildMIMETypeSize(XAAdaptationBaseCtx *bCtx, |
|
45 XAuint32 index, |
|
46 XAuint32 *pSize); |
|
47 XAresult XAMetadataTraversalItfAdapt_GetChildInfo(XAAdaptationBaseCtx *bCtx, |
|
48 XAuint32 index, |
|
49 XAint32 *pNodeID, |
|
50 XAuint32 *pType, |
|
51 XAuint32 size, |
|
52 XAchar *pMimeType); |
|
53 XAresult XAMetadataTraversalItfAdapt_SetActiveNode(XAAdaptationBaseCtx *bCtx, |
|
54 XAuint32 index); |
|
55 |
|
56 XAresult XAMetadataInsertionItfAdapt_CreateChildNode(XAAdaptationBaseCtx *bCtx, |
|
57 XAint32 parentNodeID, |
|
58 XAuint32 type, |
|
59 XAchar *mimeType, |
|
60 XAint32 *pChildNodeID); |
|
61 XAresult XAMetadataInsertionItfAdapt_GetSupportedKeysCount(XAAdaptationBaseCtx *bCtx, |
|
62 XAint32 nodeID, |
|
63 XAboolean *pFreeKeys, |
|
64 XAuint32 *pKeyCount, |
|
65 XAuint32 *pEncodingCount); |
|
66 XAresult XAMetadataInsertionItfAdapt_GetKeySize(XAAdaptationBaseCtx *bCtx, |
|
67 XAint32 nodeID, |
|
68 XAuint32 keyIndex, |
|
69 XAuint32 *pKeySize); |
|
70 XAresult XAMetadataInsertionItfAdapt_GetKey(XAAdaptationBaseCtx *bCtx, |
|
71 XAint32 nodeID, |
|
72 XAuint32 keyIndex, |
|
73 XAuint32 keySize, |
|
74 XAMetadataInfo *pKey); |
|
75 XAresult XAMetadataInsertionItfAdapt_GetFreeKeysEncoding(XAAdaptationBaseCtx *bCtx, |
|
76 XAint32 nodeID, |
|
77 XAuint32 encodingIndex, |
|
78 XAuint32 *pEncoding); |
|
79 XAresult XAMetadataInsertionItfAdapt_InsertMetadataItem(XAAdaptationBaseCtx *bCtx, |
|
80 XAint32 nodeID, |
|
81 XAMetadataInfo *pKey, |
|
82 XAMetadataInfo *pValue, |
|
83 XAboolean overwrite); |
|
84 #endif /* XAMETADATAADAPTATION_H */ |
|