frb-gamma

Description

This program tests the gamma correction mode. You can check some test patterns to see the effects of gamma correction. You can also see the difference in pixel formats (8-bit / 6-bit) and the effect of dithering.

Coverage

Functions Parameters Description
GXSetDispCopyGamma Gamma mode GX_GM_1_0, GX_GM_1_7, GX_GM_2_2
GXSetPixelFmt Pixel mode GX_PF_RGB8_Z24, GX_PF_RGBA6_Z24
Z format GX_ZC_LINEAR
GXSetDither Dithering mode GX_ENABLE / GX_DISABLE

Using the Demo

The Start button exits the test.
The A Button changes the displayed sample pattern.
The B Button changes the gamma setting.
The X Button changes the frame buffer pixel mode (RGB8, RGBA6, or RGBA6 with dither).

Snapshot

Sample pattern #1 - gradation color bars.

frb-gamma-0.jpg (6814 bytes)

Sample pattern #2 - gamma adjustment picture.

frb-gamma-1.jpg (20694 bytes)

Sample pattern #3 - an image.

frb-gamma-2.jpg (32484 bytes)

Sample pattern #4 - colored rings.

frb-gamma-3.jpg (15197 bytes)

Required Data Files

$REVOLUTION_SDK_ROOT/dvddata/gxTests/frb-00.tpl

Revision History

2006/03/01 Initial version.


CONFIDENTIAL