CCameraAppUi Class Reference

List of all members.

Public Member Functions

void ConstructL ()
 ~CCameraAppUi ()
void ViewFinderL ()
void CaptureImageL ()
void CaptureVideoL ()
virtual void HandleEvent (const TECAMEvent &aEvent)
virtual void ViewFinderReady (MCameraBuffer &aCameraBuffer, TInt aError)
virtual void ImageBufferReady (MCameraBuffer &aCameraBuffer, TInt aError)
virtual void VideoBufferReady (MCameraBuffer &aCameraBuffer, TInt aError)
void AdvancedCamFeaturesL ()
void SnapShotL ()
void DirectViewFinderL ()
void HistogramL ()
void OverLayL ()
void PresetL ()
void ImageProcessingL ()


Detailed Description

CCameraAppUi handles application-wide aspects of the application's UI.

Definition at line 90 of file CameraExample.h.


Constructor & Destructor Documentation

CCameraAppUi::~CCameraAppUi (  ) 

The application UI class owns the view, and is responsible for destroying it.

Definition at line 147 of file Camera_AppUi.cpp.


Member Function Documentation

void CCameraAppUi::ConstructL (  ) 

Second phase constructor of the application UI class. It creates and owns a single view.

Definition at line 123 of file Camera_AppUi.cpp.

void CCameraAppUi::ViewFinderL (  ) 

Transfers the view finder data to the given portion of the screen using direct screen access and continues to transfer until its called again. KErrNotSupported KErrNotReady if Reserve() has not been called.

Definition at line 231 of file Camera_AppUi.cpp.

void CCameraAppUi::CaptureImageL (  ) 

Request asynchronous still image capturing. The MCameraObserver2::ImageBufferReady() will be called when request is completed. KErrNotSupported KErrNoMemory KErrInUse KErrNotReady.

Definition at line 258 of file Camera_AppUi.cpp.

void CCameraAppUi::CaptureVideoL (  ) 

Captures video. KErrNotSupported, KErrNoMemory.

Definition at line 282 of file Camera_AppUi.cpp.

void CCameraAppUi::HandleEvent ( const TECAMEvent &  aEvent  )  [virtual]

Indicates the completion of a camera event Implementations of MCameraObserver2 should ignore events which are not recognised and should not leave.

Parameters:
aEvent A reference to a TECAMEvent. This can be completion of a call to Reserve() or a call to PowerOn() or a notification that the client has lost control of the camera. The event contains a uid identifying the event and an accompanying error code (KErrNone for the successful completion of a request). The error will be KErrNotReady for a request that was made out of the correct sequence. The error will be KErrAccessDenied for a Reserve() request that failed because a higher priority client already controls the camera. Empty implementation of pure virtual function of MCameraObserver2

Definition at line 332 of file Camera_AppUi.cpp.

void CCameraAppUi::ViewFinderReady ( MCameraBuffer &  aCameraBuffer,
TInt  aError 
) [virtual]

Empty implementation of pure virtual function of MCameraObserver2 It is called if StartViewFinder is used, while the example uses the alternative StartViewFinderDirectL

Definition at line 342 of file Camera_AppUi.cpp.

void CCameraAppUi::ImageBufferReady ( MCameraBuffer &  aCameraBuffer,
TInt  aError 
) [virtual]

Called by the camera when image capture is complete. It draws the captured image as a bitmap to the application view BitmapL() returns a picture that has been captured.

Parameters:
MCameraBuffer &aCameraBuffer A reference to an MCameraBuffer if successful, or NULL if not successful. TInt aError KErrNone if successful, or an error code if not successful

Definition at line 354 of file Camera_AppUi.cpp.

void CCameraAppUi::VideoBufferReady ( MCameraBuffer &  aCameraBuffer,
TInt  aError 
) [virtual]

Called by the camera when video capture is complete. It draws the captured video as frames to the application view BitmapL() returns the video that has been captured. View finder is not stopped as in ImageBufferReady in order to simulate continuous buffering of data during video capture as against freezing the view finder when an image is captured.

Parameters:
MCameraBuffer &aCameraBuffer A reference to an MCameraBuffer if successful, or NULL if not successful. TInt aError KErrNone if successful, or an error code if not successful

Definition at line 387 of file Camera_AppUi.cpp.

void CCameraAppUi::AdvancedCamFeaturesL (  ) 

Sets and gets some of the features supported by CCameraAdvancedSettings API for controlling digital camera advanced settings individually. Settings change fire a corresponding Uid event to MCameraObserver2 client of the camera. KErrNotSupported KErrNoMemory KErrInUse KErrNotReady.

Definition at line 415 of file Camera_AppUi.cpp.

void CCameraAppUi::SnapShotL (  ) 

Requests snapshot data in a specified image format for both still images and video. Selects snapshot parameters by calling PrepareSnapshotL(). Then starts and stops receiving notifications from the ECam server by calling StartSnapshot() and StopSnapshot(). KErrNoMemory system-wide error codes

Definition at line 568 of file Camera_AppUi.cpp.

void CCameraAppUi::DirectViewFinderL (  ) 

Demonstrates direct View Finder functionalities, pause and resume. KErrNoMemory

Definition at line 631 of file Camera_AppUi.cpp.

void CCameraAppUi::HistogramL (  ) 

Gets default histogram data in a specified format for an image sets it to a different value and gets it again. The fuction calls will not leave in case of an error but, just throw up an info message flagging an error. KErrNoMemory KErrArgument

Definition at line 676 of file Camera_AppUi.cpp.

void CCameraAppUi::OverLayL (  ) 

Creates an overlay for bitmap and uses it to overlay an image onto a still image. The fuction calls will not leave in case od an error but, just throw up an info message flagging an error. KErrNoMemory KErrArgument

Definition at line 746 of file Camera_AppUi.cpp.

void CCameraAppUi::PresetL (  ) 

Simplifies user - camera interaction by allowing simultaneous setting of various advanced camera hardware settings using a single parameter. Preset is identified by a single UID and relates to a known predefined outcome KErrNoMemory KErrNotSupported

Definition at line 856 of file Camera_AppUi.cpp.

void CCameraAppUi::ImageProcessingL (  ) 

Does image processing operations like brightness, contrast, saturation adjustments etc. Performs simple image transformations like colour swapping. KErrNoMemory

Definition at line 902 of file Camera_AppUi.cpp.


Generated on Thu Jan 21 10:33:03 2010 for TB10.1 Example Applications by  doxygen 1.5.3