mmplugins/imagingplugins/imagedisplay/plugins/mng/PngLayer.h
author William Roberts <williamr@symbian.org>
Mon, 08 Mar 2010 21:44:53 +0000
branchCompilerCompatibility
changeset 4 24f5986762de
parent 0 40261b775718
permissions -rw-r--r--
Create CompilerCompatibility branch

// Copyright (c) 2004-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:
//

#ifndef __PNGLAYER_H__

#define __PNGLAYER_H__
/** 	@file
	@internalTechnology */

#include "Providers.h"
#include "MngObjects.h"
#include "PNGCodec.h"

class MInputStream;
class MImageStreamDecoder;

class CPngLayer: public CMngLayer 
	{
public:
	static CPngLayer* NewL();
	~CPngLayer();

	void AppendChunkL(const TMNGChunkHeader& aHeader,MInputStream& aInpStream);
	void ExecuteL(CMngPlayer& aPlayer, TMngExecuteResult& aResult);
	
protected:
	CBufFlat*				iPngBuffer;
	TInt					iDataSize;
	MImageStreamDecoder*	iPngCodec;
	};


#endif // ndef __PNGLAYER_H__