|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * The YUV-to-something converter base class CYuvConverter definition. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 #ifndef __YUVCONVERTER_H__ |
|
23 #define __YUVCONVERTER_H__ |
|
24 |
|
25 |
|
26 // INCLUDES |
|
27 |
|
28 #ifndef __E32BASE_H__ |
|
29 #include <e32base.h> |
|
30 #endif |
|
31 |
|
32 |
|
33 // CLASS DEFINITIONS |
|
34 |
|
35 class CYuvConverter : public CBase |
|
36 { |
|
37 public: |
|
38 // CBase provides a virtual destructor |
|
39 |
|
40 // Second-phase constructor |
|
41 virtual void ConstructL(TUint aWidth, TUint aHeight, TUint aMaxWidth, TUint aMaxHeight) = 0; |
|
42 |
|
43 // Set conversion gamma |
|
44 virtual void SetGamma(TInt aGamma) = 0; |
|
45 |
|
46 // Set Brightness & Contrast setting. All yuv2rgb classes may not support. |
|
47 // This might suit better than SetGamma for displays typically used in Series60 devices. |
|
48 virtual void SetBrightnessContrast(TInt ) { }; |
|
49 |
|
50 // Do the conversion |
|
51 virtual void Convert(const TUint8 *aYBuf, const TUint8 *aUBuf, |
|
52 const TUint8 *aVBuf, |
|
53 TUint aBufWidth, TUint aBufHeight, |
|
54 TUint8 *aTarget, TUint aTargetScanlineLength) = 0; |
|
55 }; |
|
56 |
|
57 #endif // __YUVCONVERTER_H__ |
|
58 |
|
59 // End of File |