50
|
1 |
// Copyright (c) 2008-2010 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 |
/**
|
|
17 |
@file
|
|
18 |
@publishedAll
|
|
19 |
@released
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef __IMAGE_PROCESSOR_INPUT_INFO_H__
|
|
23 |
#define __IMAGE_PROCESSOR_INPUT_INFO_H__
|
|
24 |
|
|
25 |
#include <e32base.h>
|
|
26 |
#include <gdi.h>
|
|
27 |
|
|
28 |
namespace ImageProcessor
|
|
29 |
{
|
|
30 |
|
|
31 |
class CImageProcessorImpl;
|
|
32 |
|
|
33 |
namespace Plugin
|
|
34 |
{
|
|
35 |
class MInputInfo;
|
|
36 |
}
|
|
37 |
|
|
38 |
/**
|
|
39 |
This class provides functions to read input image details. These details can be used for display in a file browser
|
|
40 |
or to verify the correct capabilities. Prior to use this API, a pointer to ImageProcessor::InputInfoL() interface must be
|
|
41 |
obtained from the active CImgProcessor instance.
|
|
42 |
|
|
43 |
@publishedAll
|
|
44 |
@released
|
|
45 |
*/
|
|
46 |
class TInputInfo
|
|
47 |
{
|
|
48 |
public:
|
|
49 |
IMPORT_C TSize SizeL() const;
|
|
50 |
IMPORT_C void FormatL(TUid& aFormat, TUid& aSubFormat) const;
|
|
51 |
IMPORT_C TDisplayMode DisplayModeL() const;
|
|
52 |
IMPORT_C TUid ImageFrameFormatL() const;
|
|
53 |
IMPORT_C TUid SamplingL() const;
|
|
54 |
IMPORT_C TUint32 BitsPerPixelL() const;
|
|
55 |
IMPORT_C TBool IsProgressiveL() const;
|
|
56 |
IMPORT_C TBool IsInterlacedL() const;
|
|
57 |
IMPORT_C TBool HasAlphaL() const;
|
|
58 |
IMPORT_C TAny* Extension(TUid aExtension) const;
|
|
59 |
|
|
60 |
private:
|
|
61 |
friend class CImageProcessorImpl;
|
|
62 |
TInputInfo(Plugin::MInputInfo& aInputInfoImpl, CImageProcessorImpl& aImageProcessorImpl);
|
|
63 |
|
|
64 |
CImageProcessorImpl& iImageProcessorImpl;
|
|
65 |
Plugin::MInputInfo& iInputInfoImpl;
|
|
66 |
|
|
67 |
TInt iReserved; // future proof
|
|
68 |
};
|
|
69 |
|
|
70 |
}
|
|
71 |
|
|
72 |
#endif //__IMAGE_PROCESSOR_INPUT_INFO_H__
|