An abstract base class for devices. More...
Public Member Functions |
|
virtual void | tagFrame (Frame)=0 |
Your device should implement this method to tag a frame coming back from the sensor. |
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.
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
|