mmplugins/imagingplugins/codecs/GifCodec/GIFFormat.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 15 Sep 2010 13:51:05 +0300
branchRCL_3
changeset 55 e51ae4fd18e6
parent 0 40261b775718
permissions -rw-r--r--
Revision: 201034 Kit: 201036

// Copyright (c) 1997-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:
// Licensed under US Patent No 4,558,302 and foreign counterparts
// 
//

#ifndef __GIFFORMAT_H__
#define __GIFFORMAT_H__

#include <icl/imageprocessor.h>

const TInt KGifFileInformationSize = 13;
const TInt KGifImageInformationSize = 10;
const TInt KGifPaletteEntrySize = 3;
const TInt KGifSignatureLength = 6;

_LIT8(KGif87aFileSignature,"GIF87a");
_LIT8(KGif89aFileSignature,"GIF89a");

class TGifFileInformation
	{
public:
	TBuf8<6> iSignature;
	TSize iScreenSize;
	TInt iBitsPerPixel;
	TInt iColorResolutionBits;
	TBool iGlobalColorMap;
	TInt iBackgroundColorIndex;
	TInt iPixelAspectRatio;
	TBool iSortedGlobalMap;
	};

class TGifFormatInfo
	{
public:
	TRgb* iGlobalPalette;
	TInt iBackgroundColorIndex;
	};

#endif