os/graphics/openvg/openvginterface/test/topenvg11_stub.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/openvg/openvginterface/test/topenvg11_stub.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,130 @@
     1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// This test stub has been manually created based on the .def file generator
    1.18 +// utility available in ../group/openvg11
    1.19 +//
    1.20 +//
    1.21 +
    1.22 +#include <VG/openvg.h>
    1.23 +#include <VG/vgu.h>
    1.24 +
    1.25 +#include <e32def.h>
    1.26 +#include <e32uid.h>
    1.27 +    
    1.28 +#ifdef __cplusplus
    1.29 +extern "C" {
    1.30 +#endif
    1.31 +
    1.32 +
    1.33 +// --------------------------------------------------------------------------------------------------------------------------------------------
    1.34 +// OpenVG VG functions
    1.35 +EXPORT_C void  vgAppendPath(VGPath /*dstPath*/, VGPath /*srcPath*/) { }
    1.36 +EXPORT_C void  vgAppendPathData(VGPath /*dstPath*/, VGint /*numSegments*/, const VGubyte * /*pathSegments*/, const void * /*pathData*/) { }
    1.37 +EXPORT_C VGImage  vgChildImage(VGImage /*parent*/, VGint /*x*/, VGint /*y*/, VGint /*width*/, VGint /*height*/) { return 0; }
    1.38 +EXPORT_C void  vgClear(VGint /*x*/, VGint /*y*/, VGint /*width*/, VGint /*height*/) { }
    1.39 +EXPORT_C void  vgClearGlyph(VGFont /*font*/, VGuint /*glyphIndex*/) { }
    1.40 +EXPORT_C void  vgClearImage(VGImage /*image*/, VGint /*x*/, VGint /*y*/, VGint /*width*/, VGint /*height*/) { }
    1.41 +EXPORT_C void  vgClearPath(VGPath /*path*/, VGbitfield /*capabilities*/) { }
    1.42 +EXPORT_C void  vgColorMatrix(VGImage /*dst*/, VGImage /*src*/, const VGfloat * /*matrix*/) { }
    1.43 +EXPORT_C void  vgConvolve(VGImage /*dst*/, VGImage /*src*/, VGint /*kernelWidth*/, VGint /*kernelHeight*/, VGint /*shiftX*/, VGint /*shiftY*/, const VGshort * /*kernel*/, VGfloat /*scale*/, VGfloat /*bias*/, VGTilingMode /*tilingMode*/) { }
    1.44 +EXPORT_C void  vgCopyImage(VGImage /*dst*/, VGint /*dx*/, VGint /*dy*/, VGImage /*src*/, VGint /*sx*/, VGint /*sy*/, VGint /*width*/, VGint /*height*/, VGboolean /*dither*/) { }
    1.45 +EXPORT_C void  vgCopyMask(VGMaskLayer /*maskLayer*/, VGint /*sx*/, VGint /*sy*/, VGint /*dx*/, VGint /*dy*/, VGint /*width*/, VGint /*height*/) { }
    1.46 +EXPORT_C void  vgCopyPixels(VGint /*dx*/, VGint /*dy*/, VGint /*sx*/, VGint /*sy*/, VGint /*width*/, VGint /*height*/) { }
    1.47 +EXPORT_C VGFont  vgCreateFont(VGint /*glyphCapacityHint*/) { return 0; }
    1.48 +EXPORT_C VGImage  vgCreateImage(VGImageFormat /*format*/, VGint /*width*/, VGint /*height*/, VGbitfield /*allowedQuality*/) { return 0; }
    1.49 +EXPORT_C VGMaskLayer  vgCreateMaskLayer(VGint /*width*/, VGint /*height*/) { return 0; }
    1.50 +EXPORT_C VGPaint  vgCreatePaint(void) { return 0; }
    1.51 +EXPORT_C VGPath  vgCreatePath(VGint /*pathFormat*/, VGPathDatatype /*datatype*/, VGfloat /*scale*/, VGfloat /*bias*/, VGint /*segmentCapacityHint*/, VGint /*coordCapacityHint*/, VGbitfield /*capabilities*/) { return 0; }
    1.52 +EXPORT_C void  vgDestroyFont(VGFont /*font*/) { }
    1.53 +EXPORT_C void  vgDestroyImage(VGImage /*image*/) { }
    1.54 +EXPORT_C void  vgDestroyMaskLayer(VGMaskLayer /*maskLayer*/) { }
    1.55 +EXPORT_C void  vgDestroyPaint(VGPaint /*paint*/) { }
    1.56 +EXPORT_C void  vgDestroyPath(VGPath /*path*/) { }
    1.57 +EXPORT_C void  vgDrawGlyph(VGFont /*font*/, VGuint /*glyphIndex*/, VGbitfield /*paintModes*/, VGboolean /*allowAutoHinting*/) { }
    1.58 +EXPORT_C void  vgDrawGlyphs(VGFont /*font*/, VGint /*glyphCount*/, const VGuint * /*glyphIndices*/, const VGfloat * /*adjustments_x*/, const VGfloat * /*adjustments_y*/, VGbitfield /*paintModes*/, VGboolean /*allowAutoHinting*/) { }
    1.59 +EXPORT_C void  vgDrawImage(VGImage /*image*/) { }
    1.60 +EXPORT_C void  vgDrawPath(VGPath /*path*/, VGbitfield /*paintModes*/) { }
    1.61 +EXPORT_C void  vgFillMaskLayer(VGMaskLayer /*maskLayer*/, VGint /*x*/, VGint /*y*/, VGint /*width*/, VGint /*height*/, VGfloat /*value*/) { }
    1.62 +EXPORT_C void  vgFinish(void) { }
    1.63 +EXPORT_C void  vgFlush(void) { }
    1.64 +EXPORT_C void  vgGaussianBlur(VGImage /*dst*/, VGImage /*src*/, VGfloat /*stdDeviationX*/, VGfloat /*stdDeviationY*/, VGTilingMode /*tilingMode*/) { }
    1.65 +EXPORT_C VGuint  vgGetColor(VGPaint /*paint*/) { return 0; }
    1.66 +EXPORT_C VGErrorCode  vgGetError(void) { return VG_ILLEGAL_ARGUMENT_ERROR; }
    1.67 +EXPORT_C VGfloat  vgGetf(VGParamType /*type*/) { return 0; }
    1.68 +EXPORT_C void  vgGetfv(VGParamType /*type*/, VGint /*count*/, VGfloat * /*values*/) { }
    1.69 +EXPORT_C VGint  vgGeti(VGParamType /*type*/) { return 0; }
    1.70 +EXPORT_C void  vgGetImageSubData(VGImage /*image*/, void * /*data*/, VGint /*dataStride*/, VGImageFormat /*dataFormat*/, VGint /*x*/, VGint /*y*/, VGint /*width*/, VGint /*height*/) { }
    1.71 +EXPORT_C void  vgGetiv(VGParamType /*type*/, VGint /*count*/, VGint * /*values*/) { }
    1.72 +EXPORT_C void  vgGetMatrix(VGfloat * /*m*/) { }
    1.73 +EXPORT_C VGPaint  vgGetPaint(VGPaintMode /*paintMode*/) { return 0; }
    1.74 +EXPORT_C VGfloat  vgGetParameterf(VGHandle /*object*/, VGint /*paramType*/) { return 0; }
    1.75 +EXPORT_C void  vgGetParameterfv(VGHandle /*object*/, VGint /*paramType*/, VGint /*count*/, VGfloat * /*values*/) { }
    1.76 +EXPORT_C VGint  vgGetParameteri(VGHandle /*object*/, VGint /*paramType*/) { return 0; }
    1.77 +EXPORT_C void  vgGetParameteriv(VGHandle /*object*/, VGint /*paramType*/, VGint /*count*/, VGint * /*values*/) { }
    1.78 +EXPORT_C VGint  vgGetParameterVectorSize(VGHandle /*object*/, VGint /*paramType*/) { return 0; }
    1.79 +EXPORT_C VGImage  vgGetParent(VGImage /*image*/) { return 0; }
    1.80 +EXPORT_C VGbitfield  vgGetPathCapabilities(VGPath /*path*/) { return 0; }
    1.81 +EXPORT_C void  vgGetPixels(VGImage /*dst*/, VGint /*dx*/, VGint /*dy*/, VGint /*sx*/, VGint /*sy*/, VGint /*width*/, VGint /*height*/) { }
    1.82 +EXPORT_C const VGubyte *  vgGetString(VGStringID /*name*/) { return NULL; }
    1.83 +EXPORT_C VGint  vgGetVectorSize(VGParamType /*type*/) { return 0; }
    1.84 +EXPORT_C VGHardwareQueryResult  vgHardwareQuery (VGHardwareQueryType /*key*/, VGint /*setting*/) { return VG_HARDWARE_UNACCELERATED; }
    1.85 +EXPORT_C void  vgImageSubData(VGImage /*image*/, const void * /*data*/, VGint /*dataStride*/, VGImageFormat /*dataFormat*/, VGint /*x*/, VGint /*y*/, VGint /*width*/, VGint /*height*/) { }
    1.86 +EXPORT_C VGboolean  vgInterpolatePath(VGPath /*dstPath*/, VGPath /*startPath*/, VGPath /*endPath*/, VGfloat /*amount*/) { return VG_FALSE; }
    1.87 +EXPORT_C void  vgLoadIdentity(void) { }
    1.88 +EXPORT_C void  vgLoadMatrix(const VGfloat * /*m*/) { }
    1.89 +EXPORT_C void  vgLookup(VGImage /*dst*/, VGImage /*src*/, const VGubyte * /*redLUT*/, const VGubyte * /*greenLUT*/, const VGubyte * /*blueLUT*/, const VGubyte * /*alphaLUT*/, VGboolean /*outputLinear*/, VGboolean /*outputPremultiplied*/) { }
    1.90 +EXPORT_C void  vgLookupSingle(VGImage /*dst*/, VGImage /*src*/, const VGuint * /*lookupTable*/, VGImageChannel /*sourceChannel*/, VGboolean /*outputLinear*/, VGboolean /*outputPremultiplied*/) { }
    1.91 +EXPORT_C void  vgMask(VGHandle /*mask*/, VGMaskOperation /*operation*/, VGint /*x*/, VGint /*y*/, VGint /*width*/, VGint /*height*/) { }
    1.92 +EXPORT_C void  vgModifyPathCoords(VGPath /*dstPath*/, VGint /*startIndex*/, VGint /*numSegments*/, const void * /*pathData*/) { }
    1.93 +EXPORT_C void  vgMultMatrix(const VGfloat * /*m*/) { }
    1.94 +EXPORT_C void  vgPaintPattern(VGPaint /*paint*/, VGImage /*pattern*/) { }
    1.95 +EXPORT_C void  vgPathBounds(VGPath /*path*/, VGfloat * /*minX*/, VGfloat * /*minY*/, VGfloat * /*width*/, VGfloat * /*height*/) { }
    1.96 +EXPORT_C VGfloat vgPathLength(VGPath /*path*/, VGint /*startSegment*/, VGint /*numSegments*/) { return 0; }
    1.97 +EXPORT_C void  vgPathTransformedBounds(VGPath /*path*/, VGfloat * /*minX*/, VGfloat * /*minY*/, VGfloat * /*width*/, VGfloat * /*height*/) { }
    1.98 +EXPORT_C void  vgPointAlongPath(VGPath /*path*/, VGint /*startSegment*/, VGint /*numSegments*/, VGfloat /*distance*/, VGfloat * /*x*/, VGfloat * /*y*/, VGfloat * /*tangentX*/, VGfloat * /*tangentY*/) { }
    1.99 +EXPORT_C void  vgReadPixels(void * /*data*/, VGint /*dataStride*/, VGImageFormat /*dataFormat*/, VGint /*sx*/, VGint /*sy*/, VGint /*width*/, VGint /*height*/) { }
   1.100 +EXPORT_C void  vgRemovePathCapabilities(VGPath /*path*/, VGbitfield /*capabilities*/) { }
   1.101 +EXPORT_C void  vgRenderToMask(VGPath /*path*/, VGbitfield /*paintModes*/, VGMaskOperation /*operation*/) { }
   1.102 +EXPORT_C void  vgRotate(VGfloat /*angle*/) { }
   1.103 +EXPORT_C void  vgScale(VGfloat /*sx*/, VGfloat /*sy*/) { }
   1.104 +EXPORT_C void  vgSeparableConvolve(VGImage /*dst*/, VGImage /*src*/, VGint /*kernelWidth*/, VGint /*kernelHeight*/, VGint /*shiftX*/, VGint /*shiftY*/, const VGshort * /*kernelX*/, const VGshort * /*kernelY*/, VGfloat /*scale*/, VGfloat /*bias*/, VGTilingMode /*tilingMode*/) { }
   1.105 +EXPORT_C void  vgSetColor(VGPaint /*paint*/, VGuint /*rgba*/) { }
   1.106 +EXPORT_C void  vgSetf (VGParamType /*type*/, VGfloat /*value*/) { }
   1.107 +EXPORT_C void  vgSetfv(VGParamType /*type*/, VGint /*count*/, const VGfloat * /*values*/) { }
   1.108 +EXPORT_C void  vgSetGlyphToImage(VGFont /*font*/, VGuint /*glyphIndex*/, VGImage /*image*/, const VGfloat /*glyphOrigin*/ [2], const VGfloat /*escapement*/[2]) { }
   1.109 +EXPORT_C void  vgSetGlyphToPath(VGFont /*font*/, VGuint /*glyphIndex*/, VGPath /*path*/, VGboolean /*isHinted*/, const VGfloat /*glyphOrigin*/[2], const VGfloat /*escapement*/[2]) { }
   1.110 +EXPORT_C void  vgSeti (VGParamType /*type*/, VGint /*value*/) { }
   1.111 +EXPORT_C void  vgSetiv(VGParamType /*type*/, VGint /*count*/, const VGint * /*values*/) { }
   1.112 +EXPORT_C void  vgSetPaint(VGPaint /*paint*/, VGbitfield /*paintModes*/) { }
   1.113 +EXPORT_C void  vgSetParameterf(VGHandle /*object*/, VGint /*paramType*/, VGfloat /*value*/) { }
   1.114 +EXPORT_C void  vgSetParameterfv(VGHandle /*object*/, VGint /*paramType*/, VGint /*count*/, const VGfloat * /*values*/) { }
   1.115 +EXPORT_C void  vgSetParameteri(VGHandle /*object*/, VGint /*paramType*/, VGint /*value*/) { }
   1.116 +EXPORT_C void  vgSetParameteriv(VGHandle /*object*/, VGint /*paramType*/, VGint /*count*/, const VGint * /*values*/) { }
   1.117 +EXPORT_C void  vgSetPixels(VGint /*dx*/, VGint /*dy*/, VGImage /*src*/, VGint /*sx*/, VGint /*sy*/, VGint /*width*/, VGint /*height*/) { }
   1.118 +EXPORT_C void  vgShear(VGfloat /*shx*/, VGfloat /*shy*/) { }
   1.119 +EXPORT_C void  vgTransformPath(VGPath /*dstPath*/, VGPath /*srcPath*/) { }
   1.120 +EXPORT_C void  vgTranslate(VGfloat /*tx*/, VGfloat /*ty*/) { }
   1.121 +EXPORT_C void  vgWritePixels(const void * /*data*/, VGint /*dataStride*/, VGImageFormat /*dataFormat*/, VGint /*dx*/, VGint /*dy*/, VGint /*width*/, VGint /*height*/) { }
   1.122 +
   1.123 +
   1.124 +
   1.125 +
   1.126 +// --------------------------------------------------------------------------------------------------------------------------------------------
   1.127 +// END: OpenVG VG
   1.128 +// --------------------------------------------------------------------------------------------------------------------------------------------
   1.129 +
   1.130 +
   1.131 +#ifdef __cplusplus
   1.132 +}
   1.133 +#endif