⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 camengine.h

📁 PartiTekSDK.chm is for windows, Unix/Linux and WinCE/WinMobile platform. SDK_Manul_Symbian.pdf i
💻 H
字号:
/*
============================================================================
 Name        : CamEngine.h
 Author      : Augusta
 Version     :
 Copyright   : All rights reserved
 Description : CCamEngine declaration
============================================================================
*/

#ifndef CAMENGINE_H
#define CAMENGINE_H

// INCLUDES
#include <e32std.h>
#include <ECam.h>
#include "CamDecode_3rdAppView.h"
#include "CamDecodeDlg.h"

// CLASS DECLARATION
class CCamDecode_3rdAppView;
class CCamDecodeDlg;
/**
*  CCamEngine
* 
*/
class CCamEngine : public CBase,MCameraObserver
{
public: // Constructors and destructor

	/**
        * Destructor.
        */
	~CCamEngine();

        /**
        * Two-phased constructor.
        */
	static CCamEngine* NewL(CCamDecode_3rdAppView& aView);

        /**
        * Two-phased constructor.
        */
	static CCamEngine* NewLC(CCamDecode_3rdAppView& aView);
	
	void Reserve();
	void HandleError(TInt aError);
	void Exit();
	void SetZoomFactorL(TBool aEnable);
	TInt message(char* str);
private:

	/**
        * Constructor for performing 1st stage construction
        */
	CCamEngine(CCamDecode_3rdAppView& aView);

	/**
        * EPOC default constructor for performing 2nd stage construction
        */
	void ConstructL();

		//以下5个为继承自MCameraObserver的纯虚函数
	void ReserveComplete(TInt aError);
	void PowerOnComplete(TInt aError);
	void ViewFinderFrameReady(CFbsBitmap& aFrame);
	void ImageReady(CFbsBitmap* aBitmap,HBufC8* aData,TInt aError);
	void FrameBufferReady(MFrameBuffer* aFrameBuffer,TInt aError);

private:
    TCameraInfo iInfo;
	CCamera*    iCamera;
	TInt        iWidth; //图像宽
	TInt        iHeight;//图像高
	TSize       iSize;  //图像大小
	CCamDecode_3rdAppView* iView;
    TBool       iDecodingNow;
	TInt  iZoomFactor;
	CFbsBitmap* iBitmap;
	CCamDecodeDlg* dlg;

};

#endif // CAMENGINE_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -