Update contrib.
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __DEVVIDEOINTERNAL_H__
17 #define __DEVVIDEOINTERNAL_H__
20 #include <ecom/ecom.h>
23 Static utilities class.
26 class DevVideoUtilities
30 Convert a text number into a real number using lexical analysis
32 static TInt ConvertTextToTUint32(const TDesC8& aData, TUint32& aNumber);
35 Inspect the plugin implementation information objects to see if the required pre/post proc type is supported.
36 If so, the UID of the plugin is appended to aMatchingPlugins
38 static void MatchPrePostProcessorCapabilitiesL(const RImplInfoPtrArray& aPlugins, TUint32 aReqPrePostProcType, RArray<TUid>& aMatchingPlugins);
41 Select a plug-in that supports the mime type. If a plug-in does not support the mime type it is removed
42 from the array and deleted. Therefore after a call to this method "aImplInfoArray" contains only plug-in
43 that support the supplied mime type or is null if none was found.
45 static void SelectPluginBasedOnMatchType(const TDesC8& aMatchType, RImplInfoPtrArray& aImplInfoArray);
47 #ifdef SYMBIAN_MULTIMEDIA_CODEC_API
48 static void FindVideoDecoderPluginsL(const TDesC8& aMimeType, RImplInfoPtrArray& aImplInfoArray);
49 static void FindVideoEncoderPluginsL(const TDesC8& aMimeType, RImplInfoPtrArray& aImplInfoArray);
50 static void CreatePuListL(RImplInfoPtrArray& aImplInfoArray);
51 static const CImplementationInformation* FindPu(const RImplInfoPtrArray& aImplInfoArray, TUid aPuUid);
52 #endif // SYMBIAN_MULTIMEDIA_CODEC_API
56 * Template class CleanupResetAndDestroy to clean up the array
57 * of implementation information from the cleanup stack.
61 class CleanupResetAndDestroy
64 inline static void PushL(T& aRef);
66 static void ResetAndDestroy(TAny *aPtr);
69 inline void CleanupResetAndDestroyPushL(T& aRef);
71 inline void CleanupResetAndDestroy<T>::PushL(T& aRef)
72 {CleanupStack::PushL(TCleanupItem(&ResetAndDestroy,&aRef));}
74 void CleanupResetAndDestroy<T>::ResetAndDestroy(TAny *aPtr)
75 {(static_cast<T*>(aPtr))->ResetAndDestroy();}
77 inline void CleanupResetAndDestroyPushL(T& aRef)
78 {CleanupResetAndDestroy<T>::PushL(aRef);}