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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This feature is documented in ICL_Design_EXIF.doc
26 #ifndef ICLEXIFIMAGEFRAME_H
27 #define ICLEXIFIMAGEFRAME_H
29 #include <imageconversion.h>
30 #include <icl/imageplugin.h>
32 #include "imageframe.h"
36 This class provides access to an extension of the EXIF JPEG decoder that supports
37 decoding of JPEG images held either in files or in descriptors to a destination of type CImageFrame.
39 This is an addition to the features provided by CJPEGExifDecoder.
42 class CJPEGImageFrameDecoder : public CJPEGExifDecoder
45 IMPORT_C static CJPEGImageFrameDecoder* NewL();
46 IMPORT_C ~CJPEGImageFrameDecoder();
48 IMPORT_C void ConvertFrame(TRequestStatus* aRequestStatus, CImageFrame& aDestFrame);
49 IMPORT_C void ConvertFrame(TRequestStatus* aRequestStatus, CImageFrame& aDestFrame, TInt aFrameNumber);
50 IMPORT_C void ContinueConvertFrame(TRequestStatus* aRequestStatus);
52 IMPORT_C TBool RecommendedBufferSize(TUid aFormatCode, TInt& bufferSize);
53 IMPORT_C TBool RecommendedBufferSize(TInt& bufferSize);
56 IMPORT_C CJPEGImageFrameDecoder();
60 This class provides access to an extension of the EXIF JPEG encoder that supports
61 encoding JPEG images from a source of type CImageFrame to either a file or a descriptor.
63 This is an addition to the features provided by CJPEGExifEncoder.
66 class CJPEGImageFrameEncoder : public CJPEGExifEncoder
69 IMPORT_C static CJPEGImageFrameEncoder* NewL();
70 IMPORT_C ~CJPEGImageFrameEncoder();
72 IMPORT_C void ConvertFrame(TRequestStatus* aRequestStatus, const CImageFrame& aSrcFrame);
73 IMPORT_C void ConvertFrame(TRequestStatus* aRequestStatus, const CImageFrame& aSrcFrame, const CFrameImageData* aFrameImageData);
76 IMPORT_C CJPEGImageFrameEncoder();
81 This is the plugin API for Image Converter Library decoder plugins relating to CImageFrames.
83 It is an extension of the ICL EXIF decoder plugin which provides a container for specific
84 data required to decode a JPEG file or descriptor to a destination of type CImageFrame.
86 class CJPEGImageFrameDecoderPlugin : public CJPEGExifDecoderPlugin
89 IMPORT_C ~CJPEGImageFrameDecoderPlugin();
90 IMPORT_C CImageFrame& DstImageFrame();
91 IMPORT_C TInt FrameNumber() const;
92 IMPORT_C TUid FormatCode() const;
93 IMPORT_C void SetRecommendedBufferSize(TInt aBufferSize);
95 void SetConvertParameters(CImageFrame& aDestFrame, TInt aFrameNumber);
96 void SetFormatCode(TUid aFormatCode);
97 TInt RecommendedBufferSize();
100 IMPORT_C CJPEGImageFrameDecoderPlugin();
103 // reserved for future expansion
104 IMPORT_C virtual void Reserved1();
105 IMPORT_C virtual void Reserved2();
106 IMPORT_C virtual void Reserved3();
109 CImageFrame* iDstImageFrame;
112 TInt iRecommendedBufferSize;
118 This is the plugin API for Image Converter Library encoder plugins relating to CImageFrames.
120 It is an extension of the ICL EXIF encoder plugin which provides a container for specific
121 data required to encode image data from a source of type CImageFrame to a JPEG file or descriptor.
123 class CJPEGImageFrameEncoderPlugin : public CJPEGExifEncoderPlugin
126 IMPORT_C ~CJPEGImageFrameEncoderPlugin();
127 IMPORT_C const CImageFrame& SrcImageFrame() const;
128 IMPORT_C const CFrameImageData& FrameImageData() const;
130 void SetConvertParameters(const CImageFrame& aSrcFrame, const CFrameImageData* aFrameImageData);
133 IMPORT_C CJPEGImageFrameEncoderPlugin();
136 // reserved for future expansion
137 IMPORT_C virtual void Reserved1();
138 IMPORT_C virtual void Reserved2();
139 IMPORT_C virtual void Reserved3();
142 const CImageFrame* iSrcImageFrame;
143 const CFrameImageData* iFrameImageData;
148 #endif // ICLEXIFIMAGEFRAME_H