equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Image Transforms subsystem. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 |
|
21 #include "cvtimage.h" |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CVtImage::Type() const |
|
27 // ----------------------------------------------------------------------------- |
|
28 // |
|
29 EXPORT_C CVtImage::TVtImageType CVtImage::Type() const |
|
30 { |
|
31 return iType; |
|
32 } |
|
33 |
|
34 // ----------------------------------------------------------------------------- |
|
35 // CVtImage::DisplayModeToVtDisplayMode( TDisplayMode aMode ) |
|
36 // ----------------------------------------------------------------------------- |
|
37 // |
|
38 CVtImage::TVtDisplayMode CVtImage::DisplayModeToVtDisplayMode( |
|
39 TDisplayMode aMode ) |
|
40 { |
|
41 TVtDisplayMode mode; |
|
42 |
|
43 switch( aMode ) |
|
44 { |
|
45 case EColor4K: |
|
46 mode = EVtColor4K; |
|
47 break; |
|
48 |
|
49 case EColor64K: |
|
50 mode = EVtColor64K; |
|
51 break; |
|
52 |
|
53 case EColor16M: |
|
54 mode = EVtColor16M; |
|
55 break; |
|
56 |
|
57 case EColor16MU: |
|
58 mode = EVtColor16MU; |
|
59 break; |
|
60 |
|
61 case EColor16MA: |
|
62 mode = EVtColor16MA; |
|
63 break; |
|
64 |
|
65 default: |
|
66 mode = EVtColorNone; |
|
67 break; |
|
68 } |
|
69 |
|
70 return mode; |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // CVtImage::CVtImage( TVtImageType aType ) |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 CVtImage::CVtImage( TVtImageType aType ) |
|
78 : iType( aType ) |
|
79 { |
|
80 } |
|
81 |
|
82 // End of File |
|
83 |
|
84 |