sl@0
|
1 |
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// testimageprocessing.h
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef TESTIMAGEPROCESSING_H
|
sl@0
|
19 |
#define TESTIMAGEPROCESSING_H
|
sl@0
|
20 |
|
sl@0
|
21 |
#include "TestCamera.h"
|
sl@0
|
22 |
#include <ecam/ecamadvsettingsintf.h>
|
sl@0
|
23 |
|
sl@0
|
24 |
const TInt KNumOfImgProcExtensions = 2;
|
sl@0
|
25 |
const TInt KMinBrightness = -100;
|
sl@0
|
26 |
const TInt KMaxBrightness = 100;
|
sl@0
|
27 |
const TInt KMinContrast = -100;
|
sl@0
|
28 |
const TInt KMaxContrast = 100;
|
sl@0
|
29 |
|
sl@0
|
30 |
// Implementations of the MCameraImageProcessing class
|
sl@0
|
31 |
class CTestCamImgProc : public CBase,
|
sl@0
|
32 |
public MCameraImageProcessing,
|
sl@0
|
33 |
public MCameraImageProcessing2
|
sl@0
|
34 |
{
|
sl@0
|
35 |
friend class CTestCamera;
|
sl@0
|
36 |
public:
|
sl@0
|
37 |
static CTestCamImgProc* NewL(CTestCamera& aOwner);
|
sl@0
|
38 |
~CTestCamImgProc();
|
sl@0
|
39 |
|
sl@0
|
40 |
protected:
|
sl@0
|
41 |
//from MCameraImageProcessing
|
sl@0
|
42 |
void Release();
|
sl@0
|
43 |
void GetSupportedTransformationsL(RArray<TUid>& aTransformations) const;
|
sl@0
|
44 |
void GetActiveTransformationsL(RArray<TUid>& aTransformations) const;
|
sl@0
|
45 |
void GetTransformationSupportedValuesL(TUid aTransformation, RArray<TInt>& aValues, TValueInfo& aInfo) const;
|
sl@0
|
46 |
TInt TransformationValue(TUid aTransformation) const;
|
sl@0
|
47 |
TInt GetTransformationValue(TUid aTransformation, TInt& aTransformationValue) const;
|
sl@0
|
48 |
void SetTransformationValue(TUid aTransformation, TInt aValue);
|
sl@0
|
49 |
void GetActiveTransformSequenceL(RArray<TUid>& aTransformSequence) const;
|
sl@0
|
50 |
void SetActiveTransformSequenceL(RArray<TUid>& aTransformSequence);
|
sl@0
|
51 |
void SetSourceRect(const TRect& aRect);
|
sl@0
|
52 |
void GetSourceRect(TRect& aRect) const;
|
sl@0
|
53 |
|
sl@0
|
54 |
//from MCameraImageProcessing2
|
sl@0
|
55 |
void GetConcurrentColorSwappingsSupportedL(TInt& aConcurrentColorSwappingSupported) const;
|
sl@0
|
56 |
void GetColorSwapCapabilitiesL(TInt aIndex, CCamera::CCameraImageProcessing::TColorOperationCapabilities& aColorSwapCapabilities) const;
|
sl@0
|
57 |
void SetColorSwapEntry(TInt aIndex, const CCamera::CCameraImageProcessing::TColorOperationEntry& aColorSwapParameters);
|
sl@0
|
58 |
void RemoveColorSwapEntry(TInt aIndex);
|
sl@0
|
59 |
void GetColorSwapEntryL(TInt aIndex, CCamera::CCameraImageProcessing::TColorOperationEntry& aColorSwapParameters) const;
|
sl@0
|
60 |
void StartColorSwapping();
|
sl@0
|
61 |
void CancelColorSwappingL();
|
sl@0
|
62 |
void GetConcurrentColorAccentSupportedL(TInt& aConcurrentColorAccentSupported) const;
|
sl@0
|
63 |
void GetColorAccentCapabilitiesL(TInt aIndex, CCamera::CCameraImageProcessing::TColorOperationCapabilities& aColorAccentCapabilities) const;
|
sl@0
|
64 |
void SetColorAccentEntry(TInt aIndex, const CCamera::CCameraImageProcessing::TColorOperationEntry& aColorAccentParameters);
|
sl@0
|
65 |
void RemoveColorAccentEntry(TInt aIndex);
|
sl@0
|
66 |
void GetColorAccentEntryL(TInt aIndex, CCamera::CCameraImageProcessing::TColorOperationEntry& aColorAccentParameters) const;
|
sl@0
|
67 |
void StartColorAccent();
|
sl@0
|
68 |
void CancelColorAccentL();
|
sl@0
|
69 |
|
sl@0
|
70 |
private:
|
sl@0
|
71 |
CTestCamImgProc(CTestCamera& aOwner);
|
sl@0
|
72 |
void ConstructL();
|
sl@0
|
73 |
|
sl@0
|
74 |
TBool IsTransform(TUid aTransformation);
|
sl@0
|
75 |
|
sl@0
|
76 |
private:
|
sl@0
|
77 |
CTestCamera& iOwner;
|
sl@0
|
78 |
|
sl@0
|
79 |
TInt iRefCount;
|
sl@0
|
80 |
|
sl@0
|
81 |
RArray<TUid> iSupportedTranformations;
|
sl@0
|
82 |
RArray<TUid> iActiveTransformations;
|
sl@0
|
83 |
RArray<TUid> iActiveTransformSequence;
|
sl@0
|
84 |
};
|
sl@0
|
85 |
#endif // TESTIMAGEPROCESSING_H
|