562 lines
51 KiB
HTML
562 lines
51 KiB
HTML
<!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"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.9.1"/>
|
|
<title>discoverpixy: Pixy Frame Helper</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">discoverpixy
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.9.1 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">Pixy Frame Helper<div class="ingroups"><a class="el" href="group__app.html">Application</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="dynheader">
|
|
Collaboration diagram for Pixy Frame Helper:</div>
|
|
<div class="dyncontent">
|
|
<center><table><tr><td><img src="group__pixy__helper.png" border="0" alt="" usemap="#group____pixy____helper"/>
|
|
<map name="group____pixy____helper" id="group____pixy____helper">
|
|
<area shape="rect" id="node1" href="group__app.html" title="Application" alt="" coords="5,5,92,32"/></map>
|
|
</td></tr></table></center>
|
|
</div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga31b46efdf685d2337447b1e529693e2f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__pixy__helper.html#ga31b46efdf685d2337447b1e529693e2f">pixy_render_full_frame</a> (uint16_t x, uint16_t y)</td></tr>
|
|
<tr class="separator:ga31b46efdf685d2337447b1e529693e2f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad8071a378a78f150cd14bbbd9b93c925"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__pixy__helper.html#gad8071a378a78f150cd14bbbd9b93c925">pixy_render_cropped_frame</a> (uint16_t x, uint16_t y, uint16_t xoffset, uint16_t yoffset, uint16_t width, uint16_t height)</td></tr>
|
|
<tr class="separator:gad8071a378a78f150cd14bbbd9b93c925"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaeb47b641ad8f8cb10c26debb27c7dead"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__pixy__helper.html#gaeb47b641ad8f8cb10c26debb27c7dead">pixy_save_full_frame</a> (<a class="el" href="struct_f_i_l_e___h_a_n_d_l_e.html">FILE_HANDLE</a> *handle)</td></tr>
|
|
<tr class="separator:gaeb47b641ad8f8cb10c26debb27c7dead"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf0820ad9bb1ae6791fecb3916372c479"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__pixy__helper.html#gaf0820ad9bb1ae6791fecb3916372c479">pixy_save_cropped_frame</a> (<a class="el" href="struct_f_i_l_e___h_a_n_d_l_e.html">FILE_HANDLE</a> *handle, uint16_t xoffset, uint16_t yoffset, uint16_t width, uint16_t height)</td></tr>
|
|
<tr class="separator:gaf0820ad9bb1ae6791fecb3916372c479"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad9068bef13bfd5e3cee9ecfe4d070f02"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__pixy__helper.html#gad9068bef13bfd5e3cee9ecfe4d070f02">pixy_cc_set_region</a> (uint8_t signum, uint16_t xoffset, uint16_t yoffset, uint16_t width, uint16_t height)</td></tr>
|
|
<tr class="separator:gad9068bef13bfd5e3cee9ecfe4d070f02"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>A collection of helper functions that allow receiving and rendering a frame from pixy onto the display. Furthermore you can select a color in a frame, to use for tracking. </p>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="gad9068bef13bfd5e3cee9ecfe4d070f02"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pixy_cc_set_region </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>signum</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>xoffset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>yoffset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>width</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>height</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Sets the color signature to the color in the selected region of the frame </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">signum</td><td>the color signature number (1..7) </td></tr>
|
|
<tr><td class="paramname">xoffset</td><td>The x-Coordinate of the topleft point of the region </td></tr>
|
|
<tr><td class="paramname">yoffset</td><td>The y-Coordinate of the topleft point of the region </td></tr>
|
|
<tr><td class="paramname">width</td><td>The width of the region </td></tr>
|
|
<tr><td class="paramname">height</td><td>The height of the region </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise the errorcode from pixy </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="pixy__frame_8c_source.html#l00233">233</a> of file <a class="el" href="pixy__frame_8c_source.html">pixy_frame.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> {</div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  int32_t response;</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordtype">int</span> return_value = <a class="code" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d">pixy_command</a>(<span class="stringliteral">"cc_setSigRegion"</span>, <span class="comment">// String id for remote procedure</span></div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <a class="code" href="pixydefs_8h.html#a1d913ae2edf2ac73d3e18dcfdf1cbfda">INT32</a>(0), <span class="comment">// type = normal color code</span></div>
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <a class="code" href="pixydefs_8h.html#ab639628cd651b0efb8e0e054aa37bc2a">INT8</a>(signum),</div>
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(xoffset), <span class="comment">// xoffset</span></div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(yoffset), <span class="comment">// yoffset</span></div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(<a class="code" href="struct_block.html#ad0eab1042455a2067c812ab8071d5376">width</a>), <span class="comment">// width</span></div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(<a class="code" href="struct_block.html#a81c9f8d0b8c3b49d770be14dbe9f0d37">height</a>), <span class="comment">// height</span></div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="code" href="pixydefs_8h.html#a1e61ec3195f40970b492ff9ace3ce84b">END_OUT_ARGS</a>, <span class="comment">// separator</span></div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  &response, <span class="comment">// pointer to mem address for return value</span></div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="code" href="pixydefs_8h.html#a3997998ea42c5ea31902d9e0b7df4bd5">END_IN_ARGS</a>);</div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordflow">return</span> return_value;</div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> }</div>
|
|
<div class="ttc" id="pixydefs_8h_html_a2e349ae1ccfa1fb9ea362333920c6d96"><div class="ttname"><a href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a></div><div class="ttdeci">#define INT16(v)</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00063">pixydefs.h:63</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a1d913ae2edf2ac73d3e18dcfdf1cbfda"><div class="ttname"><a href="pixydefs_8h.html#a1d913ae2edf2ac73d3e18dcfdf1cbfda">INT32</a></div><div class="ttdeci">#define INT32(v)</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00065">pixydefs.h:65</a></div></div>
|
|
<div class="ttc" id="group__pixy_html_ga3d55779001cc649ed85be1a92f09892d"><div class="ttname"><a href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d">pixy_command</a></div><div class="ttdeci">int pixy_command(const char *name,...)</div><div class="ttdoc">Send a command to Pixy. </div></div>
|
|
<div class="ttc" id="struct_block_html_a81c9f8d0b8c3b49d770be14dbe9f0d37"><div class="ttname"><a href="struct_block.html#a81c9f8d0b8c3b49d770be14dbe9f0d37">Block::height</a></div><div class="ttdeci">uint16_t height</div><div class="ttdef"><b>Definition:</b> <a href="pixy_8h_source.html#l00083">pixy.h:83</a></div></div>
|
|
<div class="ttc" id="struct_block_html_ad0eab1042455a2067c812ab8071d5376"><div class="ttname"><a href="struct_block.html#ad0eab1042455a2067c812ab8071d5376">Block::width</a></div><div class="ttdeci">uint16_t width</div><div class="ttdef"><b>Definition:</b> <a href="pixy_8h_source.html#l00082">pixy.h:82</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a1e61ec3195f40970b492ff9ace3ce84b"><div class="ttname"><a href="pixydefs_8h.html#a1e61ec3195f40970b492ff9ace3ce84b">END_OUT_ARGS</a></div><div class="ttdeci">#define END_OUT_ARGS</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00089">pixydefs.h:89</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a3997998ea42c5ea31902d9e0b7df4bd5"><div class="ttname"><a href="pixydefs_8h.html#a3997998ea42c5ea31902d9e0b7df4bd5">END_IN_ARGS</a></div><div class="ttdeci">#define END_IN_ARGS</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00090">pixydefs.h:90</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_ab639628cd651b0efb8e0e054aa37bc2a"><div class="ttname"><a href="pixydefs_8h.html#ab639628cd651b0efb8e0e054aa37bc2a">INT8</a></div><div class="ttdeci">#define INT8(v)</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00061">pixydefs.h:61</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group__pixy__helper_gad9068bef13bfd5e3cee9ecfe4d070f02_cgraph.png" border="0" usemap="#group__pixy__helper_gad9068bef13bfd5e3cee9ecfe4d070f02_cgraph" alt=""/></div>
|
|
<map name="group__pixy__helper_gad9068bef13bfd5e3cee9ecfe4d070f02_cgraph" id="group__pixy__helper_gad9068bef13bfd5e3cee9ecfe4d070f02_cgraph">
|
|
<area shape="rect" id="node2" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d" title="Send a command to Pixy. " alt="" coords="188,5,299,32"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
<p><div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group__pixy__helper_gad9068bef13bfd5e3cee9ecfe4d070f02_icgraph.png" border="0" usemap="#group__pixy__helper_gad9068bef13bfd5e3cee9ecfe4d070f02_icgraph" alt=""/></div>
|
|
<map name="group__pixy__helper_gad9068bef13bfd5e3cee9ecfe4d070f02_icgraph" id="group__pixy__helper_gad9068bef13bfd5e3cee9ecfe4d070f02_icgraph">
|
|
<area shape="rect" id="node2" href="screen__tracking_8c.html#a5e8f84ee8ff4bf827775c38ae6752509" title="update" alt="" coords="188,5,249,32"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gad8071a378a78f150cd14bbbd9b93c925"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pixy_render_cropped_frame </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>xoffset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>yoffset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>width</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>height</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Receives a cropped frame from pixy and display's it on the display with the topleft corner at (x,y) </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>The x-Coordinate of the top left corner to draw the image </td></tr>
|
|
<tr><td class="paramname">y</td><td>The y-Coordinate of the top left corner to draw the image </td></tr>
|
|
<tr><td class="paramname">xoffset</td><td>The x-Coordinate on the pixy image from where on you want the frame data </td></tr>
|
|
<tr><td class="paramname">yoffset</td><td>The y-Coordinate on the pixy image from where on you want the frame data </td></tr>
|
|
<tr><td class="paramname">width</td><td>The width of the image recorded from pixy </td></tr>
|
|
<tr><td class="paramname">height</td><td>The height of the image recorded from pixy </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise the errorcode from pixy </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="pixy__frame_8c_source.html#l00031">31</a> of file <a class="el" href="pixy__frame_8c_source.html">pixy_frame.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  uint8_t* videodata;</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  int32_t response;</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  int32_t fourccc;</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  int8_t renderflags;</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  uint16_t xwidth;</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  uint16_t ywidth;</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  uint32_t size;</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">int</span> return_value = <a class="code" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d">pixy_command</a>(<span class="stringliteral">"cam_getFrame"</span>, <span class="comment">// String id for remote procedure</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="pixydefs_8h.html#ab639628cd651b0efb8e0e054aa37bc2a">INT8</a>(0x21), <span class="comment">// mode</span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(xoffset), <span class="comment">// xoffset</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(yoffset), <span class="comment">// yoffset</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(<a class="code" href="struct_block.html#ad0eab1042455a2067c812ab8071d5376">width</a>), <span class="comment">// width</span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(<a class="code" href="struct_block.html#a81c9f8d0b8c3b49d770be14dbe9f0d37">height</a>), <span class="comment">// height</span></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="pixydefs_8h.html#a1e61ec3195f40970b492ff9ace3ce84b">END_OUT_ARGS</a>, <span class="comment">// separator</span></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  &response, <span class="comment">// pointer to mem address for return value</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  &fourccc,</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  &renderflags,</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  &xwidth,</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  &ywidth,</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  &size,</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  &videodata, <span class="comment">// pointer to mem address for returned frame</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="pixydefs_8h.html#a3997998ea42c5ea31902d9e0b7df4bd5">END_IN_ARGS</a>);</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">if</span> (return_value == 0) {</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  return_value = <a class="code" href="pixy__frame_8c.html#afb06c0b9c06d1309cf67dcf1a9fc3eef">renderBA81</a>(<a class="code" href="struct_block.html#a4dde988b1b2adba65ae3efa69f65d960">x</a>, <a class="code" href="struct_block.html#ab0580f504a7428539be299fa71565f30">y</a>, xwidth, ywidth, size, videodata);</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> return_value;</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> }</div>
|
|
<div class="ttc" id="pixy__frame_8c_html_afb06c0b9c06d1309cf67dcf1a9fc3eef"><div class="ttname"><a href="pixy__frame_8c.html#afb06c0b9c06d1309cf67dcf1a9fc3eef">renderBA81</a></div><div class="ttdeci">static int renderBA81(uint16_t xpos, uint16_t ypos, uint16_t width, uint16_t height, uint32_t frameLen, uint8_t *frame)</div><div class="ttdef"><b>Definition:</b> <a href="pixy__frame_8c_source.html#l00139">pixy_frame.c:139</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a2e349ae1ccfa1fb9ea362333920c6d96"><div class="ttname"><a href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a></div><div class="ttdeci">#define INT16(v)</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00063">pixydefs.h:63</a></div></div>
|
|
<div class="ttc" id="struct_block_html_ab0580f504a7428539be299fa71565f30"><div class="ttname"><a href="struct_block.html#ab0580f504a7428539be299fa71565f30">Block::y</a></div><div class="ttdeci">uint16_t y</div><div class="ttdef"><b>Definition:</b> <a href="pixy_8h_source.html#l00081">pixy.h:81</a></div></div>
|
|
<div class="ttc" id="group__pixy_html_ga3d55779001cc649ed85be1a92f09892d"><div class="ttname"><a href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d">pixy_command</a></div><div class="ttdeci">int pixy_command(const char *name,...)</div><div class="ttdoc">Send a command to Pixy. </div></div>
|
|
<div class="ttc" id="struct_block_html_a81c9f8d0b8c3b49d770be14dbe9f0d37"><div class="ttname"><a href="struct_block.html#a81c9f8d0b8c3b49d770be14dbe9f0d37">Block::height</a></div><div class="ttdeci">uint16_t height</div><div class="ttdef"><b>Definition:</b> <a href="pixy_8h_source.html#l00083">pixy.h:83</a></div></div>
|
|
<div class="ttc" id="struct_block_html_ad0eab1042455a2067c812ab8071d5376"><div class="ttname"><a href="struct_block.html#ad0eab1042455a2067c812ab8071d5376">Block::width</a></div><div class="ttdeci">uint16_t width</div><div class="ttdef"><b>Definition:</b> <a href="pixy_8h_source.html#l00082">pixy.h:82</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a1e61ec3195f40970b492ff9ace3ce84b"><div class="ttname"><a href="pixydefs_8h.html#a1e61ec3195f40970b492ff9ace3ce84b">END_OUT_ARGS</a></div><div class="ttdeci">#define END_OUT_ARGS</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00089">pixydefs.h:89</a></div></div>
|
|
<div class="ttc" id="struct_block_html_a4dde988b1b2adba65ae3efa69f65d960"><div class="ttname"><a href="struct_block.html#a4dde988b1b2adba65ae3efa69f65d960">Block::x</a></div><div class="ttdeci">uint16_t x</div><div class="ttdef"><b>Definition:</b> <a href="pixy_8h_source.html#l00080">pixy.h:80</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a3997998ea42c5ea31902d9e0b7df4bd5"><div class="ttname"><a href="pixydefs_8h.html#a3997998ea42c5ea31902d9e0b7df4bd5">END_IN_ARGS</a></div><div class="ttdeci">#define END_IN_ARGS</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00090">pixydefs.h:90</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_ab639628cd651b0efb8e0e054aa37bc2a"><div class="ttname"><a href="pixydefs_8h.html#ab639628cd651b0efb8e0e054aa37bc2a">INT8</a></div><div class="ttdeci">#define INT8(v)</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00061">pixydefs.h:61</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group__pixy__helper_gad8071a378a78f150cd14bbbd9b93c925_cgraph.png" border="0" usemap="#group__pixy__helper_gad8071a378a78f150cd14bbbd9b93c925_cgraph" alt=""/></div>
|
|
<map name="group__pixy__helper_gad8071a378a78f150cd14bbbd9b93c925_cgraph" id="group__pixy__helper_gad8071a378a78f150cd14bbbd9b93c925_cgraph">
|
|
<area shape="rect" id="node2" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d" title="Send a command to Pixy. " alt="" coords="196,5,307,32"/><area shape="rect" id="node3" href="pixy__frame_8c.html#afb06c0b9c06d1309cf67dcf1a9fc3eef" title="renderBA81" alt="" coords="206,56,297,83"/><area shape="rect" id="node4" href="pixy__frame_8c.html#ac0bb3b512eb46a18bda67293e4453d76" title="interpolateBayer" alt="" coords="383,5,499,32"/><area shape="rect" id="node5" href="group__tft.html#ga82f9b498c57296310f0dfdaa3d7928ac" title="tft_draw_pixel" alt="" coords="390,56,491,83"/><area shape="rect" id="node7" href="group__tft.html#gab8914c547e697f173306d929ca56988f" title="tft_draw_bitmap_unscaled" alt="" coords="355,108,527,135"/><area shape="rect" id="node6" href="group__ll__tft.html#gad219f39d734f774eb4f5390b5f9f8309" title="ll_tft_draw_pixel" alt="" coords="581,53,695,80"/><area shape="rect" id="node8" href="group__ll__tft.html#gafaf8d5f70b46fcbdd3c700a030f14b61" title="ll_tft_draw_bitmap\l_unscaled" alt="" coords="575,105,701,146"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
<p><div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group__pixy__helper_gad8071a378a78f150cd14bbbd9b93c925_icgraph.png" border="0" usemap="#group__pixy__helper_gad8071a378a78f150cd14bbbd9b93c925_icgraph" alt=""/></div>
|
|
<map name="group__pixy__helper_gad8071a378a78f150cd14bbbd9b93c925_icgraph" id="group__pixy__helper_gad8071a378a78f150cd14bbbd9b93c925_icgraph">
|
|
<area shape="rect" id="node2" href="group__pixy__helper.html#ga31b46efdf685d2337447b1e529693e2f" title="pixy_render_full_frame" alt="" coords="196,13,347,39"/><area shape="rect" id="node3" href="screen__photomode_8c.html#a5e8f84ee8ff4bf827775c38ae6752509" title="update" alt="" coords="395,13,456,39"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga31b46efdf685d2337447b1e529693e2f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pixy_render_full_frame </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>y</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Receives a fullsized frame from pixy and display's it on the display with the topleft corner at (x,y) </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>The x-Coordinate of the top left corner </td></tr>
|
|
<tr><td class="paramname">y</td><td>The y-Coordinate of the top left corner </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise the errorcode from pixy </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="pixy__frame_8c_source.html#l00025">25</a> of file <a class="el" href="pixy__frame_8c_source.html">pixy_frame.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">return</span> <a class="code" href="group__pixy__helper.html#gad8071a378a78f150cd14bbbd9b93c925">pixy_render_cropped_frame</a>(<a class="code" href="struct_block.html#a4dde988b1b2adba65ae3efa69f65d960">x</a>, <a class="code" href="struct_block.html#ab0580f504a7428539be299fa71565f30">y</a>, 0, 0, 320, 200);</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> }</div>
|
|
<div class="ttc" id="struct_block_html_ab0580f504a7428539be299fa71565f30"><div class="ttname"><a href="struct_block.html#ab0580f504a7428539be299fa71565f30">Block::y</a></div><div class="ttdeci">uint16_t y</div><div class="ttdef"><b>Definition:</b> <a href="pixy_8h_source.html#l00081">pixy.h:81</a></div></div>
|
|
<div class="ttc" id="group__pixy__helper_html_gad8071a378a78f150cd14bbbd9b93c925"><div class="ttname"><a href="group__pixy__helper.html#gad8071a378a78f150cd14bbbd9b93c925">pixy_render_cropped_frame</a></div><div class="ttdeci">int pixy_render_cropped_frame(uint16_t x, uint16_t y, uint16_t xoffset, uint16_t yoffset, uint16_t width, uint16_t height)</div><div class="ttdef"><b>Definition:</b> <a href="pixy__frame_8c_source.html#l00031">pixy_frame.c:31</a></div></div>
|
|
<div class="ttc" id="struct_block_html_a4dde988b1b2adba65ae3efa69f65d960"><div class="ttname"><a href="struct_block.html#a4dde988b1b2adba65ae3efa69f65d960">Block::x</a></div><div class="ttdeci">uint16_t x</div><div class="ttdef"><b>Definition:</b> <a href="pixy_8h_source.html#l00080">pixy.h:80</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group__pixy__helper_ga31b46efdf685d2337447b1e529693e2f_cgraph.png" border="0" usemap="#group__pixy__helper_ga31b46efdf685d2337447b1e529693e2f_cgraph" alt=""/></div>
|
|
<map name="group__pixy__helper_ga31b46efdf685d2337447b1e529693e2f_cgraph" id="group__pixy__helper_ga31b46efdf685d2337447b1e529693e2f_cgraph">
|
|
<area shape="rect" id="node2" href="group__pixy__helper.html#gad8071a378a78f150cd14bbbd9b93c925" title="pixy_render_cropped\l_frame" alt="" coords="204,23,347,65"/><area shape="rect" id="node3" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d" title="Send a command to Pixy. " alt="" coords="395,5,505,32"/><area shape="rect" id="node4" href="pixy__frame_8c.html#afb06c0b9c06d1309cf67dcf1a9fc3eef" title="renderBA81" alt="" coords="405,56,495,83"/><area shape="rect" id="node5" href="pixy__frame_8c.html#ac0bb3b512eb46a18bda67293e4453d76" title="interpolateBayer" alt="" coords="581,5,697,32"/><area shape="rect" id="node6" href="group__tft.html#ga82f9b498c57296310f0dfdaa3d7928ac" title="tft_draw_pixel" alt="" coords="589,56,690,83"/><area shape="rect" id="node8" href="group__tft.html#gab8914c547e697f173306d929ca56988f" title="tft_draw_bitmap_unscaled" alt="" coords="553,108,725,135"/><area shape="rect" id="node7" href="group__ll__tft.html#gad219f39d734f774eb4f5390b5f9f8309" title="ll_tft_draw_pixel" alt="" coords="779,53,894,80"/><area shape="rect" id="node9" href="group__ll__tft.html#gafaf8d5f70b46fcbdd3c700a030f14b61" title="ll_tft_draw_bitmap\l_unscaled" alt="" coords="773,105,900,146"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
<p><div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group__pixy__helper_ga31b46efdf685d2337447b1e529693e2f_icgraph.png" border="0" usemap="#group__pixy__helper_ga31b46efdf685d2337447b1e529693e2f_icgraph" alt=""/></div>
|
|
<map name="group__pixy__helper_ga31b46efdf685d2337447b1e529693e2f_icgraph" id="group__pixy__helper_ga31b46efdf685d2337447b1e529693e2f_icgraph">
|
|
<area shape="rect" id="node2" href="screen__photomode_8c.html#a5e8f84ee8ff4bf827775c38ae6752509" title="update" alt="" coords="204,5,265,32"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaf0820ad9bb1ae6791fecb3916372c479"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pixy_save_cropped_frame </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_f_i_l_e___h_a_n_d_l_e.html">FILE_HANDLE</a> * </td>
|
|
<td class="paramname"><em>handle</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>xoffset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>yoffset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>width</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>height</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Receives a cropped frame from pixy and saves it to the given file in the 24bit (b,g,a) format. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">handle</td><td>The file to write the data to. The file must be open and it should be seeked to the right position. </td></tr>
|
|
<tr><td class="paramname">xoffset</td><td>The x-Coordinate on the pixy image from where on you want the frame data </td></tr>
|
|
<tr><td class="paramname">yoffset</td><td>The y-Coordinate on the pixy image from where on you want the frame data </td></tr>
|
|
<tr><td class="paramname">width</td><td>The width of the image recorded from pixy </td></tr>
|
|
<tr><td class="paramname">height</td><td>The height of the image recorded from pixy </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise the errorcode from pixy </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="pixy__frame_8c_source.html#l00070">70</a> of file <a class="el" href="pixy__frame_8c_source.html">pixy_frame.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> {</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  uint8_t* videodata;</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  int32_t response;</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  int32_t fourccc;</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  int8_t renderflags;</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  uint16_t xwidth;</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  uint16_t ywidth;</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  uint32_t size;</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">int</span> return_value = <a class="code" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d">pixy_command</a>(<span class="stringliteral">"cam_getFrame"</span>, <span class="comment">// String id for remote procedure</span></div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="pixydefs_8h.html#ab639628cd651b0efb8e0e054aa37bc2a">INT8</a>(0x21), <span class="comment">// mode</span></div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(xoffset), <span class="comment">// xoffset</span></div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(yoffset), <span class="comment">// yoffset</span></div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(<a class="code" href="struct_block.html#ad0eab1042455a2067c812ab8071d5376">width</a>), <span class="comment">// width</span></div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a>(<a class="code" href="struct_block.html#a81c9f8d0b8c3b49d770be14dbe9f0d37">height</a>), <span class="comment">// height</span></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="pixydefs_8h.html#a1e61ec3195f40970b492ff9ace3ce84b">END_OUT_ARGS</a>, <span class="comment">// separator</span></div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  &response, <span class="comment">// pointer to mem address for return value</span></div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  &fourccc,</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  &renderflags,</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  &xwidth,</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  &ywidth,</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  &size,</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  &videodata, <span class="comment">// pointer to mem address for returned frame</span></div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="pixydefs_8h.html#a3997998ea42c5ea31902d9e0b7df4bd5">END_IN_ARGS</a>);</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">if</span> (return_value == 0) {</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  return_value = <a class="code" href="pixy__frame_8c.html#a9b12014ced2f09e5e7d6646b966552ef">saveBA81</a>(handle, xwidth, ywidth, size, videodata);</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  }</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">return</span> return_value;</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> }</div>
|
|
<div class="ttc" id="pixy__frame_8c_html_a9b12014ced2f09e5e7d6646b966552ef"><div class="ttname"><a href="pixy__frame_8c.html#a9b12014ced2f09e5e7d6646b966552ef">saveBA81</a></div><div class="ttdeci">static int saveBA81(FILE_HANDLE *handle, uint16_t width, uint16_t height, uint32_t frameLen, uint8_t *frame)</div><div class="ttdef"><b>Definition:</b> <a href="pixy__frame_8c_source.html#l00189">pixy_frame.c:189</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a2e349ae1ccfa1fb9ea362333920c6d96"><div class="ttname"><a href="pixydefs_8h.html#a2e349ae1ccfa1fb9ea362333920c6d96">INT16</a></div><div class="ttdeci">#define INT16(v)</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00063">pixydefs.h:63</a></div></div>
|
|
<div class="ttc" id="group__pixy_html_ga3d55779001cc649ed85be1a92f09892d"><div class="ttname"><a href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d">pixy_command</a></div><div class="ttdeci">int pixy_command(const char *name,...)</div><div class="ttdoc">Send a command to Pixy. </div></div>
|
|
<div class="ttc" id="struct_block_html_a81c9f8d0b8c3b49d770be14dbe9f0d37"><div class="ttname"><a href="struct_block.html#a81c9f8d0b8c3b49d770be14dbe9f0d37">Block::height</a></div><div class="ttdeci">uint16_t height</div><div class="ttdef"><b>Definition:</b> <a href="pixy_8h_source.html#l00083">pixy.h:83</a></div></div>
|
|
<div class="ttc" id="struct_block_html_ad0eab1042455a2067c812ab8071d5376"><div class="ttname"><a href="struct_block.html#ad0eab1042455a2067c812ab8071d5376">Block::width</a></div><div class="ttdeci">uint16_t width</div><div class="ttdef"><b>Definition:</b> <a href="pixy_8h_source.html#l00082">pixy.h:82</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a1e61ec3195f40970b492ff9ace3ce84b"><div class="ttname"><a href="pixydefs_8h.html#a1e61ec3195f40970b492ff9ace3ce84b">END_OUT_ARGS</a></div><div class="ttdeci">#define END_OUT_ARGS</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00089">pixydefs.h:89</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a3997998ea42c5ea31902d9e0b7df4bd5"><div class="ttname"><a href="pixydefs_8h.html#a3997998ea42c5ea31902d9e0b7df4bd5">END_IN_ARGS</a></div><div class="ttdeci">#define END_IN_ARGS</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00090">pixydefs.h:90</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_ab639628cd651b0efb8e0e054aa37bc2a"><div class="ttname"><a href="pixydefs_8h.html#ab639628cd651b0efb8e0e054aa37bc2a">INT8</a></div><div class="ttdeci">#define INT8(v)</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00061">pixydefs.h:61</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group__pixy__helper_gaf0820ad9bb1ae6791fecb3916372c479_cgraph.png" border="0" usemap="#group__pixy__helper_gaf0820ad9bb1ae6791fecb3916372c479_cgraph" alt=""/></div>
|
|
<map name="group__pixy__helper_gaf0820ad9bb1ae6791fecb3916372c479_cgraph" id="group__pixy__helper_gaf0820ad9bb1ae6791fecb3916372c479_cgraph">
|
|
<area shape="rect" id="node2" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d" title="Send a command to Pixy. " alt="" coords="224,5,335,32"/><area shape="rect" id="node3" href="pixy__frame_8c.html#a9b12014ced2f09e5e7d6646b966552ef" title="saveBA81" alt="" coords="239,56,319,83"/><area shape="rect" id="node4" href="group__filesystem.html#gac447af479c334caa207d6c279571d8a2" title="filesystem_file_seek" alt="" coords="383,5,521,32"/><area shape="rect" id="node6" href="pixy__frame_8c.html#ac0bb3b512eb46a18bda67293e4453d76" title="interpolateBayer" alt="" coords="394,56,510,83"/><area shape="rect" id="node7" href="group__filesystem.html#gae7124857f3ab32f6032ef129f2a80000" title="filesystem_file_write" alt="" coords="383,107,521,133"/><area shape="rect" id="node5" href="group__ll__filesystem.html#ga27b21c519c928bc7767fbdcbb9209148" title="ll_filesystem_file_seek" alt="" coords="569,5,721,32"/><area shape="rect" id="node8" href="group__ll__filesystem.html#gab7ce3131ebbf7c556c9ebeea312fce02" title="ll_filesystem_file\l_write" alt="" coords="587,99,704,141"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
<p><div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group__pixy__helper_gaf0820ad9bb1ae6791fecb3916372c479_icgraph.png" border="0" usemap="#group__pixy__helper_gaf0820ad9bb1ae6791fecb3916372c479_icgraph" alt=""/></div>
|
|
<map name="group__pixy__helper_gaf0820ad9bb1ae6791fecb3916372c479_icgraph" id="group__pixy__helper_gaf0820ad9bb1ae6791fecb3916372c479_icgraph">
|
|
<area shape="rect" id="node2" href="group__pixy__helper.html#gaeb47b641ad8f8cb10c26debb27c7dead" title="pixy_save_full_frame" alt="" coords="224,5,365,32"/><area shape="rect" id="node3" href="screen__photomode__save_8c.html#a5e8f84ee8ff4bf827775c38ae6752509" title="update" alt="" coords="413,5,475,32"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaeb47b641ad8f8cb10c26debb27c7dead"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pixy_save_full_frame </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_f_i_l_e___h_a_n_d_l_e.html">FILE_HANDLE</a> * </td>
|
|
<td class="paramname"><em>handle</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Receives a fullsized frame from pixy and saves it to the given file in the 24bit (b,g,a) format. Use this method to write the bitmap-data part of a windows bitmap (.bmp). This method will neither open nor close the passed file. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">handle</td><td>The file to write the data to. The file must be open and it should be seeked to the right position. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise the errorcode from pixy </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="pixy__frame_8c_source.html#l00065">65</a> of file <a class="el" href="pixy__frame_8c_source.html">pixy_frame.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> {</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">return</span> <a class="code" href="group__pixy__helper.html#gaf0820ad9bb1ae6791fecb3916372c479">pixy_save_cropped_frame</a>(handle, 0, 0, 320, 200);</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> }</div>
|
|
<div class="ttc" id="group__pixy__helper_html_gaf0820ad9bb1ae6791fecb3916372c479"><div class="ttname"><a href="group__pixy__helper.html#gaf0820ad9bb1ae6791fecb3916372c479">pixy_save_cropped_frame</a></div><div class="ttdeci">int pixy_save_cropped_frame(FILE_HANDLE *handle, uint16_t xoffset, uint16_t yoffset, uint16_t width, uint16_t height)</div><div class="ttdef"><b>Definition:</b> <a href="pixy__frame_8c_source.html#l00070">pixy_frame.c:70</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group__pixy__helper_gaeb47b641ad8f8cb10c26debb27c7dead_cgraph.png" border="0" usemap="#group__pixy__helper_gaeb47b641ad8f8cb10c26debb27c7dead_cgraph" alt=""/></div>
|
|
<map name="group__pixy__helper_gaeb47b641ad8f8cb10c26debb27c7dead_cgraph" id="group__pixy__helper_gaeb47b641ad8f8cb10c26debb27c7dead_cgraph">
|
|
<area shape="rect" id="node2" href="group__pixy__helper.html#gaf0820ad9bb1ae6791fecb3916372c479" title="pixy_save_cropped_frame" alt="" coords="195,31,365,57"/><area shape="rect" id="node3" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d" title="Send a command to Pixy. " alt="" coords="413,5,524,32"/><area shape="rect" id="node4" href="pixy__frame_8c.html#a9b12014ced2f09e5e7d6646b966552ef" title="saveBA81" alt="" coords="429,56,509,83"/><area shape="rect" id="node5" href="group__filesystem.html#gac447af479c334caa207d6c279571d8a2" title="filesystem_file_seek" alt="" coords="572,5,711,32"/><area shape="rect" id="node7" href="pixy__frame_8c.html#ac0bb3b512eb46a18bda67293e4453d76" title="interpolateBayer" alt="" coords="583,56,699,83"/><area shape="rect" id="node8" href="group__filesystem.html#gae7124857f3ab32f6032ef129f2a80000" title="filesystem_file_write" alt="" coords="572,107,711,133"/><area shape="rect" id="node6" href="group__ll__filesystem.html#ga27b21c519c928bc7767fbdcbb9209148" title="ll_filesystem_file_seek" alt="" coords="759,5,911,32"/><area shape="rect" id="node9" href="group__ll__filesystem.html#gab7ce3131ebbf7c556c9ebeea312fce02" title="ll_filesystem_file\l_write" alt="" coords="776,99,893,141"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
<p><div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group__pixy__helper_gaeb47b641ad8f8cb10c26debb27c7dead_icgraph.png" border="0" usemap="#group__pixy__helper_gaeb47b641ad8f8cb10c26debb27c7dead_icgraph" alt=""/></div>
|
|
<map name="group__pixy__helper_gaeb47b641ad8f8cb10c26debb27c7dead_icgraph" id="group__pixy__helper_gaeb47b641ad8f8cb10c26debb27c7dead_icgraph">
|
|
<area shape="rect" id="node2" href="screen__photomode__save_8c.html#a5e8f84ee8ff4bf827775c38ae6752509" title="update" alt="" coords="195,5,256,32"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Mon Jun 8 2015 11:01:19 for discoverpixy by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.9.1
|
|
</small></address>
|
|
</body>
|
|
</html>
|