1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> 5<meta http-equiv="Content-Style-Type" content="text/css" /> 6<title>DSP_UnloadGraphics</title> 7<link rel="stylesheet" href="../../css/nitro.css" type="text/css" /> 8</head> 9<body> 10 11<h1>DSP Graphics Component Macros <IMG src="../../image/TWL.gif" align="middle"></H1> 12<H2>Definition</H2> 13 14<pre><code> 15#define DSP_CALC_SCALING_SIZE(value, ratio) ((u32)(value * (u32)(ratio * 1000) / 1000)) 16#define DSP_CALC_SCALING_SIZE_FX(value, ratio) ((u32)( value * (u32)(ratio * 1000 / 4096.0f) / 1000)) 17</code></pre> 18 19<h2>Description</h2> 20<table style="width:100%"> 21<tbody> 22<tr> 23<td style="width:13%"><em><strong>DSP_CALC_SCALING_SIZE(value, ratio)</strong></em></td> 24<td style="width:87%">Uses the <code><a href="DSP_Scaling.html">DSP_Scaling*</a></code> functions to calculate the results of scaling an image with width or height of size <SPAN class="argument">value</SPAN> by a factor of <SPAN class="argument">ratio</SPAN> (<CODE>f32</CODE> value).</td> 25</tr> 26<tr> 27<td style="width:13%"><em><strong>DSP_CALC_SCALING_SIZE_FX(value, ratio)</strong></em></td> 28<td style="width:87%">Uses the <code><a href="DSP_Scaling.html">DSP_ScalingFx*</a></code> functions to calculate the results of scaling an image with width or height of size <SPAN class="argument">value</SPAN> by a factor of <SPAN class="argument">ratio</SPAN> (<CODE>fx32</CODE> value).</td> 29</tr> 30</tbody> 31</table> 32 33<h2>See Also</h2> 34<p><code><a href="DSP_Scaling.html">DSP_Scaling*</a>, <a href="DSP_ScalingFx.html">DSP_ScalingFx*</a></code></p> 35 36<h2>Revision History</h2> 37<p> 382008/08/28 Added the <CODE>fx32</CODE> versions and revised <B>See Also</B>. <BR>2008/05/22 Initial version. 39</p> 40<hr><p>CONFIDENTIAL</p></body> 41</html> 42