DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.3.1"/> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 7 | <title>TurboJPEG: tjtransform Struct Reference</title> |
| 8 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 9 | <script type="text/javascript" src="jquery.js"></script> |
| 10 | <script type="text/javascript" src="dynsections.js"></script> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 11 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 12 | <script type="text/javascript" src="search/search.js"></script> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 13 | <script type="text/javascript"> |
| 14 | $(document).ready(function() { searchBox.OnSelectItem(0); }); |
| 15 | </script> |
| 16 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
DRC | c71ab2f | 2014-08-10 16:43:31 +0000 | [diff] [blame] | 17 | <link href="doxygen-extra.css" rel="stylesheet" type="text/css"/> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 18 | </head> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 19 | <body> |
| 20 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 21 | <div id="titlearea"> |
| 22 | <table cellspacing="0" cellpadding="0"> |
| 23 | <tbody> |
| 24 | <tr style="height: 56px;"> |
| 25 | <td style="padding-left: 0.5em;"> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 26 | <div id="projectname">TurboJPEG |
| 27 |  <span id="projectnumber">1.4</span> |
| 28 | </div> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 29 | </td> |
| 30 | </tr> |
| 31 | </tbody> |
| 32 | </table> |
| 33 | </div> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 34 | <!-- end header part --> |
| 35 | <!-- Generated by Doxygen 1.8.3.1 --> |
| 36 | <script type="text/javascript"> |
| 37 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 38 | </script> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 39 | <div id="navrow1" class="tabs"> |
| 40 | <ul class="tablist"> |
| 41 | <li><a href="index.html"><span>Main Page</span></a></li> |
| 42 | <li><a href="modules.html"><span>Modules</span></a></li> |
| 43 | <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 44 | <li> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 45 | <div id="MSearchBox" class="MSearchBoxInactive"> |
| 46 | <span class="left"> |
| 47 | <img id="MSearchSelect" src="search/mag_sel.png" |
| 48 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 49 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 50 | alt=""/> |
| 51 | <input type="text" id="MSearchField" value="Search" accesskey="S" |
| 52 | onfocus="searchBox.OnSearchFieldFocus(true)" |
| 53 | onblur="searchBox.OnSearchFieldFocus(false)" |
| 54 | onkeyup="searchBox.OnSearchFieldChange(event)"/> |
| 55 | </span><span class="right"> |
| 56 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| 57 | </span> |
| 58 | </div> |
| 59 | </li> |
| 60 | </ul> |
| 61 | </div> |
| 62 | <div id="navrow2" class="tabs2"> |
| 63 | <ul class="tablist"> |
| 64 | <li><a href="annotated.html"><span>Data Structures</span></a></li> |
| 65 | <li><a href="classes.html"><span>Data Structure Index</span></a></li> |
| 66 | <li><a href="functions.html"><span>Data Fields</span></a></li> |
| 67 | </ul> |
| 68 | </div> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 69 | <!-- window showing the filter options --> |
| 70 | <div id="MSearchSelectWindow" |
| 71 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 72 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 73 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 74 | <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Groups</a></div> |
| 75 | |
| 76 | <!-- iframe showing the search results (closed by default) --> |
| 77 | <div id="MSearchResultsWindow"> |
| 78 | <iframe src="javascript:void(0)" frameborder="0" |
| 79 | name="MSearchResults" id="MSearchResults"> |
| 80 | </iframe> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 81 | </div> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 82 | |
| 83 | </div><!-- top --> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 84 | <div class="header"> |
| 85 | <div class="summary"> |
| 86 | <a href="#pub-attribs">Data Fields</a> </div> |
| 87 | <div class="headertitle"> |
| 88 | <div class="title">tjtransform Struct Reference<div class="ingroups"><a class="el" href="group___turbo_j_p_e_g.html">TurboJPEG</a></div></div> </div> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 89 | </div><!--header--> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 90 | <div class="contents"> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 91 | |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 92 | <p>Lossless transform. |
| 93 | <a href="structtjtransform.html#details">More...</a></p> |
| 94 | |
| 95 | <p><code>#include <turbojpeg.h></code></p> |
| 96 | <table class="memberdecls"> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 97 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 98 | Data Fields</h2></td></tr> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 99 | <tr class="memitem:ac324e5e442abec8a961e5bf219db12cf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structtjregion.html">tjregion</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structtjtransform.html#ac324e5e442abec8a961e5bf219db12cf">r</a></td></tr> |
| 100 | <tr class="memdesc:ac324e5e442abec8a961e5bf219db12cf"><td class="mdescLeft"> </td><td class="mdescRight">Cropping region. <a href="#ac324e5e442abec8a961e5bf219db12cf">More...</a><br/></td></tr> |
| 101 | <tr class="separator:ac324e5e442abec8a961e5bf219db12cf"><td class="memSeparator" colspan="2"> </td></tr> |
| 102 | <tr class="memitem:a2525aab4ba6978a1c273f74fef50e498"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structtjtransform.html#a2525aab4ba6978a1c273f74fef50e498">op</a></td></tr> |
| 103 | <tr class="memdesc:a2525aab4ba6978a1c273f74fef50e498"><td class="mdescLeft"> </td><td class="mdescRight">One of the <a class="el" href="group___turbo_j_p_e_g.html#ga2de531af4e7e6c4f124908376b354866">transform operations</a>. <a href="#a2525aab4ba6978a1c273f74fef50e498">More...</a><br/></td></tr> |
| 104 | <tr class="separator:a2525aab4ba6978a1c273f74fef50e498"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 | <tr class="memitem:ac0e74655baa4402209a21e1ae481c8f6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structtjtransform.html#ac0e74655baa4402209a21e1ae481c8f6">options</a></td></tr> |
| 106 | <tr class="memdesc:ac0e74655baa4402209a21e1ae481c8f6"><td class="mdescLeft"> </td><td class="mdescRight">The bitwise OR of one of more of the <a class="el" href="group___turbo_j_p_e_g.html#ga9c771a757fc1294add611906b89ab2d2">transform options</a>. <a href="#ac0e74655baa4402209a21e1ae481c8f6">More...</a><br/></td></tr> |
| 107 | <tr class="separator:ac0e74655baa4402209a21e1ae481c8f6"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:a688fe8f1a8ecc12a538d9e561cf338e3"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="structtjtransform.html#a688fe8f1a8ecc12a538d9e561cf338e3">data</a></td></tr> |
| 109 | <tr class="memdesc:a688fe8f1a8ecc12a538d9e561cf338e3"><td class="mdescLeft"> </td><td class="mdescRight">Arbitrary data that can be accessed within the body of the callback function. <a href="#a688fe8f1a8ecc12a538d9e561cf338e3">More...</a><br/></td></tr> |
| 110 | <tr class="separator:a688fe8f1a8ecc12a538d9e561cf338e3"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:a43ee1bcdd2a8d7249a756774f78793c1"><td class="memItemLeft" align="right" valign="top">int(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structtjtransform.html#a43ee1bcdd2a8d7249a756774f78793c1">customFilter</a> )(short *coeffs, <a class="el" href="structtjregion.html">tjregion</a> arrayRegion, <a class="el" href="structtjregion.html">tjregion</a> planeRegion, int componentIndex, int transformIndex, struct <a class="el" href="structtjtransform.html">tjtransform</a> *transform)</td></tr> |
DRC | cd7c3e6 | 2013-08-23 02:49:25 +0000 | [diff] [blame] | 112 | <tr class="memdesc:a43ee1bcdd2a8d7249a756774f78793c1"><td class="mdescLeft"> </td><td class="mdescRight">A callback function that can be used to modify the DCT coefficients after they are losslessly transformed but before they are transcoded to a new JPEG image. <a href="#a43ee1bcdd2a8d7249a756774f78793c1">More...</a><br/></td></tr> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 113 | <tr class="separator:a43ee1bcdd2a8d7249a756774f78793c1"><td class="memSeparator" colspan="2"> </td></tr> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 114 | </table> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 115 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 116 | <div class="textblock"><p>Lossless transform. </p> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 117 | </div><h2 class="groupheader">Field Documentation</h2> |
| 118 | <a class="anchor" id="a43ee1bcdd2a8d7249a756774f78793c1"></a> |
DRC | 7bf04d3 | 2011-09-17 00:18:31 +0000 | [diff] [blame] | 119 | <div class="memitem"> |
| 120 | <div class="memproto"> |
| 121 | <table class="memname"> |
| 122 | <tr> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 123 | <td class="memname">int(* tjtransform::customFilter)(short *coeffs, <a class="el" href="structtjregion.html">tjregion</a> arrayRegion, <a class="el" href="structtjregion.html">tjregion</a> planeRegion, int componentIndex, int transformIndex, struct <a class="el" href="structtjtransform.html">tjtransform</a> *transform)</td> |
DRC | 7bf04d3 | 2011-09-17 00:18:31 +0000 | [diff] [blame] | 124 | </tr> |
| 125 | </table> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 126 | </div><div class="memdoc"> |
DRC | 7bf04d3 | 2011-09-17 00:18:31 +0000 | [diff] [blame] | 127 | |
DRC | cd7c3e6 | 2013-08-23 02:49:25 +0000 | [diff] [blame] | 128 | <p>A callback function that can be used to modify the DCT coefficients after they are losslessly transformed but before they are transcoded to a new JPEG image. </p> |
DRC | 7bf04d3 | 2011-09-17 00:18:31 +0000 | [diff] [blame] | 129 | <p>This allows for custom filters or other transformations to be applied in the frequency domain.</p> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 130 | <dl class="params"><dt>Parameters</dt><dd> |
DRC | 7bf04d3 | 2011-09-17 00:18:31 +0000 | [diff] [blame] | 131 | <table class="params"> |
DRC | 9d77dad | 2014-08-12 15:06:30 +0000 | [diff] [blame] | 132 | <tr><td class="paramname">coeffs</td><td>pointer to an array of transformed DCT coefficients. (NOTE: this pointer is not guaranteed to be valid once the callback returns, so applications wishing to hand off the DCT coefficients to another function or library should make a copy of them within the body of the callback.)</td></tr> |
| 133 | <tr><td class="paramname">arrayRegion</td><td><a class="el" href="structtjregion.html" title="Cropping region.">tjregion</a> structure containing the width and height of the array pointed to by <code>coeffs</code> as well as its offset relative to the component plane. TurboJPEG implementations may choose to split each component plane into multiple DCT coefficient arrays and call the callback function once for each array.</td></tr> |
| 134 | <tr><td class="paramname">planeRegion</td><td><a class="el" href="structtjregion.html" title="Cropping region.">tjregion</a> structure containing the width and height of the component plane to which <code>coeffs</code> belongs</td></tr> |
| 135 | <tr><td class="paramname">componentID</td><td>ID number of the component plane to which <code>coeffs</code> belongs (Y, Cb, and Cr have, respectively, ID's of 0, 1, and 2 in typical JPEG images.)</td></tr> |
| 136 | <tr><td class="paramname">transformID</td><td>ID number of the transformed image to which <code>coeffs</code> belongs. This is the same as the index of the transform in the <code>transforms</code> array that was passed to <a class="el" href="group___turbo_j_p_e_g.html#gae403193ceb4aafb7e0f56ab587b48616" title="Losslessly transform a JPEG image into another JPEG image.">tjTransform()</a>.</td></tr> |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 137 | <tr><td class="paramname">transform</td><td>a pointer to a <a class="el" href="structtjtransform.html" title="Lossless transform.">tjtransform</a> structure that specifies the parameters and/or cropping region for this transform</td></tr> |
DRC | 7bf04d3 | 2011-09-17 00:18:31 +0000 | [diff] [blame] | 138 | </table> |
| 139 | </dd> |
| 140 | </dl> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 141 | <dl class="section return"><dt>Returns</dt><dd>0 if the callback was successful, or -1 if an error occurred. </dd></dl> |
DRC | 7bf04d3 | 2011-09-17 00:18:31 +0000 | [diff] [blame] | 142 | |
| 143 | </div> |
| 144 | </div> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 145 | <a class="anchor" id="a688fe8f1a8ecc12a538d9e561cf338e3"></a> |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 146 | <div class="memitem"> |
| 147 | <div class="memproto"> |
| 148 | <table class="memname"> |
| 149 | <tr> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 150 | <td class="memname">void* tjtransform::data</td> |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 151 | </tr> |
| 152 | </table> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 153 | </div><div class="memdoc"> |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 154 | |
| 155 | <p>Arbitrary data that can be accessed within the body of the callback function. </p> |
| 156 | |
| 157 | </div> |
| 158 | </div> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 159 | <a class="anchor" id="a2525aab4ba6978a1c273f74fef50e498"></a> |
DRC | 25b995a | 2011-05-21 15:34:54 +0000 | [diff] [blame] | 160 | <div class="memitem"> |
| 161 | <div class="memproto"> |
| 162 | <table class="memname"> |
| 163 | <tr> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 164 | <td class="memname">int tjtransform::op</td> |
DRC | 25b995a | 2011-05-21 15:34:54 +0000 | [diff] [blame] | 165 | </tr> |
| 166 | </table> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 167 | </div><div class="memdoc"> |
DRC | 25b995a | 2011-05-21 15:34:54 +0000 | [diff] [blame] | 168 | |
| 169 | <p>One of the <a class="el" href="group___turbo_j_p_e_g.html#ga2de531af4e7e6c4f124908376b354866">transform operations</a>. </p> |
| 170 | |
| 171 | </div> |
| 172 | </div> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 173 | <a class="anchor" id="ac0e74655baa4402209a21e1ae481c8f6"></a> |
DRC | 25b995a | 2011-05-21 15:34:54 +0000 | [diff] [blame] | 174 | <div class="memitem"> |
| 175 | <div class="memproto"> |
| 176 | <table class="memname"> |
| 177 | <tr> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 178 | <td class="memname">int tjtransform::options</td> |
DRC | 25b995a | 2011-05-21 15:34:54 +0000 | [diff] [blame] | 179 | </tr> |
| 180 | </table> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 181 | </div><div class="memdoc"> |
DRC | 25b995a | 2011-05-21 15:34:54 +0000 | [diff] [blame] | 182 | |
| 183 | <p>The bitwise OR of one of more of the <a class="el" href="group___turbo_j_p_e_g.html#ga9c771a757fc1294add611906b89ab2d2">transform options</a>. </p> |
| 184 | |
| 185 | </div> |
| 186 | </div> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 187 | <a class="anchor" id="ac324e5e442abec8a961e5bf219db12cf"></a> |
DRC | 25b995a | 2011-05-21 15:34:54 +0000 | [diff] [blame] | 188 | <div class="memitem"> |
| 189 | <div class="memproto"> |
| 190 | <table class="memname"> |
| 191 | <tr> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 192 | <td class="memname"><a class="el" href="structtjregion.html">tjregion</a> tjtransform::r</td> |
DRC | 25b995a | 2011-05-21 15:34:54 +0000 | [diff] [blame] | 193 | </tr> |
| 194 | </table> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 195 | </div><div class="memdoc"> |
DRC | 25b995a | 2011-05-21 15:34:54 +0000 | [diff] [blame] | 196 | |
| 197 | <p>Cropping region. </p> |
| 198 | |
| 199 | </div> |
| 200 | </div> |
| 201 | <hr/>The documentation for this struct was generated from the following file:<ul> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 202 | <li>turbojpeg.h</li> |
| 203 | </ul> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 204 | </div><!-- contents --> |
| 205 | <!-- start footer part --> |
| 206 | <hr class="footer"/><address class="footer"><small> |
DRC | ca866c4 | 2013-08-18 09:37:48 +0000 | [diff] [blame] | 207 | Generated by  <a href="http://www.doxygen.org/index.html"> |
DRC | a4a48ed | 2013-08-18 08:47:03 +0000 | [diff] [blame] | 208 | <img class="footer" src="doxygen.png" alt="doxygen"/> |
| 209 | </a> 1.8.3.1 |
| 210 | </small></address> |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 211 | </body> |
| 212 | </html> |