Guiliani  Version 2.5 revision 7293 (documentation build 13)
CGUIBenchmark Class Reference

#include <GUIBenchmark.h>

Public Member Functions

 CGUIBenchmark (const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiStride, const eC_UByte &ubBitsPerPixel, eC_UByte *pkFramebuffer)
 
void AddTestFont (const eC_String &kFontName)
 
void AddTestImage (const eC_String &kImageName)
 
void AllOff ()
 
void AllOn ()
 
void Run ()
 
void SetBlitImg (const eC_Bool &bActive)
 
void SetBlitImgExt (const eC_Bool &bActive)
 
void SetBlitImgNinePatch (const eC_Bool &bActive)
 
void SetBlitSubImage (const eC_Bool &bActive)
 
void SetFillScreen (const eC_Bool &bActive)
 
void SetFontForSummary (const eC_String &kFontName)
 
void SetNumberOfBlits (const eC_UInt &uiNumberOfBlits)
 
void SetNumberOfPrimitives (const eC_UInt &uiNumberOfPrimitives)
 
void SetNumberOfRuns (const eC_UInt &uiNumberOfRuns)
 
void SetNumberOfTexts (const eC_UInt &uiNumberOfTexts)
 
void SetPrimitiveArc (const eC_Bool &bActive)
 
void SetPrimitiveEllipse (const eC_Bool &bActive)
 
void SetPrimitiveLine (const eC_Bool &bActive)
 
void SetPrimitiveRect (const eC_Bool &bActive)
 
void SetPrimitiveRing (const eC_Bool &bActive)
 
void SetRotate (const eC_Bool &bActive)
 
void SetRotateSubImage (const eC_Bool &bActive)
 
void SetSummaryWaitTime (const eC_UInt &uiWaitTime)
 
void SetTextLong (const eC_Bool &bActive)
 
void SetTextMedium (const eC_Bool &bActive)
 
void SetTextSingle (const eC_Bool &bActive)
 

Detailed Description

This class provides a small stub for doing benchmarks.

it can benchmark primitives (e.g. rect, ellipse...) as well as blitting with different types.

which benchmark are done can be set via the SetXXX()-methods or AllOn() and AllOff() the number of runs, primitives and blits which should be used can also be set. images which should be used for the blitting can be added with AddTestImage()

to use this class simply create an instance and execute Run()

Note: to use images for benchmarks these need to be accessible by the CGUIResourceManager, so either as files, within an resource-file or as a header-file compiled to the binary.

Constructor & Destructor Documentation

◆ CGUIBenchmark()

CGUIBenchmark::CGUIBenchmark ( const eC_UInt &  uiWidth,
const eC_UInt &  uiHeight,
const eC_UInt &  uiStride,
const eC_UByte &  ubBitsPerPixel,
eC_UByte *  pkFramebuffer 
)

Constructor

Parameters
uiWidthwidth of the benchmark-area
uiHeightheight of the benchmark area
uiStridestride of one line in bytes
ubBitsPerPixelbit-depth
pkFramebufferpointer to framebuffers, if any

Member Function Documentation

◆ AddTestFont()

void CGUIBenchmark::AddTestFont ( const eC_String &  kFontName)

Add a font to the tests

Parameters
kFontNamename of the font

◆ AddTestImage()

void CGUIBenchmark::AddTestImage ( const eC_String &  kImageName)

Add an image to the tests

Parameters
kImageNamename of the image

◆ AllOff()

void CGUIBenchmark::AllOff ( )
inline

set all benchmarks to inactive

◆ AllOn()

void CGUIBenchmark::AllOn ( )
inline

set all benchmarks to active

◆ Run()

void CGUIBenchmark::Run ( )

Run all configured benchmarks using all added images

◆ SetBlitImg()

void CGUIBenchmark::SetBlitImg ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for simple blit

Parameters
bActiveif true benchmark will be executed

◆ SetBlitImgExt()

void CGUIBenchmark::SetBlitImgExt ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for extended blit

Parameters
bActiveif true benchmark will be executed

◆ SetBlitImgNinePatch()

void CGUIBenchmark::SetBlitImgNinePatch ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for blit using nine-patches

Parameters
bActiveif true benchmark will be executed

◆ SetBlitSubImage()

void CGUIBenchmark::SetBlitSubImage ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for blit of sub-image

Parameters
bActiveif true benchmark will be executed

◆ SetFillScreen()

void CGUIBenchmark::SetFillScreen ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for screen-filling

Parameters
bActiveif true benchmark will be executed

◆ SetFontForSummary()

void CGUIBenchmark::SetFontForSummary ( const eC_String &  kFontName)

Sets the font which is used for the summary

Parameters
kFontName

◆ SetNumberOfBlits()

void CGUIBenchmark::SetNumberOfBlits ( const eC_UInt &  uiNumberOfBlits)
inline

Set the number of blits which should be used

Parameters
uiNumberOfBlits

◆ SetNumberOfPrimitives()

void CGUIBenchmark::SetNumberOfPrimitives ( const eC_UInt &  uiNumberOfPrimitives)
inline

Set the number primitives which should be used

Parameters
uiNumberOfPrimitives

◆ SetNumberOfRuns()

void CGUIBenchmark::SetNumberOfRuns ( const eC_UInt &  uiNumberOfRuns)
inline

Set the number of runs

Parameters
uiNumberOfRuns

◆ SetNumberOfTexts()

void CGUIBenchmark::SetNumberOfTexts ( const eC_UInt &  uiNumberOfTexts)
inline

Set the number text which should be printed

Parameters
uiNumberOfTexts

◆ SetPrimitiveArc()

void CGUIBenchmark::SetPrimitiveArc ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for arcs

Parameters
bActiveif true benchmark will be executed

◆ SetPrimitiveEllipse()

void CGUIBenchmark::SetPrimitiveEllipse ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for ellipses

Parameters
bActiveif true benchmark will be executed

◆ SetPrimitiveLine()

void CGUIBenchmark::SetPrimitiveLine ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for lines

Parameters
bActiveif true benchmark will be executed

◆ SetPrimitiveRect()

void CGUIBenchmark::SetPrimitiveRect ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for rectangles

Parameters
bActiveif true benchmark will be executed

◆ SetPrimitiveRing()

void CGUIBenchmark::SetPrimitiveRing ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for rings

Parameters
bActiveif true benchmark will be executed

◆ SetRotate()

void CGUIBenchmark::SetRotate ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for rotated blit

Parameters
bActiveif true benchmark will be executed

◆ SetRotateSubImage()

void CGUIBenchmark::SetRotateSubImage ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for rotated blit with sub-image

Parameters
bActiveif true benchmark will be executed

◆ SetSummaryWaitTime()

void CGUIBenchmark::SetSummaryWaitTime ( const eC_UInt &  uiWaitTime)

Sets the number of seconds as the wait time for the summary

Parameters
uiWaitTime

◆ SetTextLong()

void CGUIBenchmark::SetTextLong ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for text with great length (50 - 200)

Parameters
bActiveif true benchmark will be executed

◆ SetTextMedium()

void CGUIBenchmark::SetTextMedium ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for text with medium length (10 - 50)

Parameters
bActiveif true benchmark will be executed

◆ SetTextSingle()

void CGUIBenchmark::SetTextSingle ( const eC_Bool &  bActive)
inline

activate or de-activate benchmark for text with single characters

Parameters
bActiveif true benchmark will be executed

The documentation for this class was generated from the following file: