author | Shimizu Satoshi <s_shimizu@isb.co.jp> |
Mon, 18 Oct 2010 19:39:25 +0900 | |
changeset 124 | 606eafc6d6a8 |
permissions | -rw-r--r-- |
124
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
1 |
/* |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
2 |
* Copyright (c) 2010 ISB. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
3 |
* All rights reserved. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
5 |
* under the terms of the "Symbian Foundation License v1.0" |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
8 |
* |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
10 |
* ISB - Initial contribution |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
11 |
* |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
12 |
* Contributors: |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
13 |
* |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
14 |
* Description: |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
15 |
* |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
16 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
17 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
18 |
#ifndef WEBCAMERACONVERT_H__ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
19 |
#define WEBCAMERACONVERT_H__ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
20 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
21 |
#include <e32def.h> |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
22 |
#include <comm.h> |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
23 |
#ifndef WEBCAMERA_UVC_H_ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
24 |
#include "webcamera_uvc.h" |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
25 |
#endif |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
26 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
27 |
const TUint KWebcameraNeutralGrayValue = 220; |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
28 |
const TUint KWebcameraColorGradation = 256; // true color. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
29 |
const TUint KWebcameraBitMask = 0x000000ff; |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
30 |
const TUint KWebcameraBitMask8 = 0x0000ff00; |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
31 |
const TUint KWebcameraBitMask16 = 0x00ff0000; |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
32 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
33 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
34 |
Perform a Convert function Base. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
35 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
36 |
class DWebCameraConvertBase : public DBase |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
37 |
{ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
38 |
public: |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
39 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
40 |
Constructor. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
41 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
42 |
DWebCameraConvertBase(TWebcameraUVC* aUvcFormat); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
43 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
44 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
45 |
Destructor. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
46 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
47 |
~DWebCameraConvertBase(); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
48 |
public: //virtual function. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
49 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
50 |
Convert FrameData to Bitmap. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
51 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
52 |
@param aInBuf [in] FrameData before conversion. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
53 |
aOutBuf [out] BimapData after conversion. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
54 |
@return KErrNotSupported. Implement in sub-class, return unsupport in base-class. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
55 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
56 |
virtual TInt ConvertData(TUint8* aInBuf, TUint8* aOutBuf); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
57 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
58 |
protected: |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
59 |
TWebcameraUVC* iUvcFormat; |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
60 |
}; |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
61 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
62 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
63 |
Perform a Convert function (Yuv -> Bitmap). |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
64 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
65 |
class DWebCameraConvertYuv : public DWebCameraConvertBase |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
66 |
{ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
67 |
public: |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
68 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
69 |
Create object. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
70 |
@return Pointer of object. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
71 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
72 |
static DWebCameraConvertYuv* NewL(); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
73 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
74 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
75 |
Constructor. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
76 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
77 |
DWebCameraConvertYuv(TWebcameraUVC* aUvcFormat); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
78 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
79 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
80 |
Destructor. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
81 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
82 |
~DWebCameraConvertYuv(); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
83 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
84 |
public: //from DWebCameraConvertBase |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
85 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
86 |
Convert FrameData to Bitmap(YUV->Bitmap). |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
87 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
88 |
@param aInBuf [in] FrameData before conversion. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
89 |
aOutBuf [out BitmapData after conversion. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
90 |
@return KErrNone. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
91 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
92 |
TInt ConvertData(TUint8* aInBuf, TUint8* aOutBuf); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
93 |
private: |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
94 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
95 |
Secondary constructor. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
96 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
97 |
void ConstructL(); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
98 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
99 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
100 |
Convert YUV to RGB. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
101 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
102 |
@param aY [in] Signal of brightness. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
103 |
aU [in] Signal of colour difference(Cb). |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
104 |
aV [in] Signal of colour difference(cr). |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
105 |
@return Pixel. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
106 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
107 |
TInt ConvertYuvToBitmap(TInt aY, TInt aU, TInt aV); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
108 |
}; |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
109 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
110 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
111 |
Convert function |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
112 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
113 |
class DWebCameraConvert : public DBase |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
114 |
{ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
115 |
public: |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
116 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
117 |
Constructor. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
118 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
119 |
DWebCameraConvert(TWebcameraUVC* aUvcFormat); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
120 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
121 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
122 |
Destructor. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
123 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
124 |
~DWebCameraConvert(); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
125 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
126 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
127 |
Decide video format, by video format from UVC class. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
128 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
129 |
@param aInBuf [in] Data to convert. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
130 |
aOutBuf [out] BitmapData after conversion. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
131 |
aVideoData [in] Format data of Video. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
132 |
@return KErrNone |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
133 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
134 |
TInt ConvertData(TUint8* aInBuf, TUint8* aOutBuf); |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
135 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
136 |
private: |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
137 |
/** |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
138 |
Store the instance. |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
139 |
*/ |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
140 |
DWebCameraConvertBase* iConvertObject; |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
141 |
}; |
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
142 |
|
606eafc6d6a8
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents:
diff
changeset
|
143 |
#endif // ECAMWEBCAMERACONVERT_H |