C

AbstractFrameBuffer Class

class SafeRenderer::AbstractFrameBuffer

The AbstractFrameBuffer class provides an interface for accessing the system's frame buffer. More...

Header: #include <AbstractFrameBuffer>

Public Types

enum PixelFormat { RGBA8888, RGB565, RGBA8888_LE }

Public Functions

virtual SafeRenderer::quint8 *bits() = 0
virtual SafeRenderer::quint8 bitsPerPixel() = 0
virtual SafeRenderer::quint32 bytesPerLine() = 0
virtual SafeRenderer::AbstractFrameBuffer::PixelFormat format() const = 0

Detailed Description

When you are integrating Qt Safe Renderer to your system, you must implement a class that is inherited from the AbstractFrameBuffer class. The inherited class must provide an implementation for the rendering functionality in AbstractFrameBuffer.

Qt Safe Renderer examples provide reference AbstractFrameBuffer implementations for the QNX screen, INTEGRITY for Renesas H3, and the Qt-based window.

Member Type Documentation

enum AbstractFrameBuffer::PixelFormat

This enum describes the supported surface formats.

ConstantValueDescription
SafeRenderer::AbstractFrameBuffer::RGBA8888132-bit RGBA8888 surface.
SafeRenderer::AbstractFrameBuffer::RGB565016-bit RGB565 surface.
SafeRenderer::AbstractFrameBuffer::RGBA8888_LE232-bit RGBA8888 surface. Color bytes are ordered in little endian order.

Member Function Documentation

[pure virtual] SafeRenderer::quint8 *AbstractFrameBuffer::bits()

Returns the pointer to the frame buffer data.

[pure virtual] SafeRenderer::quint8 AbstractFrameBuffer::bitsPerPixel()

Returns the number of bits per pixel (16 or 32).

[pure virtual] SafeRenderer::quint32 AbstractFrameBuffer::bytesPerLine()

Returns the length of the scan line in bytes.

[pure virtual] SafeRenderer::AbstractFrameBuffer::PixelFormat AbstractFrameBuffer::format() const

Returns the format of the surface.

Available under certain Qt licenses.
Find out more.