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>tev-one-op</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">tev-one-op</H1>
12
13<H2>Description</H2>
14<P>This program tests the color composition algorithm on a TEV stage. Only one TEV stage is used, and the output is displayed as the rectangle of Result. Any possible combination of seven input parameters (ArgA, ArgB, ArgC, ArgD, Op, Bias, Scale) can be tested by modifying the control panel.</P>
15<H2>Coverage</H2>
16<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
17  <TBODY>
18    <TR>
19<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Function</STRONG></EM></TD>
20<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD>
21<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD>
22    </TR>
23    <TR>
24<TD width="30%" rowspan="5"><A href="../../../gx/Texture/GXInitTexObj.html"><CODE>GXInitTexObj</CODE></A></TD>
25<TD width="25%">Pointer to image data.</TD>
26<TD width="45%">Appropriate value.</TD>
27    </TR>
28    <TR>
29<TD width="25%">Width  and height</TD>
30<TD width="45%">Fixed</TD>
31    </TR>
32    <TR>
33<TD width="25%">Format</TD>
34<TD width="45%"><FONT face="Courier New">GX_TF_RGBA8</FONT>, <FONT face="Courier New">GX_TF_I4</FONT></TD>
35    </TR>
36    <TR>
37<TD width="25%">Wrap mode (s, t)</TD>
38<TD width="45%">Always <code>GX_REPEAT</code>.</TD>
39    </TR>
40    <TR>
41<TD width="25%">Mipmap</TD>
42<TD width="45%">Always <CODE>GX_FALSE</CODE>.</TD>
43    </TR>
44    <TR>
45<TD width="30%"><A href="../../../gx/Texture/GXLoadTexObj.html"><CODE>GXLoadTexObj</CODE></A></TD>
46<TD width="25%">Destination texture name</TD>
47<TD width="45%">Always <CODE>GX_TEXMAP0</CODE>.</TD>
48    </TR>
49    <TR>
50<TD width="30%"><A href="../../../gx/Tev/GXSetNumTevStages.html"><CODE>GXSetNumTevStages</CODE></A></TD>
51<TD width="25%">Number of TEV stages.</TD>
52<TD width="45%">Always 1.</TD>
53    </TR>
54    <TR>
55<TD width="30%" rowspan="2"><A href="../../../gx/Tev/GXSetTevColor.html"><CODE>GXSetTevColor</CODE></A></TD>
56<TD width="25%">Destination color register ID.</TD>
57<TD width="45%"><STRONG><FONT face="Courier New">GX_TEVREG0</FONT>, <FONT face="Courier New">GX_TEVREG1</FONT>, <FONT face="Courier New">GX_TEVREG2</FONT>, <FONT face="Courier New">GX_TEVPREV</FONT></STRONG></TD>
58    </TR>
59    <TR>
60<TD width="25%">Color</TD>
61<TD width="45%">Various values.</TD>
62    </TR>
63    <TR>
64<TD width="30%" rowspan="5"><A href="../../../gx/Tev/GXSetTevColorIn.html"><CODE>GXSetTevColorIn</CODE></A></TD>
65<TD width="25%">TEV stage ID</TD>
66<TD width="45%">Always <FONT face="Courier New">GX_TEVSTAGE0</FONT>.</TD>
67    </TR>
68    <TR>
69<TD width="25%">Input argument A</TD>
70<TD width="45%" rowspan="4"><STRONG><FONT face="Courier New">GX_CC_C0</FONT>, <FONT face="Courier New">GX_CC_C1</FONT>, <FONT face="Courier New">GX_CC_C2</FONT>, <FONT face="Courier New">GX_CC_CPREV</FONT>, <FONT face="Courier New">GX_CC_A0</FONT>, <FONT face="Courier New">GX_CC_A1</FONT>, <FONT face="Courier New">GX_CC_A2</FONT>, <FONT face="Courier New">GX_CC_APREV</FONT>, <FONT face="Courier New">GX_CC_TEXC</FONT>, <FONT face="Courier New">GX_CC_TEXA</FONT>, <FONT face="Courier New">GX_CC_RASC</FONT>, <FONT face="Courier New">GX_CC_RASA</FONT>, <FONT face="Courier New">GX_CC_ONE</FONT>, <FONT face="Courier New">GX_CC_HALF</FONT>, <FONT face="Courier New">GX_CC_QUARTER</FONT>, <FONT face="Courier New">GX_CC_ZERO</FONT>, <FONT face="Courier New">GX_CC_TEXRRR</FONT>, <FONT face="Courier New">GX_CC_TEXGGG</FONT>, <FONT face="Courier New">GX_CC_TEXBBB</FONT></STRONG></TD>
71    </TR>
72    <TR>
73<TD width="25%">Input argument B</TD>
74    </TR>
75    <TR>
76<TD width="25%">Input argument C</TD>
77    </TR>
78    <TR>
79<TD width="25%">Input argument D</TD>
80    </TR>
81    <TR>
82<TD width="30%" rowspan="6"><A href="../../../gx/Tev/GXSetTevColorOp.html"><CODE>GXSetTevColorOp</CODE></A></TD>
83<TD width="25%">TEV stage ID</TD>
84<TD width="45%">Always <FONT face="Courier New">GX_TEVSTAGE0</FONT>.</TD>
85    </TR>
86    <TR>
87<TD width="25%">TEV operation</TD>
88<TD width="45%"><STRONG><FONT face="Courier New">GX_TEV_ADD</FONT>, <FONT face="Courier New">GX_TEV_SUB</FONT></STRONG></TD>
89    </TR>
90    <TR>
91<TD width="25%">Bias value</TD>
92<TD width="45%"><STRONG><FONT face="Courier New">GX_TB_ZERO</FONT>, <FONT face="Courier New">GX_TB_ADDHALF</FONT>, <FONT face="Courier New">GX_TB_SUBHALF</FONT></STRONG></TD>
93    </TR>
94    <TR>
95<TD width="25%">Scale value</TD>
96<TD width="45%"><STRONG><FONT face="Courier New">GX_CS_SCALE_1</FONT>, <FONT face="Courier New">GX_CS_SCALE_2</FONT>, <FONT face="Courier New">GX_CS_SCALE_4</FONT>, <FONT face="Courier New">GX_CS_DIVIDE_2</FONT></STRONG></TD>
97    </TR>
98    <TR>
99<TD width="25%">Clamp result</TD>
100<TD width="45%">Always <FONT face="Courier New">GX_TRUE</FONT>.</TD>
101    </TR>
102    <TR>
103<TD width="25%">Output register ID</TD>
104<TD width="45%">Always <FONT face="Courier New">GX_TEVPREV</FONT>.</TD>
105    </TR>
106  </TBODY>
107</TABLE>
108<H2>Operation Method</H2>
109<P>START exits the demo.</P>
110<P>The Control Stick or +Control Pad moves the cursor.</P>
111<P>The X and Y Buttons change the value for the argument that the cursor points to.</P>
112<P>The R Button changes the texture if the cursor points to the input argument that indicates the texture. The R button changes the register color if the cursor points to the input argument that indicates a register.</P>
113<H2>Snapshot</H2>
114<P>A=RASC, B=TEXC, C=TEXA, D=ZERO, Op=add, Bias=0 and Scale=1. (setting close to <code>GX_DECAL</code>).<br></P>
115<P><IMG src="./images/tev-one-op-00.jpg" alt="Tev-one-op-00.jpg (32531 bytes)" width="640" height="480"></P>
116<P>A=ZERO, B=TEXC, C=ONE, D=ZERO, Op=add, Bias=0 and Scale=4. (TEXC x 4).</P>
117<P><IMG src="./images/tev-one-op-03.jpg" alt="Tev-one-op-03.jpg (32312 bytes)" width="640" height="480"></P>
118<P>A=C2, B=ONE, C=C1, D=C0, Op=add, Bias=0 and Scale=1.</P>
119<P><IMG src="./images/tev-one-op-06.jpg" alt="Tev-one-op-06.jpg (27606 bytes)" width="640" height="480"></P>
120<P>A=A0, B=ONE, C=TEXC, D=ONE, Op=sub, Bias=0 and Scale=1.</P>
121<P><IMG src="./images/tev-one-op-09.jpg" alt="Tev-one-op-09.jpg (31085 bytes)" width="640" height="480"></P>
122<H2>Required Data Files</H2>
123<P><FONT face="Courier New">$REVOLUTION_SDK_ROOT/dvddata/gxTests/tev-00.tpl</FONT></P>
124<H2>Revision History</H2>
125<P>2006/03/01 Initial version.</P>
126<hr>
127<P>CONFIDENTIAL</p>
128</BODY>
129</HTML>