Skip to content

Commit 18c4db0

Browse files
authored
Merge pull request #162 from saxbophone/develop
v0.25.3 - Doc updates
2 parents cb12b5a + 635b9dd commit 18c4db0

20 files changed

+50
-50
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# begin basic metadata
1616
cmake_minimum_required(VERSION 3.0)
1717

18-
project(sxbp VERSION 0.25.2 LANGUAGES C)
18+
project(sxbp VERSION 0.25.3 LANGUAGES C)
1919

2020
# set default C standard to use (C99) if not already set
2121
if(NOT DEFINED LIBSXBP_C_STANDARD)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# libsxbp ![libsxbp](libsxbp.png "libsxbp")
22

3-
[![Build Status](https://travis-ci.org/saxbophone/libsxbp.svg?branch=develop)](https://travis-ci.org/saxbophone/libsxbp) [![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) [**[Documentation]**](http://saxbophone.github.io/libsxbp/)
3+
[![Build Status](https://travis-ci.org/saxbophone/libsxbp.svg?branch=develop)](https://travis-ci.org/saxbophone/libsxbp) [![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) [![Documentation: http://saxbophone.github.io/libsxbp/](https://img.shields.io/badge/Documentation-Doxygen-2C4AA8.svg)](http://saxbophone.github.io/libsxbp/)
44

55
Experimental generation of 2D spiralling lines based on input binary data.
66

docs/backend__pbm_8h.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@
152152
<p>Renders a bitmap image to a PBM image. </p>
153153
<dl class="params"><dt>Parameters</dt><dd>
154154
<table class="params">
155-
<tr><td class="paramname">bitmap</td><td>Bitmap containing the image to render. </td></tr>
156-
<tr><td class="paramname">buffer</td><td>[out] Buffer to write out the PBM image data to. </td></tr>
155+
<tr><td class="paramdir"></td><td class="paramname">bitmap</td><td>Bitmap containing the image to render. </td></tr>
156+
<tr><td class="paramdir">[out]</td><td class="paramname">buffer</td><td>Buffer to write out the PBM image data to. </td></tr>
157157
</table>
158158
</dd>
159159
</dl>

docs/backend__png_8h.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@
160160
<p>Renders a bitmap image to a PNG image. </p>
161161
<dl class="params"><dt>Parameters</dt><dd>
162162
<table class="params">
163-
<tr><td class="paramname">bitmap</td><td>Bitmap containing the image to render. </td></tr>
164-
<tr><td class="paramname">buffer</td><td>[out] Buffer to write out the PBM image data to. </td></tr>
163+
<tr><td class="paramdir"></td><td class="paramname">bitmap</td><td>Bitmap containing the image to render. </td></tr>
164+
<tr><td class="paramdir">[out]</td><td class="paramname">buffer</td><td>Buffer to write out the PBM image data to. </td></tr>
165165
</table>
166166
</dd>
167167
</dl>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<div class="title">libsxbp ![libsxbp](libsxbp.png "libsxbp") </div> </div>
8282
</div><!--header-->
8383
<div class="contents">
84-
<div class="textblock"><p><a href="https://travis-ci.org/saxbophone/libsxbp"></a> <a href="https://opensource.org/licenses/MPL-2.0"></a> <a href="http://saxbophone.github.io/libsxbp/"><b>[Documentation]</b></a></p>
84+
<div class="textblock"><p><a href="https://travis-ci.org/saxbophone/libsxbp"></a> <a href="https://opensource.org/licenses/MPL-2.0"></a> <a href="http://saxbophone.github.io/libsxbp/"></a></p>
8585
<p>Experimental generation of 2D spiralling lines based on input binary data.</p>
8686
<p>This a C library implementing an experimental idea I had for generating procedural shapes. The library takes input as sequences of bytes and turns the 1s and 0s into a kind of <em>right-angled spiral</em>, with the changes in direction of the line encoding the binary data in a lossless manner.</p>
8787
<p>Following Linus Torvalds' example, I have egotistically named this invention the **_saxbospiral_**, after my own online handle. At the time of writing, I couldn't think of a better name for it.</p>

docs/initialise_8h.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@
213213
<p>This converts the 0s and 1s in the buffer data into UP, LEFT, DOWN, RIGHT instructions which are then used to build the pattern. Only the line directions are calculated at this point, all line lengths are 0.</p>
214214
<dl class="params"><dt>Parameters</dt><dd>
215215
<table class="params">
216-
<tr><td class="paramname">buffer</td><td>A buffer containing at least one byte of data, used to determine the directions of the lines in the spiral it will create. </td></tr>
217-
<tr><td class="paramname">spiral</td><td>[out] Spiral object which the line directions will be written to. </td></tr>
216+
<tr><td class="paramdir"></td><td class="paramname">buffer</td><td>A buffer containing at least one byte of data, used to determine the directions of the lines in the spiral it will create. </td></tr>
217+
<tr><td class="paramdir">[out]</td><td class="paramname">spiral</td><td>Spiral object which the line directions will be written to. </td></tr>
218218
</table>
219219
</dd>
220220
</dl>

docs/plot_8h.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@
157157
<p>If there are any outstanding co-ordinates which haven't been stored in the spiral's internal cache, then these will be calculated and stored in the cache. Subsequent identical calls will not incur the overhead of re-calculating these co-ords, provided the lengths of any of the spiral's lines are not changed in the process.</p>
158158
<dl class="params"><dt>Parameters</dt><dd>
159159
<table class="params">
160-
<tr><td class="paramname">spiral</td><td>The spiral for which co-ords should be cached. </td></tr>
161-
<tr><td class="paramname">limit</td><td>The highest index of line for which co-ords should be cached to. </td></tr>
160+
<tr><td class="paramdir">[in,out]</td><td class="paramname">spiral</td><td>The spiral for which co-ords should be cached. </td></tr>
161+
<tr><td class="paramdir"></td><td class="paramname">limit</td><td>The highest index of line for which co-ords should be cached to. </td></tr>
162162
</table>
163163
</dd>
164164
</dl>
@@ -219,11 +219,11 @@
219219
<p>The whole spiral may be calculated, or just a given segment of it. This is controlled by specifying which line to start at and which to end at.</p>
220220
<dl class="params"><dt>Parameters</dt><dd>
221221
<table class="params">
222-
<tr><td class="paramname">spiral</td><td>The spiral for which line co-ords should be calculated. </td></tr>
223-
<tr><td class="paramname">output</td><td>[out] The co-ords array which calculated co-ords should be written to. </td></tr>
224-
<tr><td class="paramname">start_point</td><td>The x/y co-ordinates at which the line being plotted originates at. </td></tr>
225-
<tr><td class="paramname">start</td><td>The index of the first line which makes up the segment which is being calculated. </td></tr>
226-
<tr><td class="paramname">end</td><td>The index of the line after the last line which makes up the segment which is being calculated. </td></tr>
222+
<tr><td class="paramdir"></td><td class="paramname">spiral</td><td>The spiral for which line co-ords should be calculated. </td></tr>
223+
<tr><td class="paramdir">[out]</td><td class="paramname">output</td><td>The co-ords array which calculated co-ords should be written to. </td></tr>
224+
<tr><td class="paramdir"></td><td class="paramname">start_point</td><td>The x/y co-ordinates at which the line being plotted originates at. </td></tr>
225+
<tr><td class="paramdir"></td><td class="paramname">start</td><td>The index of the first line which makes up the segment which is being calculated. </td></tr>
226+
<tr><td class="paramdir"></td><td class="paramname">end</td><td>The index of the line after the last line which makes up the segment which is being calculated. </td></tr>
227227
</table>
228228
</dd>
229229
</dl>

docs/render_8h.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ <h2 class="groupheader">Function Documentation</h2>
200200
<p>The lines of the spiral are plotted on a white background and the pixel data representing the resulting shape is written as data in a given image file format, using the callback function to achieve this conversion. The callback function should inspect the pixels of the bitmap passed to it and write the file data representing the bitmap in it's respective file format out to the buffer.</p>
201201
<p>The function signature of the callback is the same as that of the image rendering functions provided by the library: sxbp_render_backend_pbm and sxbp_render_backend_png. This allows one of these to be provided as the callback function, a convenient use of function chaining can achieve this like so: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;sxbp_render_spiral_image(spiral, buffer, sxbp_render_backend_pbm);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
202202
<table class="params">
203-
<tr><td class="paramname">spiral</td><td>The spiral which should be rendered. </td></tr>
204-
<tr><td class="paramname">buffer</td><td>[out] The data buffer to which the bytes of the image file should be written. </td></tr>
205-
<tr><td class="paramname">image_writer_callback</td><td>A function pointer with the following signature: <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;sxbp_status_t callback_name(sxbp_bitmap_t image, sxbp_buffer_t* buffer)</div></div><!-- fragment --> </td></tr>
203+
<tr><td class="paramdir"></td><td class="paramname">spiral</td><td>The spiral which should be rendered. </td></tr>
204+
<tr><td class="paramdir">[out]</td><td class="paramname">buffer</td><td>The data buffer to which the bytes of the image file should be written. </td></tr>
205+
<tr><td class="paramdir"></td><td class="paramname">image_writer_callback</td><td>A function pointer with the following signature: <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;sxbp_status_t callback_name(sxbp_bitmap_t image, sxbp_buffer_t* buffer)</div></div><!-- fragment --> </td></tr>
206206
</table>
207207
</dd>
208208
</dl>
@@ -246,8 +246,8 @@ <h2 class="groupheader">Function Documentation</h2>
246246
<p>The lines of the spiral are plotted on a white background and the pixel data representing the resulting shape is written to the given image.</p>
247247
<dl class="params"><dt>Parameters</dt><dd>
248248
<table class="params">
249-
<tr><td class="paramname">spiral</td><td>The spiral which should be rendered. </td></tr>
250-
<tr><td class="paramname">image</td><td>The bitmap to write the pixel data out to. </td></tr>
249+
<tr><td class="paramdir"></td><td class="paramname">spiral</td><td>The spiral which should be rendered. </td></tr>
250+
<tr><td class="paramdir">[out]</td><td class="paramname">image</td><td>The bitmap to write the pixel data out to. </td></tr>
251251
</table>
252252
</dd>
253253
</dl>

0 commit comments

Comments
 (0)