egl/egltest/inc/egltestcommonconversion.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19 */
       
    20 
       
    21 #ifndef __EGLTESTCOMMONCONVERSION_H__
       
    22 #define __EGLTESTCOMMONCONVERSION_H__
       
    23 
       
    24 #include <EGL/egl.h>
       
    25 #include <VG/openvg.h>
       
    26 #include <test/egltestcommonutils.h>
       
    27 
       
    28 
       
    29 class EglTestConversion
       
    30 	{
       
    31 public:
       
    32 	// all static methods
       
    33 	IMPORT_C static TEglTestConfig VgFormatToWindowSurfaceFormat(VGImageFormat aVgFormat);
       
    34 	IMPORT_C static TEglTestConfig VgFormatToPBufferSurfaceFormat(VGImageFormat aVgFormat);
       
    35 	IMPORT_C static TEglTestConfig VgFormatToPixmapSgSurfaceFormat(VGImageFormat aVgFormat);
       
    36 	
       
    37 	IMPORT_C static TUidPixelFormat VgFormatToSgPixelFormat(VGImageFormat aVgFormat);
       
    38 	IMPORT_C static VGImageFormat PixelFormatToVgFormat(TUidPixelFormat aPixelFormat);
       
    39 	
       
    40 	IMPORT_C static TDisplayMode VgFormatToDisplayMode(VGImageFormat aVgFormat);
       
    41 	IMPORT_C static TDisplayMode PixelFormatToDisplayMode(TUidPixelFormat aPixelFormat);
       
    42 
       
    43     IMPORT_C static TInt BytePerPixel(TUidPixelFormat aPixelFormat);
       
    44 	};
       
    45 
       
    46 #endif