|
1 // Copyright (c) 1997-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 // Licensed under US Patent No 4,558,302 and foreign counterparts |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __GIFFORMAT_H__ |
|
19 #define __GIFFORMAT_H__ |
|
20 |
|
21 #include <icl/imageprocessor.h> |
|
22 |
|
23 const TInt KGifFileInformationSize = 13; |
|
24 const TInt KGifImageInformationSize = 10; |
|
25 const TInt KGifPaletteEntrySize = 3; |
|
26 const TInt KGifSignatureLength = 6; |
|
27 |
|
28 _LIT8(KGif87aFileSignature,"GIF87a"); |
|
29 _LIT8(KGif89aFileSignature,"GIF89a"); |
|
30 |
|
31 class TGifFileInformation |
|
32 { |
|
33 public: |
|
34 TBuf8<6> iSignature; |
|
35 TSize iScreenSize; |
|
36 TInt iBitsPerPixel; |
|
37 TInt iColorResolutionBits; |
|
38 TBool iGlobalColorMap; |
|
39 TInt iBackgroundColorIndex; |
|
40 TInt iPixelAspectRatio; |
|
41 TBool iSortedGlobalMap; |
|
42 }; |
|
43 |
|
44 class TGifFormatInfo |
|
45 { |
|
46 public: |
|
47 TRgb* iGlobalPalette; |
|
48 TInt iBackgroundColorIndex; |
|
49 }; |
|
50 |
|
51 #endif |
|
52 |