equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-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 // Returns the current position of MCU Top Left coordinate in case of MCU transformation and pixel coordinate in case of data unit cooefficient transformation |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 FORCEDINLINE void TPositionProcessor::GetCurrentPosition(TPoint& aPos) const |
|
23 { |
|
24 aPos = iCurrentPosition; |
|
25 } |
|
26 |
|
27 /** |
|
28 Returns true if end of image. |
|
29 */ |
|
30 FORCEDINLINE TBool TPositionProcessor::IsEndOfImage() const |
|
31 { |
|
32 //return true if end of file |
|
33 return iIsEOF; |
|
34 } |
|
35 |
|
36 /** |
|
37 Returns true if the dimensions need to be swapped. |
|
38 */ |
|
39 FORCEDINLINE TBool TPositionProcessor::SwapDimensions() const |
|
40 { |
|
41 //return true if end of file |
|
42 return iSwapDimensions; |
|
43 } |
|
44 |
|
45 /** |
|
46 Returns true if transformation is needed. |
|
47 */ |
|
48 FORCEDINLINE TBool TPositionProcessor::IsTransformNeeded() const |
|
49 { |
|
50 //return true if transformation is not needed |
|
51 if(*(TUint32*) iImgCornerCoord != ENormalEncode) |
|
52 { |
|
53 return ETrue; |
|
54 } |
|
55 else |
|
56 { |
|
57 return EFalse; |
|
58 } |
|
59 } |
|
60 |
|
61 |
|
62 |
|
63 |