文档库 最新最全的文档下载
当前位置:文档库 › Camera_Module_Detailed_Design

Camera_Module_Detailed_Design

Camera_Module_Detailed_Design
Camera_Module_Detailed_Design

Camera Modul e Detailed Design

Design Dept: Software Dept Doc No:

Author:Jingo Create Date:2009-12-8 Reviewer:Date of Review:

Approved By:Date of Approve:

REACH Tech (Xiam en) Co., Ltd.

History

Content

CAMERA MODULE DETAILED DE S IGN (1)

1.INTRODUCTION (4)

1.1.S COPE (4)

1.2.T ARGET A UDIENCE (4)

1.3.R EFERENCES (4)

1.4.G LOSSAR Y (4)

2.SUMMARY (4)

3.SYSTEM ARCHITECTURE (5)

4.RELATIONS HIP WITH ASSOCIATED MODULES (6)

4.1.R EQUIREMENT FOR C AMERA FR OM ASSOCIA TED MODULES (6)

4.2.R EQUIREMENT FOR ASSOCIATED MODULES FROM C AMERA (7)

5.FUNCTION DE S CRIPTION OF S UB-MODULES (8)

5.1.A PP E NGINE (8)

5.2.E XTENSION (8)

6.SEQUENCE CHART OF MAIN FUNCTION (10)

6.1.F UNC TION POINT OF INTER NAL INTERAC TION. (10)

6.2.F UNC TION POINT OF EXTER NAL INTERAC TION (18)

7.DATA S TRUCTUR E S (21)

7.1.C AMERA U TILITY (21)

7.2.IR EACH C AMERA (22)

8.PARTICULAR DESCRIPTION OF COMPONENT API (24)

8.1.E XTENSION (24)

1. Introduction

1.1. Scope

This docum ent describes the design architecture of camera module. It details the different components of camera module, interaction between different components. It also details the interfaces required from other modules and the interfaces provided by camera to other modules.

1.2. Target Audience

This document is targeted for Engineers to develop camera module, Other project members and Project Manager.

1.3. References

Brew? Mobile Platform API Reference

Using_a_camera.chm

1.4. Glossary

2. Summary

Cam era module is mainly involved in DC snapshoting and DV recording, user can browse saved picture or video and delete or rename these https://www.wendangku.net/doc/633896060.html,e Email,MMS,Bluetooth to send file.

3. System Architecture

Figure 1:Camera module system architecture

Figure 2:Components relationship

4. Relationship with associated modules

Figure 3:Relationship with associated module

4.1. Requirement for Camera from associated modules

4.2. Requirement for associated modules from Camera

5. Function Description of sub-modules

5.1. AppEngine

5.1.1.CameraApp:

CameraApp implement initialize and destroy applet,it also produce applet suspend and resume event.CameraApp invoke interface of CameraUtility.

Figure 4:S tartup of CameraApp

5.2. Extension

5.2.1.CameraUtility:

CameraUtility produce operation,logic control,UI of the camera module.

CameraUtility procide interface to MMS Email Bluetooth module.

It invoke interface of IReachCamera to use camera function.

5.2.2.IReachCamera:

IReachCamera is a capsulation of the ICAMERA interface, it implement all function of latter.Such as CReachCamera_IReachCamera_StartPreview. To instead of ICAMERA’s state mechanism, Reach create a state mechanism for IReachCmaera.

5.2.2.1. ReachCamera State Mechanism:

There are 12 states for the state machine to description camera status:

CAM_READY,

CAM_STARTPREVIEW,

CAM_PREVIEW,

CAM_STOPPREVIEW,

CAM_PREVIEWPAUSE,

CAM_STARTSNAPSHOT,

CAM_SNAPSHOT,

CAM_STARTRECORD,

CAM_STARTINGRECORD,

CAM_RECORDING,

CAM_RECORDPAUSED,

CAM_STOPRECORD,

6. Sequence chart of main function

6.1. Function point of internal interaction.

Figure5:Event communicate between CameraUtility and IReachCamera CameraUtility afferent NotifyHandle callback ICBCamera_OnEvent() on the time it create IReachCamera instance.

The purpose of function ICBCamera_OnEvent() is process CameraNotify which sent by IReachCamera.

Figure 6:Frame data communicate between CameraUtility and IReachCamera

IReachCamera invoke Callback CameraUtil_ICBReachCamera_OnPaint() which provided by CameraUtility to display frame on UI.

6.1.1.Camera startup part1:

Figure 7:Sequence Diagram - S tartup camera part 1

6.1.2.Camera startup part2:

Figure 8: Sequence Diagram - Startup camera part 2

6.1.3.Camera startup part3:

Figure 9: Sequence Diagram - Startup camera part 3

6.1.4.operation Snapshot→ Save picture→ Return preview:

Figure 10: Sequence Diagram - operation Snapshot→ Save picture→ Return preview

6.1.5.operation Snapshot→Del picture in saveform→Return preview:

Figure 11: Squence Diagram - operation Snapshot→Del picture in saveform→Return

preview

6.1.6.operation Snapshot→Send by MMS→Enter MMS interface:

Figure 12:Squence Diagram - operation Snapshot→Send by MMS→Enter MMS interface

6.1.

7.operation Recordmovie→Stoprecord→Enter saveform:

Figure 13:Squence Diagram - operation Recordmovie→S toprecord→Enter saveform

6.2. Function point of external interaction

Figure14:Function point of external interaction

Case 1: When user select “Camera”icon in the main menu or press “Camera”key, CameraApp will be started.

Case 2:If other module(such as MMS,PB,Email) want to use function of camera module,they must invoke interface provided by CameraUtility. In this situation,to procedure SUSPEND and RESUME event,caller must invoke CameraUtility interface ITouchCameraUtil_OnSuspend() and ITouchCameraUtil_OnResume() in their eventhandle function.

6.2.1. Squence Diagram of Camera module invoke external module

6.2.1.1. Use BlueTooth to send a picture file.

Figure 15: Squence Diagram - Camera module use Bluetooth to send a picture file

6.2.2. Squence Diagram of external module invoke Camera module 6.2.2.1. In Mseeage module,insert a new picture/movie as attachment.

Figure 16: Squence Diagram - In Mseeage module,insert a new picture/movie as

attachment

相关文档