<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: csPackRGB Struct Reference (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <h1>csPackRGB Struct Reference<br> <small> [<a class="el" href="group__gfx.html">Graphics</a>]</small> </h1><!-- doxytag: class="csPackRGB" -->RGB data packing. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="packrgb_8h-source.html">csgfx/packrgb.h</a>></code> <p> <p> <a href="structcsPackRGB-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsPackRGB.html#a5cbbed21c6aacccf874559ed4af9877">DiscardPackedRGB</a> (const <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> *rgb)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Frees memory possibly allocated by <a class="el" href="structcsPackRGB.html#1b6ad0e26a27ebbdb3f810b137e99308" title="Pack an array of csRGBcolor into a RGB byte array.">PackRGBcolorToRGB()</a>. <a href="#a5cbbed21c6aacccf874559ed4af9877"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsPackRGB.html#d8790ac2a34c868bb5d8d50fda3d35bd">DiscardUnpackedRGBcolor</a> (const <a class="el" href="structcsRGBcolor.html">csRGBcolor</a> *pixels)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Frees memory possibly allocated by <a class="el" href="structcsPackRGB.html#c19932ae41194983155851f63ec96568" title="Unpack a RGB byte array into an array of csRGBcolor.">UnpackRGBtoRGBcolor()</a>. <a href="#d8790ac2a34c868bb5d8d50fda3d35bd"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2741ae9835a7a2eb36a89c90bbd3846"></a><!-- doxytag: member="csPackRGB::IsRGBcolorSane" ref="d2741ae9835a7a2eb36a89c90bbd3846" args="()" --> static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsPackRGB.html#d2741ae9835a7a2eb36a89c90bbd3846">IsRGBcolorSane</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static const <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsPackRGB.html#1b6ad0e26a27ebbdb3f810b137e99308">PackRGBcolorToRGB</a> (const <a class="el" href="structcsRGBcolor.html">csRGBcolor</a> *pixels, size_t numPixels)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pack an array of <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a> into a RGB byte array. <a href="#1b6ad0e26a27ebbdb3f810b137e99308"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsPackRGB.html#57e62f82330017bc1eb3200bb52d386c">PackRGBcolorToRGBBuffer</a> (<a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> *buf, const <a class="el" href="structcsRGBcolor.html">csRGBcolor</a> *pixels, size_t numPixels)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pack an array of <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a> into a RGB byte array. <a href="#57e62f82330017bc1eb3200bb52d386c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsPackRGB.html#3c19ff8acd15fb3e00f119748791b6d7">PackRGBpixelToRGB</a> (const <a class="el" href="structcsRGBpixel.html">csRGBpixel</a> *pixels, size_t numPixels)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pack an array of <a class="el" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a> into a RGB byte array. <a href="#3c19ff8acd15fb3e00f119748791b6d7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsPackRGB.html#2462dac781ae68b222b6500206568a2a">PackRGBpixelToRGB</a> (const <a class="el" href="structcsRGBpixel.html">csRGBpixel</a> *pixels, <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> *packTo, size_t numPixels)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pack an array of <a class="el" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a> into a RGB byte array. <a href="#2462dac781ae68b222b6500206568a2a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static const <a class="el" href="structcsRGBcolor.html">csRGBcolor</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsPackRGB.html#e0f91dcf89035f7cef5c9abcca3cd165">UnpackRGBtoRGBcolor</a> (const <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> *rgb, size_t numPixels)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Unpack a RGB byte array into an array of <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a>. <a href="#e0f91dcf89035f7cef5c9abcca3cd165"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsPackRGB.html#c19932ae41194983155851f63ec96568">UnpackRGBtoRGBcolor</a> (<a class="el" href="structcsRGBcolor.html">csRGBcolor</a> *buf, const <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> *rgb, size_t numPixels)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Unpack a RGB byte array into an array of <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a>. <a href="#c19932ae41194983155851f63ec96568"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsPackRGB.html#7ac47b0f0768f275214252503173dc29">UnpackRGBtoRGBpixelBuffer</a> (<a class="el" href="structcsRGBpixel.html">csRGBpixel</a> *buf, <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> *rgb, size_t numPixels)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Unpack a RGB byte array into an array of <a class="el" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a>. <a href="#7ac47b0f0768f275214252503173dc29"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> RGB data packing. <p>Definition at line <a class="el" href="packrgb_8h-source.html#l00055">55</a> of file <a class="el" href="packrgb_8h-source.html">packrgb.h</a>.</p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="a5cbbed21c6aacccf874559ed4af9877"></a><!-- doxytag: member="csPackRGB::DiscardPackedRGB" ref="a5cbbed21c6aacccf874559ed4af9877" args="(const uint8 *rgb)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void csPackRGB::DiscardPackedRGB </td> <td>(</td> <td class="paramtype">const <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> * </td> <td class="paramname"> <em>rgb</em> </td> <td> ) </td> <td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Frees memory possibly allocated by <a class="el" href="structcsPackRGB.html#1b6ad0e26a27ebbdb3f810b137e99308" title="Pack an array of csRGBcolor into a RGB byte array.">PackRGBcolorToRGB()</a>. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>rgb</em> </td><td>Pointer to packed RGB data returned by <a class="el" href="structcsPackRGB.html#1b6ad0e26a27ebbdb3f810b137e99308" title="Pack an array of csRGBcolor into a RGB byte array.">PackRGBcolorToRGB()</a>. </td></tr> </table> </dl> <p>Definition at line <a class="el" href="packrgb_8h-source.html#l00106">106</a> of file <a class="el" href="packrgb_8h-source.html">packrgb.h</a>.</p> <p>References <a class="el" href="packrgb_8h-source.html#l00057">IsRGBcolorSane()</a>.</p> </div> </div><p> <a class="anchor" name="d8790ac2a34c868bb5d8d50fda3d35bd"></a><!-- doxytag: member="csPackRGB::DiscardUnpackedRGBcolor" ref="d8790ac2a34c868bb5d8d50fda3d35bd" args="(const csRGBcolor *pixels)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void csPackRGB::DiscardUnpackedRGBcolor </td> <td>(</td> <td class="paramtype">const <a class="el" href="structcsRGBcolor.html">csRGBcolor</a> * </td> <td class="paramname"> <em>pixels</em> </td> <td> ) </td> <td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Frees memory possibly allocated by <a class="el" href="structcsPackRGB.html#c19932ae41194983155851f63ec96568" title="Unpack a RGB byte array into an array of csRGBcolor.">UnpackRGBtoRGBcolor()</a>. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pixels</em> </td><td>Pointer to <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a> array returned by <a class="el" href="structcsPackRGB.html#c19932ae41194983155851f63ec96568" title="Unpack a RGB byte array into an array of csRGBcolor.">UnpackRGBtoRGBcolor()</a>. </td></tr> </table> </dl> <p>Definition at line <a class="el" href="packrgb_8h-source.html#l00160">160</a> of file <a class="el" href="packrgb_8h-source.html">packrgb.h</a>.</p> <p>References <a class="el" href="packrgb_8h-source.html#l00057">IsRGBcolorSane()</a>.</p> </div> </div><p> <a class="anchor" name="1b6ad0e26a27ebbdb3f810b137e99308"></a><!-- doxytag: member="csPackRGB::PackRGBcolorToRGB" ref="1b6ad0e26a27ebbdb3f810b137e99308" args="(const csRGBcolor *pixels, size_t numPixels)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a>* csPackRGB::PackRGBcolorToRGB </td> <td>(</td> <td class="paramtype">const <a class="el" href="structcsRGBcolor.html">csRGBcolor</a> * </td> <td class="paramname"> <em>pixels</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>numPixels</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pack an array of <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a> into a RGB byte array. <p> <dl class="remark" compact><dt><b>Remarks:</b></dt><dd>May return <code>pixels</code>. May allocate memory. Free it using <a class="el" href="structcsPackRGB.html#a5cbbed21c6aacccf874559ed4af9877" title="Frees memory possibly allocated by PackRGBcolorToRGB().">DiscardPackedRGB()</a> when finished. </dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pixels</em> </td><td>Source array of <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a> data </td></tr> <tr><td valign="top"></td><td valign="top"><em>numPixels</em> </td><td>Number of pixels in the array </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A byte array containing the source data packed as RGB. </dd></dl> <p>Definition at line <a class="el" href="packrgb_8h-source.html#l00090">90</a> of file <a class="el" href="packrgb_8h-source.html">packrgb.h</a>.</p> <p>References <a class="el" href="packrgb_8h-source.html#l00057">IsRGBcolorSane()</a>, and <a class="el" href="packrgb_8h-source.html#l00064">PackRGBcolorToRGBBuffer()</a>.</p> </div> </div><p> <a class="anchor" name="57e62f82330017bc1eb3200bb52d386c"></a><!-- doxytag: member="csPackRGB::PackRGBcolorToRGBBuffer" ref="57e62f82330017bc1eb3200bb52d386c" args="(uint8 *buf, const csRGBcolor *pixels, size_t numPixels)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void csPackRGB::PackRGBcolorToRGBBuffer </td> <td>(</td> <td class="paramtype"><a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> * </td> <td class="paramname"> <em>buf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="structcsRGBcolor.html">csRGBcolor</a> * </td> <td class="paramname"> <em>pixels</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>numPixels</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pack an array of <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a> into a RGB byte array. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Buffer to pack the data into. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pixels</em> </td><td>Source array of <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a> data </td></tr> <tr><td valign="top"></td><td valign="top"><em>numPixels</em> </td><td>Number of pixels in the array </td></tr> </table> </dl> <p>Definition at line <a class="el" href="packrgb_8h-source.html#l00064">64</a> of file <a class="el" href="packrgb_8h-source.html">packrgb.h</a>.</p> <p>References <a class="el" href="rgbpixel_8h-source.html#l00070">csRGBcolor::blue</a>, <a class="el" href="rgbpixel_8h-source.html#l00070">csRGBcolor::green</a>, <a class="el" href="packrgb_8h-source.html#l00057">IsRGBcolorSane()</a>, and <a class="el" href="rgbpixel_8h-source.html#l00070">csRGBcolor::red</a>.</p> <p>Referenced by <a class="el" href="packrgb_8h-source.html#l00090">PackRGBcolorToRGB()</a>.</p> </div> </div><p> <a class="anchor" name="3c19ff8acd15fb3e00f119748791b6d7"></a><!-- doxytag: member="csPackRGB::PackRGBpixelToRGB" ref="3c19ff8acd15fb3e00f119748791b6d7" args="(const csRGBpixel *pixels, size_t numPixels)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a>* csPackRGB::PackRGBpixelToRGB </td> <td>(</td> <td class="paramtype">const <a class="el" href="structcsRGBpixel.html">csRGBpixel</a> * </td> <td class="paramname"> <em>pixels</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>numPixels</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pack an array of <a class="el" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a> into a RGB byte array. <p> Alpha information is discarded! <dl class="remark" compact><dt><b>Remarks:</b></dt><dd>Allocates memory. Free it using delete[] when finished. </dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pixels</em> </td><td>Source array of <a class="el" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a> data </td></tr> <tr><td valign="top"></td><td valign="top"><em>numPixels</em> </td><td>Number of pixels in the array </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A byte array containing the source data packed as RGB. </dd></dl> <p>Definition at line <a class="el" href="packrgb_8h-source.html#l00190">190</a> of file <a class="el" href="packrgb_8h-source.html">packrgb.h</a>.</p> <p>References <a class="el" href="packrgb_8h-source.html#l00169">PackRGBpixelToRGB()</a>.</p> </div> </div><p> <a class="anchor" name="2462dac781ae68b222b6500206568a2a"></a><!-- doxytag: member="csPackRGB::PackRGBpixelToRGB" ref="2462dac781ae68b222b6500206568a2a" args="(const csRGBpixel *pixels, uint8 *packTo, size_t numPixels)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void csPackRGB::PackRGBpixelToRGB </td> <td>(</td> <td class="paramtype">const <a class="el" href="structcsRGBpixel.html">csRGBpixel</a> * </td> <td class="paramname"> <em>pixels</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> * </td> <td class="paramname"> <em>packTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>numPixels</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pack an array of <a class="el" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a> into a RGB byte array. <p> Alpha information is discarded! <p>Definition at line <a class="el" href="packrgb_8h-source.html#l00169">169</a> of file <a class="el" href="packrgb_8h-source.html">packrgb.h</a>.</p> <p>References <a class="el" href="rgbpixel_8h-source.html#l00155">csRGBpixel::blue</a>, <a class="el" href="rgbpixel_8h-source.html#l00155">csRGBpixel::green</a>, and <a class="el" href="rgbpixel_8h-source.html#l00155">csRGBpixel::red</a>.</p> <p>Referenced by <a class="el" href="packrgb_8h-source.html#l00190">PackRGBpixelToRGB()</a>.</p> </div> </div><p> <a class="anchor" name="e0f91dcf89035f7cef5c9abcca3cd165"></a><!-- doxytag: member="csPackRGB::UnpackRGBtoRGBcolor" ref="e0f91dcf89035f7cef5c9abcca3cd165" args="(const uint8 *rgb, size_t numPixels)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="structcsRGBcolor.html">csRGBcolor</a>* csPackRGB::UnpackRGBtoRGBcolor </td> <td>(</td> <td class="paramtype">const <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> * </td> <td class="paramname"> <em>rgb</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>numPixels</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Unpack a RGB byte array into an array of <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a>. <p> <dl class="remark" compact><dt><b>Remarks:</b></dt><dd>May return <code>pixels</code>. May allocate memory. Free it using sDiscardUnpackedRGBcolor() when finished. </dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>rgb</em> </td><td>Source array of RGB data </td></tr> <tr><td valign="top"></td><td valign="top"><em>numPixels</em> </td><td>Number of pixels in the array </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>An array containing the source data in <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a> structs. </dd></dl> <p>Definition at line <a class="el" href="packrgb_8h-source.html#l00143">143</a> of file <a class="el" href="packrgb_8h-source.html">packrgb.h</a>.</p> <p>References <a class="el" href="packrgb_8h-source.html#l00057">IsRGBcolorSane()</a>, and <a class="el" href="packrgb_8h-source.html#l00117">UnpackRGBtoRGBcolor()</a>.</p> </div> </div><p> <a class="anchor" name="c19932ae41194983155851f63ec96568"></a><!-- doxytag: member="csPackRGB::UnpackRGBtoRGBcolor" ref="c19932ae41194983155851f63ec96568" args="(csRGBcolor *buf, const uint8 *rgb, size_t numPixels)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void csPackRGB::UnpackRGBtoRGBcolor </td> <td>(</td> <td class="paramtype"><a class="el" href="structcsRGBcolor.html">csRGBcolor</a> * </td> <td class="paramname"> <em>buf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> * </td> <td class="paramname"> <em>rgb</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>numPixels</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Unpack a RGB byte array into an array of <a class="el" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a>. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Buffer to unpack the data into. </td></tr> <tr><td valign="top"></td><td valign="top"><em>rgb</em> </td><td>Source array of RGB data </td></tr> <tr><td valign="top"></td><td valign="top"><em>numPixels</em> </td><td>Number of pixels in the array </td></tr> </table> </dl> <p>Definition at line <a class="el" href="packrgb_8h-source.html#l00117">117</a> of file <a class="el" href="packrgb_8h-source.html">packrgb.h</a>.</p> <p>References <a class="el" href="rgbpixel_8h-source.html#l00070">csRGBcolor::blue</a>, <a class="el" href="rgbpixel_8h-source.html#l00070">csRGBcolor::green</a>, <a class="el" href="packrgb_8h-source.html#l00057">IsRGBcolorSane()</a>, and <a class="el" href="rgbpixel_8h-source.html#l00070">csRGBcolor::red</a>.</p> <p>Referenced by <a class="el" href="packrgb_8h-source.html#l00143">UnpackRGBtoRGBcolor()</a>.</p> </div> </div><p> <a class="anchor" name="7ac47b0f0768f275214252503173dc29"></a><!-- doxytag: member="csPackRGB::UnpackRGBtoRGBpixelBuffer" ref="7ac47b0f0768f275214252503173dc29" args="(csRGBpixel *buf, uint8 *rgb, size_t numPixels)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void csPackRGB::UnpackRGBtoRGBpixelBuffer </td> <td>(</td> <td class="paramtype"><a class="el" href="structcsRGBpixel.html">csRGBpixel</a> * </td> <td class="paramname"> <em>buf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> * </td> <td class="paramname"> <em>rgb</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>numPixels</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Unpack a RGB byte array into an array of <a class="el" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a>. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Buffer to unpack the data into. </td></tr> <tr><td valign="top"></td><td valign="top"><em>rgb</em> </td><td>Source array of RGB data </td></tr> <tr><td valign="top"></td><td valign="top"><em>numPixels</em> </td><td>Number of pixels in the array </td></tr> </table> </dl> <p>Definition at line <a class="el" href="packrgb_8h-source.html#l00203">203</a> of file <a class="el" href="packrgb_8h-source.html">packrgb.h</a>.</p> <p>References <a class="el" href="rgbpixel_8h-source.html#l00155">csRGBpixel::blue</a>, <a class="el" href="rgbpixel_8h-source.html#l00155">csRGBpixel::green</a>, and <a class="el" href="rgbpixel_8h-source.html#l00155">csRGBpixel::red</a>.</p> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li>csgfx/<a class="el" href="packrgb_8h-source.html">packrgb.h</a></ul> <hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>