williamr@2
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
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
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
// This feature is documented in ICL_Design_EXIF.doc
|
williamr@2
|
15 |
//
|
williamr@2
|
16 |
//
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
|
williamr@2
|
20 |
/**
|
williamr@2
|
21 |
@file
|
williamr@2
|
22 |
@publishedAll
|
williamr@2
|
23 |
@released
|
williamr@2
|
24 |
*/
|
williamr@2
|
25 |
|
williamr@2
|
26 |
#ifndef ICLEXIFIMAGEFRAME_H
|
williamr@2
|
27 |
#define ICLEXIFIMAGEFRAME_H
|
williamr@2
|
28 |
|
williamr@2
|
29 |
#include <imageconversion.h>
|
williamr@2
|
30 |
#include <icl/imageplugin.h>
|
williamr@2
|
31 |
#include <iclexif.h>
|
williamr@2
|
32 |
#include "imageframe.h"
|
williamr@2
|
33 |
|
williamr@2
|
34 |
|
williamr@2
|
35 |
/**
|
williamr@2
|
36 |
This class provides access to an extension of the EXIF JPEG decoder that supports
|
williamr@2
|
37 |
decoding of JPEG images held either in files or in descriptors to a destination of type CImageFrame.
|
williamr@2
|
38 |
|
williamr@2
|
39 |
This is an addition to the features provided by CJPEGExifDecoder.
|
williamr@2
|
40 |
*/
|
williamr@2
|
41 |
|
williamr@2
|
42 |
class CJPEGImageFrameDecoder : public CJPEGExifDecoder
|
williamr@2
|
43 |
{
|
williamr@2
|
44 |
public:
|
williamr@2
|
45 |
IMPORT_C static CJPEGImageFrameDecoder* NewL();
|
williamr@2
|
46 |
IMPORT_C ~CJPEGImageFrameDecoder();
|
williamr@2
|
47 |
|
williamr@2
|
48 |
IMPORT_C void ConvertFrame(TRequestStatus* aRequestStatus, CImageFrame& aDestFrame);
|
williamr@2
|
49 |
IMPORT_C void ConvertFrame(TRequestStatus* aRequestStatus, CImageFrame& aDestFrame, TInt aFrameNumber);
|
williamr@2
|
50 |
IMPORT_C void ContinueConvertFrame(TRequestStatus* aRequestStatus);
|
williamr@2
|
51 |
|
williamr@2
|
52 |
IMPORT_C TBool RecommendedBufferSize(TUid aFormatCode, TInt& bufferSize);
|
williamr@2
|
53 |
IMPORT_C TBool RecommendedBufferSize(TInt& bufferSize);
|
williamr@2
|
54 |
|
williamr@2
|
55 |
protected:
|
williamr@2
|
56 |
IMPORT_C CJPEGImageFrameDecoder();
|
williamr@2
|
57 |
};
|
williamr@2
|
58 |
|
williamr@2
|
59 |
/**
|
williamr@2
|
60 |
This class provides access to an extension of the EXIF JPEG encoder that supports
|
williamr@2
|
61 |
encoding JPEG images from a source of type CImageFrame to either a file or a descriptor.
|
williamr@2
|
62 |
|
williamr@2
|
63 |
This is an addition to the features provided by CJPEGExifEncoder.
|
williamr@2
|
64 |
*/
|
williamr@2
|
65 |
|
williamr@2
|
66 |
class CJPEGImageFrameEncoder : public CJPEGExifEncoder
|
williamr@2
|
67 |
{
|
williamr@2
|
68 |
public:
|
williamr@2
|
69 |
IMPORT_C static CJPEGImageFrameEncoder* NewL();
|
williamr@2
|
70 |
IMPORT_C ~CJPEGImageFrameEncoder();
|
williamr@2
|
71 |
|
williamr@2
|
72 |
IMPORT_C void ConvertFrame(TRequestStatus* aRequestStatus, const CImageFrame& aSrcFrame);
|
williamr@2
|
73 |
IMPORT_C void ConvertFrame(TRequestStatus* aRequestStatus, const CImageFrame& aSrcFrame, const CFrameImageData* aFrameImageData);
|
williamr@2
|
74 |
|
williamr@2
|
75 |
protected:
|
williamr@2
|
76 |
IMPORT_C CJPEGImageFrameEncoder();
|
williamr@2
|
77 |
};
|
williamr@2
|
78 |
|
williamr@2
|
79 |
|
williamr@2
|
80 |
/**
|
williamr@2
|
81 |
This is the plugin API for Image Converter Library decoder plugins relating to CImageFrames.
|
williamr@2
|
82 |
|
williamr@2
|
83 |
It is an extension of the ICL EXIF decoder plugin which provides a container for specific
|
williamr@2
|
84 |
data required to decode a JPEG file or descriptor to a destination of type CImageFrame.
|
williamr@2
|
85 |
*/
|
williamr@2
|
86 |
class CJPEGImageFrameDecoderPlugin : public CJPEGExifDecoderPlugin
|
williamr@2
|
87 |
{
|
williamr@2
|
88 |
public:
|
williamr@2
|
89 |
IMPORT_C ~CJPEGImageFrameDecoderPlugin();
|
williamr@2
|
90 |
IMPORT_C CImageFrame& DstImageFrame();
|
williamr@2
|
91 |
IMPORT_C TInt FrameNumber() const;
|
williamr@2
|
92 |
IMPORT_C TUid FormatCode() const;
|
williamr@2
|
93 |
IMPORT_C void SetRecommendedBufferSize(TInt aBufferSize);
|
williamr@2
|
94 |
|
williamr@2
|
95 |
void SetConvertParameters(CImageFrame& aDestFrame, TInt aFrameNumber);
|
williamr@2
|
96 |
void SetFormatCode(TUid aFormatCode);
|
williamr@2
|
97 |
TInt RecommendedBufferSize();
|
williamr@2
|
98 |
|
williamr@2
|
99 |
protected:
|
williamr@2
|
100 |
IMPORT_C CJPEGImageFrameDecoderPlugin();
|
williamr@2
|
101 |
|
williamr@2
|
102 |
private:
|
williamr@2
|
103 |
// reserved for future expansion
|
williamr@2
|
104 |
IMPORT_C virtual void Reserved1();
|
williamr@2
|
105 |
IMPORT_C virtual void Reserved2();
|
williamr@2
|
106 |
IMPORT_C virtual void Reserved3();
|
williamr@2
|
107 |
|
williamr@2
|
108 |
private:
|
williamr@2
|
109 |
CImageFrame* iDstImageFrame;
|
williamr@2
|
110 |
TInt iFrameNumber;
|
williamr@2
|
111 |
TUid iFormatCode;
|
williamr@2
|
112 |
TInt iRecommendedBufferSize;
|
williamr@2
|
113 |
|
williamr@2
|
114 |
TAny* iReserved;
|
williamr@2
|
115 |
};
|
williamr@2
|
116 |
|
williamr@2
|
117 |
/**
|
williamr@2
|
118 |
This is the plugin API for Image Converter Library encoder plugins relating to CImageFrames.
|
williamr@2
|
119 |
|
williamr@2
|
120 |
It is an extension of the ICL EXIF encoder plugin which provides a container for specific
|
williamr@2
|
121 |
data required to encode image data from a source of type CImageFrame to a JPEG file or descriptor.
|
williamr@2
|
122 |
*/
|
williamr@2
|
123 |
class CJPEGImageFrameEncoderPlugin : public CJPEGExifEncoderPlugin
|
williamr@2
|
124 |
{
|
williamr@2
|
125 |
public:
|
williamr@2
|
126 |
IMPORT_C ~CJPEGImageFrameEncoderPlugin();
|
williamr@2
|
127 |
IMPORT_C const CImageFrame& SrcImageFrame() const;
|
williamr@2
|
128 |
IMPORT_C const CFrameImageData& FrameImageData() const;
|
williamr@2
|
129 |
|
williamr@2
|
130 |
void SetConvertParameters(const CImageFrame& aSrcFrame, const CFrameImageData* aFrameImageData);
|
williamr@2
|
131 |
|
williamr@2
|
132 |
protected:
|
williamr@2
|
133 |
IMPORT_C CJPEGImageFrameEncoderPlugin();
|
williamr@2
|
134 |
|
williamr@2
|
135 |
private:
|
williamr@2
|
136 |
// reserved for future expansion
|
williamr@2
|
137 |
IMPORT_C virtual void Reserved1();
|
williamr@2
|
138 |
IMPORT_C virtual void Reserved2();
|
williamr@2
|
139 |
IMPORT_C virtual void Reserved3();
|
williamr@2
|
140 |
|
williamr@2
|
141 |
private:
|
williamr@2
|
142 |
const CImageFrame* iSrcImageFrame;
|
williamr@2
|
143 |
const CFrameImageData* iFrameImageData;
|
williamr@2
|
144 |
|
williamr@2
|
145 |
TAny* iReserved;
|
williamr@2
|
146 |
};
|
williamr@2
|
147 |
|
williamr@2
|
148 |
#endif // ICLEXIFIMAGEFRAME_H
|