equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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 /** |
|
17 @file |
|
18 @publishedPartner |
|
19 @prototype |
|
20 */ |
|
21 |
|
22 #ifndef SGUTILS_H |
|
23 #define SGUTILS_H |
|
24 |
|
25 #include <gdi.h> |
|
26 #include <pixelformats.h> |
|
27 |
|
28 |
|
29 /** |
|
30 @publishedPartner |
|
31 @prototype |
|
32 @deprecated |
|
33 |
|
34 Set of utility functions. These functions are related to a number of Graphics APIs |
|
35 and provide functionality for converting from one pixel format to another, |
|
36 mapping from TDisplayMode to TUidPixelFormat and viceversa, and calculating data strides. |
|
37 */ |
|
38 class SgUtils |
|
39 { |
|
40 public: |
|
41 IMPORT_C static TUidPixelFormat DisplayModeToPixelFormat(TDisplayMode aDisplayMode); |
|
42 IMPORT_C static TDisplayMode PixelFormatToDisplayMode(TUidPixelFormat aPixelFormat); |
|
43 IMPORT_C static TInt MinDataStride(TInt aWidth, TUidPixelFormat aPixelFormat); |
|
44 IMPORT_C static TInt TransferPixels(TAny* aDataAddressDest, TInt aDataStrideDest, TUidPixelFormat aPixelFormatDest, |
|
45 const TAny* aDataAddressSrc, TInt aDataStrideSrc, TUidPixelFormat aPixelFormatSrc, |
|
46 const TRect& aRectSource); |
|
47 }; |
|
48 |
|
49 |
|
50 #endif // SGUTILS_H |