MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

FCam::Device Class Reference

An abstract base class for devices. More...

Inheritance diagram for FCam::Device:
Inheritance graph
[legend]
Collaboration diagram for FCam::Device:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void  tagFrame (Frame)=0
  Your device should implement this method to tag a frame coming back from the sensor.

Detailed Description

An abstract base class for devices.

Devices will typically have a bunch of methods to do their thing (e.g. the lens has methods to move it around.). Devices also typically define nested actions, and tags.


Member Function Documentation

virtual void FCam::Device::tagFrame ( Frame   )  [pure virtual]

Your device should implement this method to tag a frame coming back from the sensor.

Don't forget to Sensor::attach your device to the sensor so that this gets called. Frames are tagged just before they are returned via Sensor::getFrame, which may be some time after they actually occured, so do not tag the frame with your devices current state. Instead your device should keep a history of recent state, and inspect the Frame::exposureStartTime and Frame::exposureEndTime to add the appropriate tags.

Implemented in FCam::Flash, FCam::Lens, FCam::N9::Flash, FCam::N9::Lens, and FCam::Sensor.


Copyright (c) 2012, Nokia Corporation and/or its subsidiary(-ies). All rights reserved. See Copyright.
MeeGo 1.2 Harmattan API