|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef LCDBITBLT_H |
|
20 #define LCDBITBLT_H |
|
21 |
|
22 class TAcceleratedBitmapInfo; |
|
23 class TRect; |
|
24 class TLcdTransform; |
|
25 |
|
26 typedef void (*TBlitLineFunction)(TUint8*,TInt,TUint8*,TInt); |
|
27 typedef void (*TMaskBlitLineFunction)(TUint8*,TInt,TUint8*,TInt,TUint8*,TInt); |
|
28 |
|
29 /** |
|
30 * Generic image copying routine, with no separate mask or alpha bitmap. The |
|
31 * work is carried out by calls to aBlitLineFn for each line in the destination |
|
32 * bitmap. |
|
33 */ |
|
34 extern void GenericBlit |
|
35 ( |
|
36 const TAcceleratedBitmapInfo* aDstColorBitmap, |
|
37 const TRect& aDstRect, // must be clipped to destination |
|
38 const TAcceleratedBitmapInfo* aSrcColorBitmap, |
|
39 const TLcdTransform& aTransform, // includes anchor |
|
40 TBlitLineFunction aBlitLineFn // function to call on each line |
|
41 ); |
|
42 |
|
43 /** |
|
44 * Generic image copying routine, with separate mask or alpha bitmap. The |
|
45 * work is carried out by calls to aBlitLineFn for each line in the destination |
|
46 * bitmap. The aAlphaBitmap is treated as corresponding to the source bitmap, |
|
47 * unless aIsSrcAlpha is set to EFalse. |
|
48 */ |
|
49 extern void GenericMaskBlit |
|
50 ( |
|
51 const TAcceleratedBitmapInfo* aDstColorBitmap, |
|
52 const TRect& aDstRect, // must be clipped to destination |
|
53 const TAcceleratedBitmapInfo* aSrcColorBitmap, |
|
54 const TLcdTransform& aTransform, // includes anchor |
|
55 const TAcceleratedBitmapInfo* aAlphaBitmap, // source or destination alpha |
|
56 TBool aIsSrcAlpha, // ETrue if alpha is source |
|
57 TMaskBlitLineFunction aBlitLineFn // function to call on each line |
|
58 ); |
|
59 |
|
60 /** |
|
61 * Opaque 1bpp to opaque 1bpp bitblt with transform. |
|
62 */ |
|
63 extern void BitBltOneBpp |
|
64 ( |
|
65 const TAcceleratedBitmapInfo* aDstColorBitmap, |
|
66 const TAcceleratedBitmapInfo* /*aDstAlphaBitmap*/, |
|
67 const TRect& aDstRect, |
|
68 const TAcceleratedBitmapInfo* aSrcColorBitmap, |
|
69 const TAcceleratedBitmapInfo* /*aSrcAlphaBitmap*/, |
|
70 const TLcdTransform& aTransform |
|
71 ); |
|
72 |
|
73 /** |
|
74 * Opaque 8bpp to opaque 8bpp bitblt with simple transform. |
|
75 */ |
|
76 extern void BitBltEightBppSimple |
|
77 ( |
|
78 const TAcceleratedBitmapInfo* aDstColorBitmap, |
|
79 const TAcceleratedBitmapInfo* /*aDstAlphaBitmap*/, |
|
80 const TRect& aDstRect, |
|
81 const TAcceleratedBitmapInfo* aSrcColorBitmap, |
|
82 const TAcceleratedBitmapInfo* /*aSrcAlphaBitmap*/, |
|
83 const TLcdTransform& aTransform |
|
84 ); |
|
85 |
|
86 /** |
|
87 * Opaque 8bpp to opaque 8bpp bitblt with transform. |
|
88 */ |
|
89 extern void BitBltEightBpp |
|
90 ( |
|
91 const TAcceleratedBitmapInfo* aDstColorBitmap, |
|
92 const TAcceleratedBitmapInfo* /*aDstAlphaBitmap*/, |
|
93 const TRect& aDstRect, |
|
94 const TAcceleratedBitmapInfo* aSrcColorBitmap, |
|
95 const TAcceleratedBitmapInfo* /*aSrcAlphaBitmap*/, |
|
96 const TLcdTransform& aTransform |
|
97 ); |
|
98 |
|
99 |
|
100 #endif // LCDBITBLT_H |