crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianNativeTools/Source/SymbianInflate.cpp
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     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 #include "SymbianInflate.h"
       
    18 
       
    19 // User includes
       
    20 #include "huffman.h"
       
    21 
       
    22 // External references
       
    23 extern TInt InflateUnCompress(unsigned char* source, int sourcesize,unsigned char* dest, int destsize);
       
    24 
       
    25 
       
    26 SYMBIANNATIVETOOL_API TInt SymbianInflateImage( TUint8* aSource, TInt aSourceSize, TUint8* aDest, TInt aDestSize )
       
    27 	{
       
    28     TInt ret = 0;
       
    29     //
       
    30     try
       
    31         {
       
    32         ret = InflateUnCompress( aSource, aSourceSize, aDest, aDestSize );
       
    33         }
       
    34     catch( E32ImageCompressionError& aError )
       
    35         {
       
    36         ret = aError.iError;
       
    37         }
       
    38     //
       
    39     return ret;
       
    40 	}
       
    41