This document introduces you to the Viewfinder API.
The Viewfinder enables you to pause and resume the direct viewfinder which is currently active and has been started using Ccamera methods.
Viewfinder Library Details
The DLLs listed below provide the viewfinder functionality and the library to which your code must link is identified below.
DLL | Classes | LIB | Short Description |
---|---|---|---|
ECamAdvSettings.dll |
CCamera::StartViewFinderDirectL() starts viewfinder. CCamera::CCameraDirectViewFinder allows to use direct viewfinder. |
euser.lib ecampluginsupport.lib |
These files are used by ECAM clients to provide a certain type of control over direct viewfinder.
|
Ecam.dll and ecamdirectviewfinder.dll |
Camera::CCameraV2DirectViewFinder and CCamera::CCameraClientViewFinder (for starting multiple viewfinders). |
euser.lib ecampluginsupport.lib |
These files are used for implementing the Viewfinder functionalities.
|
This is part of the camera component.
The Viewfinder acquires information about the current state of that direct viewfinder. The different possible states are active, paused and inactive. It allows you to pause and resume the direct viewfinder that is currently active and has been started using CCamera functions.
The key classes that make up the Viewfinder API are as follows:
CCamera::StartViewFinderDirectL()
Class CCamera is used to start the direct viewfinder using the CCamera::StartViewFinderDirectL() method. This starts the direct viewfinder and displays viewfinder data to a specified portion of the screen using direct screen access. CCamera::CCameraDirectViewFinder can then be used to pause and resume the viewfinder.
Note : Licensees must provide a concrete implementation of CCamera::StartViewFinderDirectL() .
// Pause direct viewfinder directviewfinder->PauseViewFinderDirectL(); // Resume direct viewfinder directviewfinder->ResumeViewFinderDirectL();
CCamera::CCameraDirectViewFinder class is used to provide support for Direct Viewfinder functions such as pause and resume.
Note : Licensees must provide a concrete implementation of MCameraDirectViewFinder .
CCamera::CCameraDirectViewFinder::PauseViewFinderDirectL()
Pauses the direct viewfinder.
CCamera::CCameraDirectViewFinder::ResumeViewFinderDirectL()
Resumes the direct viewfinder.
Multiple viewfinders may run at the same time by the use of new extension classes:
CcameraV2DirectViewFinder : This provides the necessary framework for multiple direct viewfinder support. The direct viewfinder classes are provided as a part of Version2 direct viewfinder implementation.
CcameraClientViewFinder : This provides the necessary framework for multiple client viewfinder support. The client viewfinder classes are provided as a part of client viewfinder implementation.
Note : Licensees must provide a concrete implementation of MCameraViewFinder , MCameraV2DirectViewFinder and MCameraClientViewFinder .
Clients can use the Viewfinder to:
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.