khronosfws/openmax_al/src/common/xametadataextractionitf.h
author hgs
Fri, 25 Jun 2010 17:36:03 -0500
changeset 28 ebf79c79991a
parent 25 6f7ceef7b1d1
child 53 eabc8c503852
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     1
/*
25
hgs
parents: 19
diff changeset
     2
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents: 19
diff changeset
     3
 * All rights reserved.
hgs
parents: 19
diff changeset
     4
 * This component and the accompanying materials are made available
hgs
parents: 19
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
hgs
parents: 19
diff changeset
     6
 * which accompanies this distribution, and is available
hgs
parents: 19
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents: 19
diff changeset
     8
 *
hgs
parents: 19
diff changeset
     9
 * Initial Contributors:
hgs
parents: 19
diff changeset
    10
 * Nokia Corporation - initial contribution.
hgs
parents: 19
diff changeset
    11
 *
hgs
parents: 19
diff changeset
    12
 * Contributors:
hgs
parents: 19
diff changeset
    13
 *
hgs
parents: 19
diff changeset
    14
 * Description: Metadata Extraction Implementation Header
hgs
parents: 19
diff changeset
    15
 *
hgs
parents: 19
diff changeset
    16
 */
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    17
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    18
#ifndef XAMETADATAEXTRACTIONITF_H
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    19
#define XAMETADATAEXTRACTIONITF_H
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    20
19
hgs
parents: 12
diff changeset
    21
#include "xaadptbasectx.h"
hgs
parents: 12
diff changeset
    22
#include "xametadataadaptation.h"
hgs
parents: 12
diff changeset
    23
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    24
/** MACROS **/
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    26
/** TYPES **/
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    27
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    28
/** ENUMERATIONS **/
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    29
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    30
/** STRUCTURES **/
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    31
/* Definition of XAMetadataExtractionItf implementation */
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    32
typedef struct XAMetadataExtractionItfImpl_
25
hgs
parents: 19
diff changeset
    33
    {
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    34
    /* parent interface */
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    35
    struct XAMetadataExtractionItf_ itf;
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    36
    /* pointer to self */
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    37
    struct XAMetadataExtractionItfImpl_* self;
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    38
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    39
    /* variables */
25
hgs
parents: 19
diff changeset
    40
    XAuint32 filteredcount;
hgs
parents: 19
diff changeset
    41
    XAboolean* tagmatchesfilter;
hgs
parents: 19
diff changeset
    42
    XAboolean filteringOn;
hgs
parents: 19
diff changeset
    43
hgs
parents: 19
diff changeset
    44
    XAMetadataImplTagList currentTags;
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    45
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    46
    XAAdaptationBaseCtx *adaptCtx;
19
hgs
parents: 12
diff changeset
    47
25
hgs
parents: 19
diff changeset
    48
    } XAMetadataExtractionItfImpl;
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    49
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    50
/** METHODS **/
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    51
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    52
/* Base interface XAMetadataExtractionItf implementation */
25
hgs
parents: 19
diff changeset
    53
XAresult XAMetadataExtractionItfImpl_GetItemCount(
hgs
parents: 19
diff changeset
    54
        XAMetadataExtractionItf self, XAuint32 *pItemCount);
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    55
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    56
XAresult XAMetadataExtractionItfImpl_GetKeySize(XAMetadataExtractionItf self,
25
hgs
parents: 19
diff changeset
    57
        XAuint32 index, XAuint32 *pKeySize);
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    58
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    59
XAresult XAMetadataExtractionItfImpl_GetKey(XAMetadataExtractionItf self,
25
hgs
parents: 19
diff changeset
    60
        XAuint32 index, XAuint32 keySize, XAMetadataInfo *pKey);
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    61
25
hgs
parents: 19
diff changeset
    62
XAresult XAMetadataExtractionItfImpl_GetValueSize(
hgs
parents: 19
diff changeset
    63
        XAMetadataExtractionItf self, XAuint32 index, XAuint32 *pValueSize);
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    64
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    65
XAresult XAMetadataExtractionItfImpl_GetValue(XAMetadataExtractionItf self,
25
hgs
parents: 19
diff changeset
    66
        XAuint32 index, XAuint32 valueSize, XAMetadataInfo *pValue);
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    67
25
hgs
parents: 19
diff changeset
    68
XAresult XAMetadataExtractionItfImpl_AddKeyFilter(
hgs
parents: 19
diff changeset
    69
        XAMetadataExtractionItf self, XAuint32 keySize, const void *pKey,
hgs
parents: 19
diff changeset
    70
        XAuint32 keyEncoding, const XAchar *pValueLangCountry,
hgs
parents: 19
diff changeset
    71
        XAuint32 valueEncoding, XAuint8 filterMask);
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    72
25
hgs
parents: 19
diff changeset
    73
XAresult XAMetadataExtractionItfImpl_ClearKeyFilter(
hgs
parents: 19
diff changeset
    74
        XAMetadataExtractionItf self);
19
hgs
parents: 12
diff changeset
    75
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    76
/* XAMetadataExtractionItfImpl -specific methods */
25
hgs
parents: 19
diff changeset
    77
XAMetadataExtractionItfImpl* XAMetadataExtractionItfImpl_Create(
hgs
parents: 19
diff changeset
    78
        XAAdaptationBaseCtx *adaptCtx);
hgs
parents: 19
diff changeset
    79
void XAMetadataExtractionItfImp_AdaptCb(void *pHandlerCtx,
hgs
parents: 19
diff changeset
    80
        XAAdaptEvent *event);
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    81
void XAMetadataExtractionItfImpl_Free(XAMetadataExtractionItfImpl* self);
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    82
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    83
/* internal methods */
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    84
XAresult CheckAndUnfilterIndex(XAMetadataExtractionItfImpl *impl,
25
hgs
parents: 19
diff changeset
    85
        XAuint32 oldidx, XAuint32 *newidx);
12
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    86
5a06f39ad45b Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    87
#endif /* XAMETADATAEXTRACTIONITF_H */