author | sl |
Tue, 10 Jun 2014 14:32:02 +0200 | |
changeset 1 | 260cb5ec6c19 |
permissions | -rw-r--r-- |
sl@0 | 1 |
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
sl@0 | 2 |
// All rights reserved. |
sl@0 | 3 |
// This component and the accompanying materials are made available |
sl@0 | 4 |
// under the terms of "Eclipse Public License v1.0" |
sl@0 | 5 |
// which accompanies this distribution, and is available |
sl@0 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
sl@0 | 7 |
// |
sl@0 | 8 |
// Initial Contributors: |
sl@0 | 9 |
// Nokia Corporation - initial contribution. |
sl@0 | 10 |
// |
sl@0 | 11 |
// Contributors: |
sl@0 | 12 |
// |
sl@0 | 13 |
// Description: |
sl@0 | 14 |
// |
sl@0 | 15 |
|
sl@0 | 16 |
#ifndef __TRGB_H__ |
sl@0 | 17 |
#define __TRGB_H__ |
sl@0 | 18 |
|
sl@0 | 19 |
#include <gdi.h> |
sl@0 | 20 |
#include "TGraphicsHarness.h" |
sl@0 | 21 |
|
sl@0 | 22 |
|
sl@0 | 23 |
class CTRgb : public CTGraphicsBase |
sl@0 | 24 |
{ |
sl@0 | 25 |
public: |
sl@0 | 26 |
CTRgb(CTestStep* aStep); |
sl@0 | 27 |
|
sl@0 | 28 |
protected: |
sl@0 | 29 |
//from CTGraphicsStep |
sl@0 | 30 |
virtual void RunTestCaseL(TInt aCurTestCase); |
sl@0 | 31 |
private: |
sl@0 | 32 |
void TestGray2(); |
sl@0 | 33 |
void TestGray4(); |
sl@0 | 34 |
void TestGray16(); |
sl@0 | 35 |
void TestGray256(); |
sl@0 | 36 |
void TestColor16(); |
sl@0 | 37 |
void TestColor256(); |
sl@0 | 38 |
void TestColor4K(); |
sl@0 | 39 |
void TestColor64K(); |
sl@0 | 40 |
void TestColor16M(); |
sl@0 | 41 |
void TestColor16MU(); |
sl@0 | 42 |
void TestColor16MA(); |
sl@0 | 43 |
void TestColor256Util(); |
sl@0 | 44 |
void TestColor16MAP(); |
sl@0 | 45 |
void ValidatePMAndNPM(TInt aAlpha, TInt aValue, TInt aPreMulVal, TInt aNonPreMulValue); |
sl@0 | 46 |
}; |
sl@0 | 47 |
|
sl@0 | 48 |
class CTRgbStep : public CTGraphicsStep |
sl@0 | 49 |
{ |
sl@0 | 50 |
public: |
sl@0 | 51 |
CTRgbStep(); |
sl@0 | 52 |
protected: |
sl@0 | 53 |
//from CTGraphicsStep |
sl@0 | 54 |
virtual CTGraphicsBase* CreateTestL(); |
sl@0 | 55 |
}; |
sl@0 | 56 |
|
sl@0 | 57 |
_LIT(KTRgbStep,"TRgb"); |
sl@0 | 58 |
|
sl@0 | 59 |
|
sl@0 | 60 |
#endif |