|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: The YUV-to-something converter base class CYuvConverter definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __YUVCONVERTER_H__ |
|
22 #define __YUVCONVERTER_H__ |
|
23 |
|
24 |
|
25 // INCLUDES |
|
26 |
|
27 #ifndef __E32BASE_H__ |
|
28 #include <e32base.h> |
|
29 #endif |
|
30 |
|
31 |
|
32 // CLASS DEFINITIONS |
|
33 |
|
34 class CYuvConverter : public CBase |
|
35 { |
|
36 public: |
|
37 // CBase provides a virtual destructor |
|
38 |
|
39 // Second-phase constructor |
|
40 virtual void ConstructL(TUint aWidth, TUint aHeight, TUint aMaxWidth, TUint aMaxHeight) = 0; |
|
41 |
|
42 // Set conversion gamma |
|
43 virtual void SetGamma(TInt aGamma) = 0; |
|
44 |
|
45 // Set Brightness & Contrast setting. All yuv2rgb classes may not support. |
|
46 // This might suit better than SetGamma for displays typically used in Series60 devices. |
|
47 virtual void SetBrightnessContrast(TInt ) { }; |
|
48 |
|
49 // Do the conversion |
|
50 virtual void Convert(const TUint8 *aYBuf, const TUint8 *aUBuf, |
|
51 const TUint8 *aVBuf, |
|
52 TUint aBufWidth, TUint aBufHeight, |
|
53 TUint8 *aTarget, TUint aTargetScanlineLength) = 0; |
|
54 }; |
|
55 |
|
56 #endif // __YUVCONVERTER_H__ |
|
57 |
|
58 // End of File |