diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-BFDDCE4E-FE4F-5815-9D0B-A0967EA53B11.dita --- a/Symbian3/SDK/Source/GUID-BFDDCE4E-FE4F-5815-9D0B-A0967EA53B11.dita Wed Mar 31 11:11:55 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - - - - Controlling Still-image Capture

This document explains how to control the still-image capture process.

Purpose

This document explains how to control the overall image capture process and to capture a still image based on given image parameters.

Introduction

The Image Capture API allows the client to capture the still image and control the capture operation. This class lets you issue still image capture calls even if the previous capture calls are pending. To do this, you need to create another instance of this class. If you use the same instance, the handle to retrieve the previously captured still image will be lost.

Using Image Capture

The following tasks are covered during image capture implementation:

  1. Provide implementation of McameraPreImageCaptureControl::PrepareImageCapture.

  2. Use MpreImageCaptureControlObserver::PrepareImageComplete call-back to pass this to the client to create CCamera::CCameraImageCapture class.

  3. Create CCamera::CCameraImageCapture object and pass it to the client, when it calls CCameraPreImageCaptureControl::PrepareImageCapture.

    See also Implementation of MCameraPreImageCaptureControl class.

  4. Request still image capture using CCamera::CCameraImageCapture object.

  5. Perform image capture using CCamera::CCameraImageCapture::CaptureImage method. This delays the background processing involved with current image captured, so as to capture next images.

  6. Use MCaptureImageObserver::IndividualImageControlHandle callback to provide client with the handle to control captured individual still images. This callback may be send to the client after the image is exposed to the sensor. For example, client may need to destroy the image even before the completion for some reasons.

  7. Use MCaptureImageObserver::ImageCaptureComplete callback to inform the client that the image capture operation has been completed. This lets to use CCameraImageCapture for next still image capture.

Note:

Licensees need to provide concrete implementation of McameraImageCapture interface class.

The following example code snippets illustrate the use of the PreImageCaptureControl classes.

static_cast<MCameraPreImageCaptureControl*>(CCamPreImageCaptureControl::NewL(static_cast<CCamUnitTestPlugin&>(*this))); - -CCamera::CCameraImageCapture* cameraImageCapture; - -MPreImageCaptureControlObserver* PreImageCaptureControlObserver() {return iPreImageCaptureControlObserver;} -PreImageCaptureControlObserver()->PrepareImageComplete(cameraImageCapture, err); - -CCamera::CCameraPreImageCaptureControl::TPrepareImageParameters& aPrepareImageParameters; -MCaptureImageObserver& aCaptureImageObserver; - -CreateCaptureImageL(cameraImageCapture, aPrepareImageParameters, aCaptureImageObserver)); - -CaptureImageObserver()->IndividualImageControlHandle(*cameraImageCapture, 1);
See also

Controlling Pre-Image Capture

Controlling Captured Image

\ No newline at end of file