mmplugins/imagingplugins/codecs/PNGCodec/StreamDecoderIFace.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2005-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef _STREAM_DECODER_IFACE_H
       
    17 
       
    18 #define _STREAM_DECODER_IFACE_H
       
    19 
       
    20 /** 	@file
       
    21 	@internalComponent */
       
    22 
       
    23 class MImageStreamDecoder;
       
    24 class MImageStreamDecoderFactory 
       
    25 	{
       
    26 public:
       
    27 	virtual void CreatePngDecoderL(MImageStreamDecoder*& aPtr)=0;
       
    28 	virtual void SetDtorKey(TUid aUid)=0;
       
    29 	virtual void Release()=0;
       
    30 	};
       
    31 
       
    32 class MUniqueChunkDataProvider;
       
    33 class CImageProcessor;
       
    34 class CFbsBitmap;
       
    35 class MImageStreamDecoder 
       
    36 	{
       
    37 public:
       
    38 
       
    39 	virtual void InitL(CImageProcessor& aImageProcessor, CImageProcessor* aMaskProcessor, CFbsBitmap* aDestination, 
       
    40 						const TPtrC8& aData, MUniqueChunkDataProvider& aProvider)=0;
       
    41 
       
    42 	virtual void DecodeL()=0;
       
    43 	virtual void ResetL()=0;
       
    44 
       
    45 	virtual const TSize& ImageSize()=0;
       
    46 
       
    47 	virtual void Release()=0;
       
    48 	};
       
    49 
       
    50 class MUniqueChunkDataProvider 
       
    51 	{
       
    52 public:
       
    53    virtual TInt GetChunkData(const TText8* aChunkId, const TUint8*& aPalettePtr, TInt& aSizeInBites)=0;
       
    54 	};
       
    55 
       
    56 #endif // _STREAM_DECODER_IFACE_H