C
MISRCalculator Class
class SafeRenderer::MISRCalculatorThe MISRCalculator class calculates the CRC value for the region. More...
Header: | #include <MISRCalculator> |
Since: | QtSafeRenderer 2.0 |
Public Types
enum | MISRCalculatorException { UnsupportedSurfaceFormat, RegionOutOfBounds } |
Public Functions
MISRCalculator(SafeRenderer::AbstractFrameBuffer &frameBufferArg, const SafeRenderer::QSafeSize &sizeArg) | |
virtual | ~MISRCalculator() |
void | getCRC(SafeRenderer::VerifyRegion ®ion) |
Detailed Description
The MISRCalculator class provides functions to calculate the reference CRC value for the region from the framebuffer object.
Member Type Documentation
enum MISRCalculator::MISRCalculatorException
This enum describes the exception values in the MISRCalculator class.
Constant | Value | Description |
---|---|---|
SafeRenderer::MISRCalculator::UnsupportedSurfaceFormat | 0 | The framebuffer surface format is not supported. |
SafeRenderer::MISRCalculator::RegionOutOfBounds | 1 | The requested region is outside the framebuffer region. } |
Member Function Documentation
MISRCalculator::MISRCalculator(SafeRenderer::AbstractFrameBuffer &frameBufferArg, const SafeRenderer::QSafeSize &sizeArg)
Constructs a MISR calculator object with a frameBuffer. frameBuffer is the implementation of the AbstractFrameBuffer for the OpenWFD API. sizeArg holds the width and height for the framebuffer. Throws SafeRenderer::MISRCalculator::UnsupportedSurfaceFormat if the framebuffer surface format is not ARGB32.
[virtual]
MISRCalculator::~MISRCalculator()
Destructor.
void MISRCalculator::getCRC(SafeRenderer::VerifyRegion ®ion)
Calculates the MISR value for region.
Throws SafeRenderer::MISRCalculator::RegionOutOfBounds if the region is out of bounds.
Available under certain Qt licenses.
Find out more.