AbstractFrameBuffer Class


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

Header: #include <AbstractFrameBuffer>
Since: QtSafeRenderer 1.0

Public Types

enum PixelFormat { RGBA8888, RGB565, RGBA8888_LE }

Public Functions

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

Detailed Description

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

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.

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


Default constructs an instance of AbstractFrameBuffer.

[virtual] AbstractFrameBuffer::~AbstractFrameBuffer()

Destroys the instance of AbstractFrameBuffer. The destructor is virtual.

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

Returns the pointer to the frame buffer data.

[pure virtual] quint8 AbstractFrameBuffer::bitsPerPixel()

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

[pure virtual] quint32 AbstractFrameBuffer::bytesPerLine()

Returns the length of the scan line in bytes.

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

Returns the format of the surface.

Available under certain Qt licenses.
Find out more.