国产999精品久久久久久绿帽,欧美18av,欧美momandson
電子人才網(wǎng)|深圳MTK培訓(xùn)|深圳FPGA培訓(xùn)|深圳Symbian培訓(xùn)logo位置
首 頁 企業(yè)招聘 人才求職 培訓(xùn)招生 高校招生 獵頭服務(wù) 高級(jí)人才 職場(chǎng)資訊 會(huì)員幫助 在線支付

職場(chǎng)中容易失業(yè)的白領(lǐng)     遞名片的商務(wù)禮儀     

您當(dāng)前位置: 電子人才網(wǎng)首頁 >> Symbian和FPGA培訓(xùn)資料 HR資訊訂閱

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

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

攝像頭編程
一、要點(diǎn)
1.CCamera類---提供操作攝像頭的各種API.
調(diào)用CCamera::NewL()靜態(tài)函數(shù)創(chuàng)建一個(gè)攝像頭對(duì)象,函數(shù)原型:
static CCamera::NewL(MCameraObserver& aObserver,TInt aCameraIndex);
第一各參數(shù)時(shí)偵聽類對(duì)象,第二個(gè)時(shí)攝像頭設(shè)備的編號(hào)。
創(chuàng)建了攝像頭對(duì)象后,應(yīng)該調(diào)用它的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


完整版本請(qǐng)見http://www.www.yimeizhengxing.com
曙海教育
曙海嵌入式
(MTK培訓(xùn),Android培訓(xùn),FPGA培訓(xùn),DSP培訓(xùn),iPhone培訓(xùn),Symbian培訓(xùn))
上?偛侩娫:021-51875830 深圳:4008699035 北京:010-51292078
網(wǎng)址:http://www.51qianru.cn
版權(quán)所有-曙海教育 轉(zhuǎn)發(fā)請(qǐng)注明出處
 

相關(guān)資訊 更多資訊  
·職場(chǎng)中容易失業(yè)的白領(lǐng) (6-17)
·遞名片的商務(wù)禮儀 (10-16)

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

新資訊
今日暫無資訊更新

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

關(guān)于我們。服務(wù)條款 | 法律聲明。隱私聲明。廣告服務(wù)。友情連接。合作代理。聯(lián)系我們
滬ICP備05001702號(hào)   Copyright 2003-2009 www.yimeizhengxing.com Inc All Rights Reserved.
電話:021-51875830 Email:officeoffice@126.com webmaster@www.yimeizhengxing.com 在線客服QQ:shuhaipeixun
主站蜘蛛池模板: 蜜桃精品免费久久久久影院| 成人av鲁丝片一区二区免费| 婷婷色在线播放| 四虎影视久久久免费| 中文字幕在线观看亚洲视频| 18禁裸乳无遮挡啪啪无码免费| 波多野结衣办公室在线| 夜夜爽免费视频| 亚洲精品无码专区在线播放| av一本久道久久综合久久鬼色| 男人的天堂视频网站清风阁| 好吊操这里只有精品| 好男人官网资源在线观看| 免费精品99久久国产综合精品| xxxx日本黄色| 狠狠综合久久综合网站| 国外bbw免费视频| 亚洲国产欧洲综合997久久| 亚洲五月综合网色九月色| 最近日本字幕免费高清| 强波多野结衣痴汉电车| 免费中国jlzzjlzz在线播放| 久久精品人人做人人爽电影蜜月| 韩国三级中文字幕hd久久精品| 无码毛片视频一区二区本码| 午夜福利无码不卡在线观看| ssni-559侵犯新任女教师| 欧美牲交a欧美牲交aⅴ免费下载| 国产第一福利136视频导航| 久久综合精品国产二区无码| 菠萝蜜视频入口| 国产精品美女一区二区视频 | 一区二区精品久久| 男女一进一出猛进式抽搐视频| 国产成人av免费观看| 中文字幕不卡在线观看| 理论秋霞在线看免费| 国产砖码砖专区| jizz国产在线播放| 欧美一级做a影片爱橙影院| 国产做a爰片久久毛片a|