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_ConvertYuvToRgb</title> 7<link rel="stylesheet" href="../../css/nitro.css" type="text/css" /> 8</head> 9<body> 10 11<h1>DSP_ConvertYuvToRgb <IMG src="../../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13 14<pre><code> 15BOOL DSP_ConvertYuvToRgb(const void* src, void* dst, u32 size);</br> 16BOOL DSP_ConvertYuvToRgbAsync(const void* src, void* dst, u32 size, DSP_GraphicsCallback callback); 17</code></pre> 18 19<h2>Arguments</h2> 20<table style="width:100%"> 21<tbody> 22<tr> 23<td style="width:13%"><em><strong>src</strong></em></td> 24<td style="width:87%">Buffer that holds YUV422-formatted image data.<br /></td> 25</tr> 26<tr> 27<td style="width:13%"><em><strong>dst</strong></em></td> 28<td style="width:87%">Buffer that will store the converted data.<br /></td> 29</tr> 30<tr> 31<td style="width:13%"><em><strong>size</strong></em></td> 32<td style="width:87%">The data size of <CODE>src</CODE>.</td> 33</tr> 34<tr> 35<td style="width:13%"><em><strong>callback</strong></em></td> 36<td style="width:87%">The callback function that will be invoked when processing is complete.</td> 37</tr> 38</tbody> 39</table> 40 41<h2>Return Values</h2> 42<p>Returns <CODE>TRUE</CODE> when conversion ends normally.<br />Returns <CODE>FALSE</CODE> when conversion did not end normally or the graphics component is already processing something.</p> 43 44<h2>Description</h2> 45<p>Converts image data from the YUV422 format to the RGB555 format. YUV422-formatted image data can be obtained from the camera.</p> 46 47<p>Data is transferred from main memory to the DSP (WRAM-C) using DMA.</p> 48 49<p>When the asynchronous version of this function (<CODE>*Async</CODE>) is run, the callback function registered as an argument will be invoked to send a notification that conversion has finished. 50</p> 51 52<h2>See Also</h2> 53<p><code><a href="DSP_LoadGraphics.html">DSP_LoadGraphics</a>, <a href="DSP_UnloadGraphics.html">DSP_UnloadGraphics</a>, <a href="../../camera/CAMERA_SetOutputFormat.html">CAMERA_SetOutputFormat</a></code></p> 54 55<h2>Revision History</h2> 56<p> 572008/05/22 Initial version. 58</p> 59<hr><p>CONFIDENTIAL</p></body> 60</html> 61