mmplugins/cameraplugins/source/webcamera/ecamwebcameravfactive.h
author Shimizu Satoshi <s_shimizu@isb.co.jp>
Tue, 19 Oct 2010 11:48:59 +0900
branchRCL_3
changeset 64 92a82bc706f7
parent 9 9ae0fe04e757
permissions -rw-r--r--
Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
64
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
     1
/*
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
     2
* Copyright (c) 2010 ISB.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
     3
* All rights reserved.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
     4
* This component and the accompanying materials are made available
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
     5
* under the terms of the "Symbian Foundation License v1.0"
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
     6
* which accompanies this distribution, and is available
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
     7
* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
     8
*
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
     9
* Initial Contributors:
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    10
* ISB - Initial contribution
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    11
*
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    12
* Contributors:
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    13
*
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    14
* Description:
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    15
*
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    16
*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    17
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    18
#ifndef ECAMWEBCAMERAVFACTIVE_H
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    19
#define ECAMWEBCAMERAVFACTIVE_H
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    20
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    21
#include "ecamwebcameraplugin.h"
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    22
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    23
const TInt KVfWidth     = 640;			// viewfinder image width
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    24
const TInt KVfHeight    = 480;			// viewfinder image height
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    25
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    26
const TInt KVfLineBytes = KVfWidth * 3;	// bytes of one line
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    27
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    28
/**
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    29
 *  Perform a viewfinder function.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    30
 */
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    31
class CWebCameraVfActive : public CActive
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    32
						 , public MDirectScreenAccess
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    33
	{
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    34
public:
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    35
	 /**
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    36
     * Two-phased constructor.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    37
     * @param aOwner pointer to callback object.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    38
     * @param aDriver reference to driver.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    39
     */
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    40
	static CWebCameraVfActive* NewL(MWebCameraVfActiveCallBack* aOwner, RWebcameraDevice& aDriver);
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    41
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    42
	CWebCameraVfActive(MWebCameraVfActiveCallBack* aOwner, RWebcameraDevice& aDriver);
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    43
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    44
	/**
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    45
	Destructor
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    46
	*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    47
	~CWebCameraVfActive();
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    48
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    49
	/** 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    50
	Init ViewFinder.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    51
	*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    52
	TInt InitViewFinder();
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    53
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    54
	/** 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    55
	Starts transfer of view finder data to the given portion of the screen using
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    56
	direct screen access.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    57
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    58
	The aScreenRect parameter is in screen co-ordinates and may be modified if,
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    59
	eg, the camera requires the destination to have a certain byte alignment, etc.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    60
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    61
    @param  aWs 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    62
	        Window server session.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    63
	@param  aScreenDevice 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    64
	        Screen device.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    65
	@param  aWindow 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    66
	        Displayable window.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    67
	@param  aScreenRect 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    68
	        Portion of the screen to which view finder data is to be
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    69
	        transferred. This is in screen co-ordinates and may be modified if, for example,
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    70
	        the camera requires the destination to have a certain byte alignment.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    71
	*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    72
	void StartViewFinderDirectL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindowBase& aWindow, TRect& aScreenRect, TRect& aClipRect, TUint8* aChunkBase, TInt& aChunkSize);
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    73
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    74
	/** 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    75
	Stops transfer of view finder data to the screen. 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    76
	*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    77
	void StopViewFinder();
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    78
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    79
	/** 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    80
	Queries whether the view finder is active.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    81
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    82
	@return  ETrue if the view finder is active. EFalse if the view finder is not
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    83
	         active. 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    84
	*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    85
	TBool ViewFinderActive();
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    86
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    87
private:
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    88
	/** 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    89
	from MAbortDirectScreenAccess
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    90
	
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    91
	This function is called by the window server when direct screen access must stop
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    92
	(for example because a dialogue is moved in front of the area where direct screen access is taking place).
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    93
	
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    94
	@param  aScreenDevice 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    95
			The reason why direct screen access was terminated. 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    96
	*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    97
	virtual void AbortNow(RDirectScreenAccess::TTerminationReasons aReason);
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    98
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
    99
private: 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   100
	/** 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   101
	from 	from MDirectScreenAccess
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   102
	
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   103
	This function is called by the window server as soon as direct screen access can resume.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   104
	
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   105
	@param  aScreenDevice 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   106
			Provides the reason why direct screen access was terminated. 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   107
	*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   108
	virtual void Restart(RDirectScreenAccess::TTerminationReasons aReason);
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   109
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   110
private:
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   111
	void ConstructL();
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   112
	
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   113
	/** 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   114
	Start viewfinder process.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   115
	*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   116
	void Start();
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   117
	
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   118
	/** 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   119
	Draw the image of the view finder on screen.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   120
	*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   121
	void UpdateViewL();
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   122
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   123
	/** 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   124
	bitmap data set for CFbsBitmap.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   125
	*/
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   126
	TInt BitmapDataSet(TDes8& aBitmap, CFbsBitmap& aVfBitmap);
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   127
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   128
private:
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   129
	void RunL();
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   130
	void DoCancel();
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   131
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   132
private:
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   133
	MWebCameraVfActiveCallBack*		iOwner;				///< origin of start.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   134
	TBool							iViewFinderActive;	///< Status of viewfinder
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   135
	RWebcameraDevice				iDriver;			///< Camera driver
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   136
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   137
	CFbsBitmap*						iVfBitmap;			///< Bitmap data of viewfinder.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   138
	HBufC8*							iVfBuf;				///< Data buffer of viewfinder.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   139
	TPtr8							iVfBufPtr;			///< Pointer to data buffer of viewfinder.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   140
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   141
	CDirectScreenAccess*			iDSA;				///< DirectScreenAccess object.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   142
	TRect							iScreenRect;		///< The region to draw.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   143
	TRect							iClipRect;			///< The clipping region to draw.
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   144
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   145
	TBool							iTestFlug;			///< for test
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   146
	
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   147
	TUint8*							iChuckBase;			///< 	
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   148
	TInt							iChuckRemSize;		///< 
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   149
	};
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   150
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   151
92a82bc706f7 Obtain an image of Webcamera from QEMU and add the Bitmap change display function.
Shimizu Satoshi <s_shimizu@isb.co.jp>
parents: 9
diff changeset
   152
#endif // ECAMWEBCAMERAPLUGIN_H