First public contribution.
1 // Copyright (c) 2007-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 #ifndef __EGLTESTCOMMONCONVERSION_H__
22 #define __EGLTESTCOMMONCONVERSION_H__
25 #include <VG/openvg.h>
26 #include <test/egltestcommonutils.h>
29 class EglTestConversion
33 IMPORT_C static TEglTestConfig VgFormatToWindowSurfaceFormat(VGImageFormat aVgFormat);
34 IMPORT_C static TEglTestConfig VgFormatToPBufferSurfaceFormat(VGImageFormat aVgFormat);
35 IMPORT_C static TEglTestConfig VgFormatToPixmapSgSurfaceFormat(VGImageFormat aVgFormat);
37 IMPORT_C static TUidPixelFormat VgFormatToSgPixelFormat(VGImageFormat aVgFormat);
38 IMPORT_C static VGImageFormat PixelFormatToVgFormat(TUidPixelFormat aPixelFormat);
40 IMPORT_C static TDisplayMode VgFormatToDisplayMode(VGImageFormat aVgFormat);
41 IMPORT_C static TDisplayMode PixelFormatToDisplayMode(TUidPixelFormat aPixelFormat);
43 IMPORT_C static TInt BytePerPixel(TUidPixelFormat aPixelFormat);