diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-03-04 02:23:03 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-03-04 02:23:03 (GMT) |
commit | 94d4acf76566ec2bc24f60b78d46690df6d3370d (patch) | |
tree | ad3aa52bb83d8f98ba249a02f958ccabe33826a4 /src/imageutils.cc | |
parent | 689fdad0acfd17aa2676bd5bcf34ebba29c383a5 (diff) |
cleanup tab spacing
Diffstat (limited to 'src/imageutils.cc')
-rw-r--r-- | src/imageutils.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imageutils.cc b/src/imageutils.cc index a1acaac..3e1f3bc 100644 --- a/src/imageutils.cc +++ b/src/imageutils.cc @@ -5,15 +5,15 @@ void flip_image(const unsigned char *src, unsigned char *dst, size_t pixelsize, size_t width, size_t height) { - assert( src && dst ); - size_t rowBytes = pixelsize * width; - for (size_t i = 0 ; i < height ; i++) { + assert( src && dst ); + size_t rowBytes = pixelsize * width; + for (size_t i = 0 ; i < height ; i++) { memmove(dst + (height - i - 1) * rowBytes, src + i * rowBytes, rowBytes); } } bool write_png(const char *filename, unsigned char *pixels, int width, int height) { - assert( filename && pixels ); + assert( filename && pixels ); std::ofstream fstream( filename, std::ios::binary ); if (fstream.is_open()) { write_png( fstream, pixels, width, height ); |