C

MISRCalculator Class

class SafeRenderer::MISRCalculator

The 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 &region)

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.

ConstantValueDescription
SafeRenderer::MISRCalculator::UnsupportedSurfaceFormat0The framebuffer surface format is not supported.
SafeRenderer::MISRCalculator::RegionOutOfBounds1The 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 &region)

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.