class MHistogramV2Buffer |
This class is used to pass histogram data between the camera device and a client that uses CCameraV2Histogram and implements MCaptureImageObserver , MCaptureVideoObserver , MDirectViewFinderObserver and MClientViewFinderObserver .
Only one histogram data is available per buffer. ECam implementation will issue another callback once a new histogram data is ready. Till that time, client shall use the histogram data available from the histogram buffer currently retrieved.
The class allows the client to access the data as a descriptor to a kernel chunk.
CCameraV2Histogram
Public Member Functions | |
---|---|
RChunk & | ChunkL () |
TInt | ChunkOffsetL () |
TDesC8 * | DataL () |
TInt | ElementSize () |
TInt | NumOfElements () |
void | Release () |
CCamera::CCameraV2Histogram::THistogramType | Type () |
RChunk & | ChunkL | ( | ) | [pure virtual] |
TInt | ChunkOffsetL | ( | ) | [pure virtual] |
Returns the offset in the chunk (returned by ChunkL() ) that contains the data for the histogram within the histogram buffer.
TDesC8 * | DataL | ( | ) | [pure virtual] |
Allows access to the histogram in the histogram buffer via a descriptor.
TInt | ElementSize | ( | ) | [pure virtual] |
Returns the number of bits per histogram element value used to store the histogram data within the histogram buffer.
The number of bits per histogram element will be decided by the ECam implementation.
NumOfElementsL()
TInt | NumOfElements | ( | ) | [pure virtual] |
Returns the number of elements in the histogram within the histogram buffer.
This value can be used along with the element size obtained by calling ElementSizeL(), to calculate the exact size of histogram data ( element-size x number-of-elements = histogram-size ).
void | Release | ( | ) | [pure virtual] |
Releases the buffer. Once the client has processed the histogram data it should use this method to signal to the camera that the buffer can be deleted or re-used.
CCamera::CCameraV2Histogram::THistogramType | Type | ( | ) | [pure virtual] |
Returns the type of histogram data that is available within the histogram buffer.
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.