| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <title>Skia: include/core/SkEndian.h File Reference</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
| </head> |
| <body> |
| <!-- Generated by Doxygen 1.6.1 --> |
| <div class="navigation" id="top"> |
| <div class="tabs"> |
| <ul> |
| <li><a href="main.html"><span>Main Page</span></a></li> |
| <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
| <li><a href="annotated.html"><span>Classes</span></a></li> |
| <li class="current"><a href="files.html"><span>Files</span></a></li> |
| </ul> |
| </div> |
| <div class="tabs"> |
| <ul> |
| <li><a href="files.html"><span>File List</span></a></li> |
| <li><a href="globals.html"><span>File Members</span></a></li> |
| </ul> |
| </div> |
| </div> |
| <div class="contents"> |
| <h1>include/core/SkEndian.h File Reference</h1><code>#include "<a class="el" href="_sk_types_8h_source.html">SkTypes.h</a>"</code><br/> |
| <div class="dynheader"> |
| Include dependency graph for SkEndian.h:</div> |
| <div class="dynsection"> |
| </div> |
| |
| <p><a href="_sk_endian_8h_source.html">Go to the source code of this file.</a></p> |
| <table border="0" cellpadding="0" cellspacing="0"> |
| <tr><td colspan="2"><h2>Defines</h2></td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_sk_endian_8h.html#a84adefa2b10290dbee0b2af3781aad4a">SkEndian_SwapBE16</a>(n) (n)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_sk_endian_8h.html#a6e50b291c3f2038e63c8de0a4644b530">SkEndian_SwapBE32</a>(n) (n)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_sk_endian_8h.html#aeaad3665697d65f886ffb052f2ba98bc">SkEndian_SwapLE16</a>(n) SkEndianSwap16(n)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_sk_endian_8h.html#a7e8a22853b0d4fad08e401a96dab7ec7">SkEndian_SwapLE32</a>(n) SkEndianSwap32(n)</td></tr> |
| <tr><td colspan="2"><h2>Functions</h2></td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="_sk_endian_8h.html#a65a8e2e65c52d77fcfe26f80d42c0fc4">SkEndianSwap16</a> (<a class="el" href="_sk_types_8h.html#a22d66c121dc25410d7ce78c59cbd4e64">U16CPU</a> value)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_sk_endian_8h.html#a1378298ae4e4307185c054543c6b8350">SkEndianSwap16s</a> (uint16_t array[], int count)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="_sk_endian_8h.html#ac46e40f4568497cf65320f01afa2f1a4">SkEndianSwap32</a> (uint32_t value)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_sk_endian_8h.html#ada8c64c33f4d74ed04cbe8f37a405744">SkEndianSwap32s</a> (uint32_t array[], int count)</td></tr> |
| </table> |
| <hr/><a name="_details"></a><h2>Detailed Description</h2> |
| <p>Macros and helper functions for handling 16 and 32 bit values in big and little endian formats. </p> |
| |
| <p>Definition in file <a class="el" href="_sk_endian_8h_source.html">SkEndian.h</a>.</p> |
| <hr/><h2>Define Documentation</h2> |
| <a class="anchor" id="a84adefa2b10290dbee0b2af3781aad4a"></a><!-- doxytag: member="SkEndian.h::SkEndian_SwapBE16" ref="a84adefa2b10290dbee0b2af3781aad4a" args="(n)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">#define SkEndian_SwapBE16</td> |
| <td>(</td> |
| <td class="paramtype">n </td> |
| <td class="paramname"></td> |
| <td> ) </td> |
| <td> (n)</td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| |
| <p>Definition at line <a class="el" href="_sk_endian_8h_source.html#l00090">90</a> of file <a class="el" href="_sk_endian_8h_source.html">SkEndian.h</a>.</p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a6e50b291c3f2038e63c8de0a4644b530"></a><!-- doxytag: member="SkEndian.h::SkEndian_SwapBE32" ref="a6e50b291c3f2038e63c8de0a4644b530" args="(n)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">#define SkEndian_SwapBE32</td> |
| <td>(</td> |
| <td class="paramtype">n </td> |
| <td class="paramname"></td> |
| <td> ) </td> |
| <td> (n)</td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| |
| <p>Definition at line <a class="el" href="_sk_endian_8h_source.html#l00091">91</a> of file <a class="el" href="_sk_endian_8h_source.html">SkEndian.h</a>.</p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aeaad3665697d65f886ffb052f2ba98bc"></a><!-- doxytag: member="SkEndian.h::SkEndian_SwapLE16" ref="aeaad3665697d65f886ffb052f2ba98bc" args="(n)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">#define SkEndian_SwapLE16</td> |
| <td>(</td> |
| <td class="paramtype">n </td> |
| <td class="paramname"></td> |
| <td> ) </td> |
| <td> SkEndianSwap16(n)</td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| |
| <p>Definition at line <a class="el" href="_sk_endian_8h_source.html#l00092">92</a> of file <a class="el" href="_sk_endian_8h_source.html">SkEndian.h</a>.</p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a7e8a22853b0d4fad08e401a96dab7ec7"></a><!-- doxytag: member="SkEndian.h::SkEndian_SwapLE32" ref="a7e8a22853b0d4fad08e401a96dab7ec7" args="(n)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">#define SkEndian_SwapLE32</td> |
| <td>(</td> |
| <td class="paramtype">n </td> |
| <td class="paramname"></td> |
| <td> ) </td> |
| <td> SkEndianSwap32(n)</td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| |
| <p>Definition at line <a class="el" href="_sk_endian_8h_source.html#l00093">93</a> of file <a class="el" href="_sk_endian_8h_source.html">SkEndian.h</a>.</p> |
| |
| </div> |
| </div> |
| <hr/><h2>Function Documentation</h2> |
| <a class="anchor" id="a65a8e2e65c52d77fcfe26f80d42c0fc4"></a><!-- doxytag: member="SkEndian.h::SkEndianSwap16" ref="a65a8e2e65c52d77fcfe26f80d42c0fc4" args="(U16CPU value)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">uint16_t SkEndianSwap16 </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="_sk_types_8h.html#a22d66c121dc25410d7ce78c59cbd4e64">U16CPU</a> </td> |
| <td class="paramname"> <em>value</em></td> |
| <td> ) </td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Swap the two bytes in the low 16bits of the parameters. e.g. 0x1234 -> 0x3412 </p> |
| |
| <p>Definition at line <a class="el" href="_sk_endian_8h_source.html#l00039">39</a> of file <a class="el" href="_sk_endian_8h_source.html">SkEndian.h</a>.</p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a1378298ae4e4307185c054543c6b8350"></a><!-- doxytag: member="SkEndian.h::SkEndianSwap16s" ref="a1378298ae4e4307185c054543c6b8350" args="(uint16_t array[], int count)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void SkEndianSwap16s </td> |
| <td>(</td> |
| <td class="paramtype">uint16_t </td> |
| <td class="paramname"> <em>array</em>[], </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">int </td> |
| <td class="paramname"> <em>count</em></td><td> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td><td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Vector version of <a class="el" href="_sk_endian_8h.html#a65a8e2e65c52d77fcfe26f80d42c0fc4">SkEndianSwap16()</a>, which swaps the low two bytes of each value in the array. </p> |
| |
| <p>Definition at line <a class="el" href="_sk_endian_8h_source.html#l00048">48</a> of file <a class="el" href="_sk_endian_8h_source.html">SkEndian.h</a>.</p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ac46e40f4568497cf65320f01afa2f1a4"></a><!-- doxytag: member="SkEndian.h::SkEndianSwap32" ref="ac46e40f4568497cf65320f01afa2f1a4" args="(uint32_t value)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">uint32_t SkEndianSwap32 </td> |
| <td>(</td> |
| <td class="paramtype">uint32_t </td> |
| <td class="paramname"> <em>value</em></td> |
| <td> ) </td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Reverse all 4 bytes in a 32bit value. e.g. 0x12345678 -> 0x78563412 </p> |
| |
| <p>Definition at line <a class="el" href="_sk_endian_8h_source.html#l00062">62</a> of file <a class="el" href="_sk_endian_8h_source.html">SkEndian.h</a>.</p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ada8c64c33f4d74ed04cbe8f37a405744"></a><!-- doxytag: member="SkEndian.h::SkEndianSwap32s" ref="ada8c64c33f4d74ed04cbe8f37a405744" args="(uint32_t array[], int count)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void SkEndianSwap32s </td> |
| <td>(</td> |
| <td class="paramtype">uint32_t </td> |
| <td class="paramname"> <em>array</em>[], </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">int </td> |
| <td class="paramname"> <em>count</em></td><td> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td><td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Vector version of <a class="el" href="_sk_endian_8h.html#a65a8e2e65c52d77fcfe26f80d42c0fc4">SkEndianSwap16()</a>, which swaps the bytes of each value in the array. </p> |
| |
| <p>Definition at line <a class="el" href="_sk_endian_8h_source.html#l00073">73</a> of file <a class="el" href="_sk_endian_8h_source.html">SkEndian.h</a>.</p> |
| |
| </div> |
| </div> |
| </div> |
| <hr size="1"/><address style="text-align: right;"><small>Generated on Tue Oct 20 11:03:40 2009 for Skia by |
| <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> |
| </body> |
| </html> |