1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css">
8<TITLE>frb-gamma</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">frb-gamma</H1>
12
13<H2>Description</H2>
14<P>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.</P>
15
16<H2>Coverage</H2>
17<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
18  <TBODY>
19    <TR>
20<TD bgcolor="#C0C0C0" width="30%"><EM><STRONG>Functions</STRONG></EM></TD>
21<TD bgcolor="#C0C0C0" width="25%"><EM><STRONG>Parameters</STRONG></EM></TD>
22<TD bgcolor="#C0C0C0" width="45%"><EM><STRONG>Description</STRONG></EM></TD>
23    </TR>
24    <TR>
25<TD width="30%"><A href="../../../gx/Framebuffer/GXSetDispCopyGamma.html"><CODE>GXSetDispCopyGamma</CODE></A></TD>
26<TD width="25%"><SPAN class="argument">Gamma mode</SPAN></TD>
27<TD width="45%"><CODE>GX_GM_1_0</CODE>, <CODE>GX_GM_1_7</CODE>, <CODE>GX_GM_2_2</CODE></TD>
28    </TR>
29    <TR>
30<TD rowspan="2" width="30%"><A href="../../../gx/PixelProc/GXSetPixelFmt.html"><CODE>GXSetPixelFmt</CODE></A></TD>
31<TD width="25%"><SPAN class="argument">Pixel mode</SPAN></TD>
32<TD width="45%"><CODE>GX_PF_RGB8_Z24</CODE>, <CODE>GX_PF_RGBA6_Z24</CODE></TD>
33    </TR>
34    <TR>
35<TD width="25%"><SPAN class="argument">Z format</SPAN></TD>
36<TD width="45%"><CODE>GX_ZC_LINEAR</CODE></TD>
37    </TR>
38    <TR>
39<TD width="30%"><A href="../../../gx/PixelProc/GXSetDither.html"><CODE>GXSetDither</CODE></A></TD>
40<TD width="25%"><SPAN class="argument">Dithering mode</SPAN></TD>
41<TD width="45%"><CODE>GX_ENABLE</CODE> / <CODE>GX_DISABLE</CODE></TD>
42    </TR>
43  </TBODY>
44</TABLE>
45
46<H2>Using the Demo</H2>
47<P>The Start button exits the test.<BR> The A Button changes the displayed sample pattern.<BR> The B Button changes the gamma setting.<BR> The X Button changes the frame buffer pixel mode (RGB8, RGBA6, or RGBA6 with dither).</P>
48
49<H2>Snapshot</H2>
50<P>Sample pattern #1 - gradation color bars.</P>
51<P><IMG src="./images/frb-gamma-0.jpg" alt="frb-gamma-0.jpg (6814 bytes)" width="640" height="448"></P>
52
53<P>Sample pattern #2 - gamma adjustment picture.</P>
54<P><IMG src="./images/frb-gamma-1.jpg" alt="frb-gamma-1.jpg (20694 bytes)" width="640" height="448"></P>
55
56<P>Sample pattern #3 - an image.</P>
57<P><IMG src="./images/frb-gamma-2.jpg" alt="frb-gamma-2.jpg (32484 bytes)" width="640" height="448"></P>
58
59<P>Sample pattern #4 - colored rings.</P>
60<P><IMG src="./images/frb-gamma-3.jpg" alt="frb-gamma-3.jpg (15197 bytes)" width="640" height="448"></P>
61
62<H2>Required Data Files</H2>
63<P><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTests/frb-00.tpl</CODE></P>
64
65<H2>Revision History</H2>
66<P>
672006/03/01 Initial version.<br>
68</P>
69
70<hr><p>CONFIDENTIAL</p></body>
71</HTML>