|
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 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef VIDEOEDITORTESTIMAGECONVERTER_H |
|
21 #define VIDEOEDITORTESTIMAGECONVERTER_H |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include <e32base.h> |
|
25 #include <gdi.h> |
|
26 |
|
27 // CLASS FORWARDS |
|
28 class CFbsBitmap; |
|
29 |
|
30 // TYPEDEFS |
|
31 typedef TRgb ( *TVSColorReadFunc ) ( TAny*& ); |
|
32 |
|
33 /** |
|
34 * ?one_line_short_description. |
|
35 * ?other_description_lines |
|
36 * |
|
37 * @lib ?library |
|
38 * @since ?Series60_version |
|
39 */ |
|
40 class CVSFbsBitmapYUV420Converter : public CBase |
|
41 { |
|
42 public: |
|
43 /** |
|
44 * ?member_description. |
|
45 * @since ?Series60_version |
|
46 * @param ?arg1 ?description |
|
47 * @return ?description |
|
48 */ |
|
49 static CVSFbsBitmapYUV420Converter* NewL( const CFbsBitmap& aBitmap ); |
|
50 |
|
51 /** |
|
52 * ?member_description. |
|
53 * @since ?Series60_version |
|
54 * @param ?arg1 ?description |
|
55 * @return ?description |
|
56 */ |
|
57 ~CVSFbsBitmapYUV420Converter(); |
|
58 |
|
59 /** |
|
60 * ?member_description. |
|
61 * @since ?Series60_version |
|
62 * @param ?arg1 ?description |
|
63 * @return ?description |
|
64 */ |
|
65 void SetSourceL( const CFbsBitmap& aBitmap ); |
|
66 |
|
67 /** |
|
68 * ?member_description. |
|
69 * @since ?Series60_version |
|
70 * @param ?arg1 ?description |
|
71 * @return ?description |
|
72 */ |
|
73 void ProcessL(); |
|
74 |
|
75 /** |
|
76 * ?member_description. |
|
77 * @since ?Series60_version |
|
78 * @param ?arg1 ?description |
|
79 * @return ?description |
|
80 */ |
|
81 TPtrC8 YUVData() const; |
|
82 |
|
83 private: // internal |
|
84 /** |
|
85 * ?member_description. |
|
86 * @since ?Series60_version |
|
87 * @param ?arg1 ?description |
|
88 * @return ?description |
|
89 */ |
|
90 void ConstructL( const CFbsBitmap& aBitmap ); |
|
91 |
|
92 /** |
|
93 * ?member_description. |
|
94 * @since ?Series60_version |
|
95 * @param ?arg1 ?description |
|
96 * @return ?description |
|
97 */ |
|
98 void ReConstructL( const CFbsBitmap& aBitmap ); |
|
99 |
|
100 /** |
|
101 * ?member_description. |
|
102 * @since ?Series60_version |
|
103 * @param ?arg1 ?description |
|
104 * @return ?description |
|
105 */ |
|
106 void DoProcess( TVSColorReadFunc aReadFunction ); |
|
107 |
|
108 private: |
|
109 // ?one_line_short_description_of_data |
|
110 TSize iSize; |
|
111 |
|
112 // ?one_line_short_description_of_data |
|
113 CFbsBitmap* iSource; // owned, duplicate |
|
114 |
|
115 // ?one_line_short_description_of_data |
|
116 HBufC8* iYUVData; // owned |
|
117 |
|
118 // ?one_line_short_description_of_data |
|
119 TPtrC8 iY; |
|
120 |
|
121 // ?one_line_short_description_of_data |
|
122 TPtrC8 iU; |
|
123 |
|
124 // ?one_line_short_description_of_data |
|
125 TPtrC8 iV; |
|
126 }; |
|
127 |
|
128 #endif // CVTIMAGECONVERTER_H |
|
129 |
|
130 // End of File |