sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
#ifndef VG_VGIBRIDGE_H
|
sl@0
|
18 |
#define VG_VGIBRIDGE_H
|
sl@0
|
19 |
|
sl@0
|
20 |
#include <vg/vgcontext.h>
|
sl@0
|
21 |
|
sl@0
|
22 |
#ifdef __SYMBIAN32__
|
sl@0
|
23 |
#include <vg/vgcontext_symbian.h>
|
sl@0
|
24 |
#endif
|
sl@0
|
25 |
|
sl@0
|
26 |
typedef int (*VGIInitializeFunc)( int width, int height, VGIColorSpace colorSpace );
|
sl@0
|
27 |
typedef int (*VGIInitializeExFunc)( int width, int height, VGIColorSpace colorSpace, int premultiplied, int conformant );
|
sl@0
|
28 |
typedef int (*VGICopyToTargetFunc)( VGIColorBufferFormat format, int bufferStride, void *buffer, int maskStride, void *mask, VGICopyToTargetHint hint );
|
sl@0
|
29 |
typedef void (*VGITerminateFunc)( void );
|
sl@0
|
30 |
typedef int (*VGIResizeFunc)( int width, int height );
|
sl@0
|
31 |
typedef int (*VGIBindToImageFunc)( VGImage image );
|
sl@0
|
32 |
typedef int (*VGIUnBindImageFunc)( void );
|
sl@0
|
33 |
|
sl@0
|
34 |
#ifdef __SYMBIAN32__
|
sl@0
|
35 |
typedef TInt (*VGISymbianInitializeFunc)( TSize aSize, VGIColorSpace aColorSpace );
|
sl@0
|
36 |
typedef TInt (*VGISymbianInitializeExFunc)( TSize aSize, VGIColorSpace aColorSpace, TBool aPremultiplied, TBool aConformant );
|
sl@0
|
37 |
typedef TInt (*VGISymbianCopyToBitmapFunc)( CFbsBitmap *aBitmap, CFbsBitmap *aMaskBitmap = NULL, VGICopyToTargetHint aHint = VGI_COPY_TRANSPARENT_PIXELS );
|
sl@0
|
38 |
typedef void (*VGISymbianTerminateFunc)();
|
sl@0
|
39 |
typedef TInt (*VGISymbianResizeFunc)( TSize aSize );
|
sl@0
|
40 |
typedef TInt (*VGISymbianBindToImageFunc)( VGImage aImage );
|
sl@0
|
41 |
typedef TInt (*VGISymbianUnBindImageFunc)();
|
sl@0
|
42 |
#endif
|
sl@0
|
43 |
|
sl@0
|
44 |
typedef struct
|
sl@0
|
45 |
{
|
sl@0
|
46 |
VGIInitializeFunc VGIInitialize;
|
sl@0
|
47 |
VGIInitializeExFunc VGIInitializeEx;
|
sl@0
|
48 |
VGICopyToTargetFunc VGICopyToTarget;
|
sl@0
|
49 |
VGITerminateFunc VGITerminate;
|
sl@0
|
50 |
VGIResizeFunc VGIResize;
|
sl@0
|
51 |
VGIBindToImageFunc VGIBindToImage;
|
sl@0
|
52 |
VGIUnBindImageFunc VGIUnBindImage;
|
sl@0
|
53 |
|
sl@0
|
54 |
#ifdef __SYMBIAN32__
|
sl@0
|
55 |
VGISymbianInitializeFunc VGISymbianInitialize;
|
sl@0
|
56 |
VGISymbianInitializeExFunc VGISymbianInitializeEx;
|
sl@0
|
57 |
VGISymbianCopyToBitmapFunc VGISymbianCopyToBitmap;
|
sl@0
|
58 |
VGISymbianTerminateFunc VGISymbianTerminate;
|
sl@0
|
59 |
VGISymbianResizeFunc VGISymbianResize;
|
sl@0
|
60 |
VGISymbianBindToImageFunc VGISymbianBindToImage;
|
sl@0
|
61 |
VGISymbianUnBindImageFunc VGISymbianUnBindImage;
|
sl@0
|
62 |
RLibrary libHandle;
|
sl@0
|
63 |
#endif
|
sl@0
|
64 |
|
sl@0
|
65 |
} VGIBridge;
|
sl@0
|
66 |
|
sl@0
|
67 |
typedef void (*VGIBridgeFunc)( VGIBridge* functions );
|
sl@0
|
68 |
|
sl@0
|
69 |
#endif /* VG_VGIBRIDGE_H */
|