|
1 // Copyright (c) 1999-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 __EXTENDED_TEST_CODEC_H__ |
|
17 #define __EXTENDED_TEST_CODEC_H__ |
|
18 |
|
19 #include <icl/imagecodec.h> |
|
20 |
|
21 class CExtendedTestDecoder; |
|
22 class CExtendedTestEncoder; |
|
23 |
|
24 // Extended Test Read codec. |
|
25 class CExtendedTestReadCodec : public CImageReadCodec |
|
26 { |
|
27 public: |
|
28 CExtendedTestReadCodec(CExtendedTestDecoder &aDecoder); |
|
29 virtual ~CExtendedTestReadCodec(); |
|
30 |
|
31 // From CImageReadCodec |
|
32 virtual void InitFrameL(TFrameInfo& aFrameInfo, CFrameImageData& aFrameImageData, TBool aDisableErrorDiffusion, CFbsBitmap& aDestination, CFbsBitmap* aDestinationMask); |
|
33 void ConstructL () { CImageReadCodec::ConstructL(); } // make public, since we don't have NewL |
|
34 |
|
35 protected: |
|
36 // from CImageReadCodec |
|
37 virtual TFrameState ProcessFrameL(TBufPtr8& aSrc); |
|
38 virtual void Complete(); |
|
39 |
|
40 protected: |
|
41 CExtendedTestDecoder *const iDecoder; |
|
42 }; |
|
43 |
|
44 // Extended Test Write codec. |
|
45 class CExtendedTestWriteCodec : public CImageWriteCodec |
|
46 { |
|
47 public: |
|
48 CExtendedTestWriteCodec(CExtendedTestEncoder &aEncoder); |
|
49 virtual ~CExtendedTestWriteCodec(); |
|
50 |
|
51 // From CImageWriteCodec |
|
52 virtual TFrameState ProcessFrameL(TBufPtr8& aDst); |
|
53 void ConstructL () { CImageWriteCodec::ConstructL(); } |
|
54 |
|
55 protected: |
|
56 CExtendedTestEncoder *const iEncoder; |
|
57 }; |
|
58 |
|
59 #endif // __EXTENDED_TEST_CODEC_H__ |
|
60 |