//
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description: 
//
//


// IID numbers for interfaces to mention during object creation
//	 XA_IID_NULL                    	1
//	 XA_IID_OBJECT                    	2
//	 XA_IID_CONFIGEXTENSION             3
//	 XA_IID_DYNAMICINTERFACEMANAGEMENT  4
//	 XA_IID_ENGINE                    	5
//	 XA_IID_THREADSYNC                  6
//	 XA_IID_PLAY                    	7
//	 XA_IID_PLAYBACKRATE                8
//	 XA_IID_PREFETCHSTATUS              9
//	 XA_IID_SEEK                    	10
//	 XA_IID_VOLUME                    	11
//	 XA_IID_IMAGECONTROLS               12
//	 XA_IID_IMAGEEFFECTS                13
//	 XA_IID_VIDEOPOSTPROCESSING         14
//	 XA_IID_RECORD                    	15
//	 XA_IID_SNAPSHOT                    16
//	 XA_IID_METADATAEXTRACTION          17
//	 XA_IID_METADATAINSERTION           18
//	 XA_IID_METADATATRAVERSAL           19
//	 XA_IID_DYNAMICSOURCE               20
//	 XA_IID_CAMERACAPABILITIES          21
//	 XA_IID_CAMERA                    	22
//	 XA_IID_AUDIOIODEVICECAPABILITIES   23
//	 XA_IID_DEVICEVOLUME                24
//	 XA_IID_EQUALIZER                   25
//	 XA_IID_OUTPUTMIX                   26
//	 XA_IID_RADIO                    	27
//	 XA_IID_RDS                         28
//	 XA_IID_VIBRA                    	29
//	 XA_IID_LED                         30
//	 XA_IID_AUDIODECODERCAPABILITIES    31
//	 XA_IID_AUDIOENCODER                32
//	 XA_IID_AUDIOENCODERCAPABILITIES    33
//	 XA_IID_IMAGEENCODERCAPABILITIES    34
//	 XA_IID_IMAGEDECODERCAPABILITIES    35
//	 XA_IID_IMAGEENCODER                36
//	 XA_IID_VIDEODECODERCAPABILITIES    37
//	 XA_IID_VIDEOENCODER                38
//	 XA_IID_VIDEOENCODERCAPABILITIES    39
//	 XA_IID_STREAMINFORMATION           40

//Container Type
// XA_CONTAINERTYPE_UNSPECIFIED 1
// XA_CONTAINERTYPE_RAW 2
// XA_CONTAINERTYPE_ASF 3
// XA_CONTAINERTYPE_AVI 4
// XA_CONTAINERTYPE_BMP 5
// XA_CONTAINERTYPE_JPG 6
// XA_CONTAINERTYPE_JPG2000 7
// XA_CONTAINERTYPE_M4A 8
// XA_CONTAINERTYPE_MP3 9
// XA_CONTAINERTYPE_MP4 10
// XA_CONTAINERTYPE_MPEG_ES 11
// XA_CONTAINERTYPE_MPEG_PS 12
// XA_CONTAINERTYPE_MPEG_TS 13
// XA_CONTAINERTYPE_QT 14
// XA_CONTAINERTYPE_WAV 15
// XA_CONTAINERTYPE_XMF_0 16
// XA_CONTAINERTYPE_XMF_1 17
// XA_CONTAINERTYPE_XMF_2 18
// XA_CONTAINERTYPE_XMF_3 19
// XA_CONTAINERTYPE_XMF_GENERIC 20
// XA_CONTAINERTYPE_AMR 21
// XA_CONTAINERTYPE_AAC 22
// XA_CONTAINERTYPE_3GPP 23
// XA_CONTAINERTYPE_3GA 24
// XA_CONTAINERTYPE_RM 25
// XA_CONTAINERTYPE_DMF 26
// XA_CONTAINERTYPE_SMF 27
// XA_CONTAINERTYPE_MOBILE_DLS 28
// XA_CONTAINERTYPE_0GG 29

//Data Locator
// XA_DATALOCATOR_URI 1
// XA_DATALOCATOR_ADDRESS 2
// XA_DATALOCATOR_IODEVICE 3
// XA_DATALOCATOR_OUTPUTMIX 4
// XA_DATALOCATOR_NATIVEDISPLAY 5

//MDU KEYS 
//KhronosTitle
//KhronosArtist
//KhronosAlbum
//KhronosYear
//KhronosComment
//KhronosTrackNumber
//KhronosGenre
//Composer
//KhronosCopyright
//KhronosContentURL
//attachedpicture
//Vendor
//KhronosRating
//Duration

[Test]
title 18.1 MetadataExtractionItf GetItemCount MP3
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mp3 9
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
ALImpl al_metadataextractionitf_GetItemCount
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.2 MetadataExtractionItf GetKeySize 1 MP3
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mp3 9
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
ALImpl al_metadataextractionitf_GetKeySize 1
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.3 MetadataExtractionItf GetKey 1 MP3
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mp3 9
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
//ALImpl al_metadataextractionitf_GetKey 1 40
ALImpl al_metadataextractionitf_GetKey KhronosTitle
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.4 MetadataExtractionItf GetValueSize 1 MP3
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mp3 9
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
ALImpl al_metadataextractionitf_GetValueSize 1
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.5 MetadataExtractionItf GetValue 1 MP3
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mp3 9
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
//ALImpl al_metadataextractionitf_GetValue 1 59
ALImpl al_metadataextractionitf_GetValue KhronosTitle JapJap
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.6 MetadataExtractionItf GetCoverArt MP3
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mp3 9
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
ALImpl al_metadataextractionitf_GetCoverArt
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.7 MetadataExtractionItf GetItemCount MP4
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/testmp4.mp4
ALImpl al_SetDataFormat 1 video/mp4 10
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
ALImpl al_metadataextractionitf_GetItemCount
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.8 MetadataExtractionItf GetKeySize 1 MP4
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/testmp4.mp4
ALImpl al_SetDataFormat 1 video/mp4 10
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
ALImpl al_metadataextractionitf_GetKeySize 1
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.9 MetadataExtractionItf GetKey 1 MP4
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/testmp4.mp4
ALImpl al_SetDataFormat 1 video/mp4 10
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
ALImpl al_metadataextractionitf_GetKey KhronosTitle
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.10 MetadataExtractionItf GetValueSize 1 MP4
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/testmp4.mp4
ALImpl al_SetDataFormat 1 video/mp4 10
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
ALImpl al_metadataextractionitf_GetValueSize 1
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.11 MetadataExtractionItf GetValue 1 MP4
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/testmp4.mp4
ALImpl al_SetDataFormat 1 video/mp4 10
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
ALImpl al_metadataextractionitf_GetValue KhronosTitle mp4_aac
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.12 MetadataExtractionItf AddKeyFilter
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mp3 9
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
allownextresult 2
ALImpl al_metadataextractionitf_AddKeyFilter
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 18.13 MetadataExtractionItf ClearKeyFilter
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mp3 9
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 17
allownextresult 2
ALImpl al_metadataextractionitf_ClearKeyFilter
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

