mmplugins/imagingplugins/codecs/JPEGCodec/Exif/exifdecoder.h
branchRCL_3
changeset 50 948c7f65f6d4
parent 0 40261b775718
equal deleted inserted replaced
49:735348f59235 50:948c7f65f6d4
       
     1 // Copyright (c) 2004-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 EXIFDECODER_H
       
    17 #define EXIFDECODER_H
       
    18 
       
    19 #include "ifdgeneral.h"
       
    20 #include "exifreaderwriter.h"
       
    21 
       
    22 // CExifDecoder - provides specialisation of CExifReaderWriter for use within the 
       
    23 // Jpeg Exif Decoder
       
    24 class CExifDecoder : public CExifReaderWriter
       
    25 	{	
       
    26 public:
       
    27 	static CExifDecoder* NewL(const TUint aApp1Size, const TUint8* aData);
       
    28 
       
    29 	~CExifDecoder();
       
    30 	
       
    31 	// Setters (not supported - this is a decoder)
       
    32 	TInt SetParam8(TUint aTag, TUint aIfd, HBufC8* aParam);
       
    33 	TInt SetParam16(TUint aTag, TUint aIfd, HBufC16* aParam);
       
    34 	TInt SetIntegerParam(TUint aTag, TUint aIfd, TInt aParam);
       
    35 	TInt SetShortParam(TUint aTag, TUint aIfd, TUint16 aParam);
       
    36 	TInt SetRationalParam(TUint aTag, TUint aIfd, TInt aNumerator, TInt aDenominator);	
       
    37 	TInt SetIntegerArrayParam(TUint aTag, TUint aIfd, CArrayFix<TInt>& aParam);
       
    38 	TInt SetShortArrayParam(TUint aTag, TUint aIfd, CArrayFix<TUint16>& aParam);
       
    39 	TInt SetRationalArrayParam(TUint aTag, TUint aIfd, CArrayFix<TRational>& aParam);
       
    40 	
       
    41 private: // functions
       
    42 	CExifDecoder();
       
    43 	void ConstructL(const TUint8* aData, TUint aApp1Size);
       
    44 	virtual void SetIfd1L();
       
    45 	
       
    46 private: // member variables
       
    47 	};
       
    48 	
       
    49 #endif // EXIFDECODER_H