1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicsaccelaration/vgi/inc/vg_vgibridge.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,69 @@
1.4 +/*
1.5 +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +#ifndef VG_VGIBRIDGE_H
1.21 +#define VG_VGIBRIDGE_H
1.22 +
1.23 +#include <vg/vgcontext.h>
1.24 +
1.25 +#ifdef __SYMBIAN32__
1.26 +#include <vg/vgcontext_symbian.h>
1.27 +#endif
1.28 +
1.29 +typedef int (*VGIInitializeFunc)( int width, int height, VGIColorSpace colorSpace );
1.30 +typedef int (*VGIInitializeExFunc)( int width, int height, VGIColorSpace colorSpace, int premultiplied, int conformant );
1.31 +typedef int (*VGICopyToTargetFunc)( VGIColorBufferFormat format, int bufferStride, void *buffer, int maskStride, void *mask, VGICopyToTargetHint hint );
1.32 +typedef void (*VGITerminateFunc)( void );
1.33 +typedef int (*VGIResizeFunc)( int width, int height );
1.34 +typedef int (*VGIBindToImageFunc)( VGImage image );
1.35 +typedef int (*VGIUnBindImageFunc)( void );
1.36 +
1.37 +#ifdef __SYMBIAN32__
1.38 +typedef TInt (*VGISymbianInitializeFunc)( TSize aSize, VGIColorSpace aColorSpace );
1.39 +typedef TInt (*VGISymbianInitializeExFunc)( TSize aSize, VGIColorSpace aColorSpace, TBool aPremultiplied, TBool aConformant );
1.40 +typedef TInt (*VGISymbianCopyToBitmapFunc)( CFbsBitmap *aBitmap, CFbsBitmap *aMaskBitmap = NULL, VGICopyToTargetHint aHint = VGI_COPY_TRANSPARENT_PIXELS );
1.41 +typedef void (*VGISymbianTerminateFunc)();
1.42 +typedef TInt (*VGISymbianResizeFunc)( TSize aSize );
1.43 +typedef TInt (*VGISymbianBindToImageFunc)( VGImage aImage );
1.44 +typedef TInt (*VGISymbianUnBindImageFunc)();
1.45 +#endif
1.46 +
1.47 +typedef struct
1.48 +{
1.49 + VGIInitializeFunc VGIInitialize;
1.50 + VGIInitializeExFunc VGIInitializeEx;
1.51 + VGICopyToTargetFunc VGICopyToTarget;
1.52 + VGITerminateFunc VGITerminate;
1.53 + VGIResizeFunc VGIResize;
1.54 + VGIBindToImageFunc VGIBindToImage;
1.55 + VGIUnBindImageFunc VGIUnBindImage;
1.56 +
1.57 +#ifdef __SYMBIAN32__
1.58 + VGISymbianInitializeFunc VGISymbianInitialize;
1.59 + VGISymbianInitializeExFunc VGISymbianInitializeEx;
1.60 + VGISymbianCopyToBitmapFunc VGISymbianCopyToBitmap;
1.61 + VGISymbianTerminateFunc VGISymbianTerminate;
1.62 + VGISymbianResizeFunc VGISymbianResize;
1.63 + VGISymbianBindToImageFunc VGISymbianBindToImage;
1.64 + VGISymbianUnBindImageFunc VGISymbianUnBindImage;
1.65 + RLibrary libHandle;
1.66 +#endif
1.67 +
1.68 +} VGIBridge;
1.69 +
1.70 +typedef void (*VGIBridgeFunc)( VGIBridge* functions );
1.71 +
1.72 +#endif /* VG_VGIBRIDGE_H */