国产乱人伦偷精品视频免下载,久久久久国产精品一区三寸,欧美久久免费观看
電子人才網|深圳MTK培訓|深圳FPGA培訓|深圳Symbian培訓logo位置
首 頁 企業(yè)招聘 人才求職 培訓招生 高校招生 獵頭服務 高級人才 職場資訊 會員幫助 在線支付

職場中容易失業(yè)的白領     遞名片的商務禮儀     

您當前位置: 電子人才網首頁 >> Symbian和FPGA培訓資料 HR資訊訂閱

Symbian多媒體編程系列五 --攝像頭編程(上)

Symbian培訓-攝像頭編程源代碼下載(SDK第二版)

攝像頭編程
一、要點
1.CCamera類---提供操作攝像頭的各種API.
調用CCamera::NewL()靜態(tài)函數(shù)創(chuàng)建一個攝像頭對象,函數(shù)原型:
static CCamera::NewL(MCameraObserver& aObserver,TInt aCameraIndex);
第一各參數(shù)時偵聽類對象,第二個時攝像頭設備的編號。
創(chuàng)建了攝像頭對象后,應該調用它的Reserve()保留攝像頭。

2.MCameraObserver---偵聽接口類
class MCameraObserver
{
public:
virtual void ReseverComplete(TInt aError)=0;
virtual void PowerOnComplete(TInt aError)=0;
virtual void ViewFinderFrameReady(CFbsBitmao& aFrame)=0;
virtual void ImageReady(CFbsBitmao* aBitmap,HBufC8* aData,TInt aError)=0;

}
二、步驟
1.創(chuàng)建和初始化
(1)聲明observer
class CImageCapturerEngine : public CBase, public MCameraObserver
{
public: // Observer interface
class MObserver
{
public:
virtual void OnFrame(const CFbsBitmap& aFrame)=0;
virtual void OnImage(CFbsBitmap* aBitmap)=0;
virtual void OnError(TInt aError)=0;
};

public: // Static constants
static const TInt KDefaultImageWidth;
static const TInt KDefaultImageHeight;
static const CCamera::TFormat KDefaultImageFormat;
static const TInt KDefaultImageIndex;

public: // Constructors and destructor
/**
* Two-phased constructor.
*/
static CImageCapturerEngine* NewL(MObserver& aObserver);

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

private:
/**
* EPOC default constructor.
*/
CImageCapturerEngine(MObserver& aObserver);
void ConstructL();

public: // Functions from MCameraObserver
/**
* Indicates camera reservation is complete.
* Called asynchronously when CCamera::Reserve() completes.
* @param aError: An error on failure and KErrNone on success
*/
void ReserveComplete(TInt aError);

/**
* Indicates camera power on is complete.
* Called on completion of CCamera:PowerOn().
* @param aError: An error on failure and KErrNone on success
*/
void PowerOnComplete(TInt aError);

/**
* Called periodically in response to the use of
* CCamera::StartViewFinderBitmapsL().
* @param aFrame: A view finder frame
*/
void ViewFinderFrameReady(CFbsBitmap& aFrame);

/**
* Called asynchronously when CCamera::CaptureImage() completes.
* Transfers the current image from the camera to the client.
* @param aBitmap: An image held in CFbsBitmap form if this was the
* format specified in CCamera::PrepareImageCaptureL().
* @param aData: a pointer to an HBufC8 if this was the format
* specified in CCamera::PrepareImageCaptureL().
* @param aError KErrNone on success or an error code on failure
*/
void ImageReady(CFbsBitmap* aBitmap,HBufC8* aData,TInt aError);

/**
* Called asynchronously when a buffer has been filled with the
* required number of video frames by CCamera::StartVideoCapture().
* Passes a filled frame buffer to the client.
* @param aFrameBuffer: A pointer to an MFrameBuffer if successful, or
* NULL if not successful.
* @param aError: KErrNone on success or an error code on failure
*/
void FrameBufferReady(MFrameBuffer* aFrameBuffer,TInt aError);

public: // new public methods
/**
* Start the view finder
*/
void StartViewFinderL();

/**
* Stop the view finder
*/
void StopViewFinder();

/**
* Asynchronously performs still image capture.
* Calls MCameraObserver::ImageReady() when complete.
*/
void CaptureImage();

private: // new private methods
/**
* Performs setup and allocation of memory.
* Called prior to calling CaptureImage() to keep the latency of that
* function to a minimum. Needs to be called only once for multiple
* CaptureImage() calls.
* May leave with KErrNotSupported or KErrNoMemory
* @param aImageFormat: The image format, must be one of the formats
* supported (see TCameraInfo::iImageFormatsSupported)
*/
void PrepareImageCaptureL(CCamera::TFormat aImageFormat);

private: // member variables
/**
*
*/
MObserver& iObserver;

/**
* The camera object
*/
CCamera* iCamera;

/**
* The resolution of the captured image.
*/
TSize iSize;
};

#endif


完整版本請見http://www.www.yimeizhengxing.com
曙海教育
曙海嵌入式
(MTK培訓,Android培訓,FPGA培訓,DSP培訓,iPhone培訓,Symbian培訓)
上海總部電話:021-51875830 深圳:4008699035 北京:010-51292078
網址:http://www.51qianru.cn
版權所有-曙海教育 轉發(fā)請注明出處
 

相關資訊 更多資訊  
·職場中容易失業(yè)的白領 (6-17)
·遞名片的商務禮儀 (10-16)

發(fā)表評論
(帶*號為必填項)
登錄名:* Email:
標 題:*
內 容:*
發(fā)表評論須知:
一、所發(fā)文章必須遵守《互聯(lián)網電子公告服務管理規(guī)定》;
二、嚴禁發(fā)布供求代理信息、公司介紹、產品信息等廣告宣傳信息;
三、嚴禁對個人、實體、民族、國家等進行漫罵、污蔑、誹謗。

新資訊
今日暫無資訊更新

熱門資訊
·危險的試用期,你準備好了?
·[推薦]五大房產新政3月起實施
·從美女俊男案例看溝通
·國企、外企、民企之比較
·把握好你的職業(yè)生涯的每個階段
·職工醫(yī)保實際繳費年限有別
·員工薪酬 不患寡而患不均
·[推薦]吳邦國:將制定物權法勞動
·副總經理一夜成了操作工
·招聘實用政策解讀:檔案和保險問題
·連續(xù)工作滿10年可簽無固定期限勞
·用人單位未經協(xié)商不得擅自變換工種
·職場30萬年薪金領心路
·李嘉誠卸甲的理由
·為網羅人才 日本IT企業(yè)推出在家
·畢業(yè)生檔案轉遞這樣辦
·領導修煉:《中庸》的和諧共贏之道
·為即將畢業(yè)的海歸尋找歸途
·英語面試技巧 事先3項準備
·小心職業(yè)定位陷阱

關于我們 | 服務條款 | 法律聲明 | 隱私聲明 | 廣告服務 | 友情連接 | 合作代理 | 聯(lián)系我們
滬ICP備05001702號   Copyright 2003-2009 www.yimeizhengxing.com Inc All Rights Reserved.
電話:021-51875830 Email:officeoffice@126.com webmaster@www.yimeizhengxing.com 在線客服QQ:shuhaipeixun
主站蜘蛛池模板: 色天天综合色天天碰| 天天爱天天色天天干| 在线看亚洲十八禁网站| 国产99视频精品草莓免视看| 亚洲一级高清在线中文字幕| 一本大道一卡2卡三卡4卡麻豆 | 校草被c呻吟双腿打开bl双性| 在线播放真实国产乱子伦| 公添了我的下面出差牌友| 丰满人妻被黑人中出849| 韩国三级大全久久网站| 亚洲精品456在线播放| 最近的免费中文字幕视频| 女人张开腿让男人捅| 囯产精品一品二区三区| 久久成人国产精品免费软件 | freee×xx性欧美| 精品国产自在久久| 成年人性生活视频| 国产一区二区三区在线电影| 久久亚洲国产成人亚| 阿娇与冠希13分钟视频未删减| 杨钰莹欲乱小说| 国产第一页在线播放| 亚洲人成色7777在线观看不卡| 2021国产麻豆剧果冻传媒入口 | 狠狠亚洲婷婷综合色香五月排名| 久久国产乱子伦免费精品| 14小箩洗澡裸体高清视频| 波多野结衣和邻居老人| 天天摸天天爽天天碰天天弄| 免费看特级毛片| 俄罗斯小小幼儿视频大全| 丁香九月月小说图片区| 花季传媒下载免费安装app| 日本免费a级毛一片| 国产专区第一页| 久久久久亚洲av无码专区| 补课老师让我cao出水| 无码人妻丰满熟妇区免费| 啦啦啦www播放日本观看|