|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68135 - sandbox/gil/boost/gil/extension/io2
From: dsaritz_at_[hidden]
Date: 2011-01-13 18:42:10
Author: psiha
Date: 2011-01-13 18:42:09 EST (Thu, 13 Jan 2011)
New Revision: 68135
URL: http://svn.boost.org/trac/boost/changeset/68135
Log:
Added libtiff_image tile_row_size() and tile_dimensions() member functions.
Text files modified:
sandbox/gil/boost/gil/extension/io2/libtiff_image.hpp | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
Modified: sandbox/gil/boost/gil/extension/io2/libtiff_image.hpp
==============================================================================
--- sandbox/gil/boost/gil/extension/io2/libtiff_image.hpp (original)
+++ sandbox/gil/boost/gil/extension/io2/libtiff_image.hpp 2011-01-13 18:42:09 EST (Thu, 13 Jan 2011)
@@ -566,7 +566,17 @@
bool can_do_strip_access() const { return /*...yet to implement...can_do_row_access();*/ false; }
bool can_do_tile_access () const { return ::TIFFIsTiled( &lib_object() ) != 0; }
- std::size_t tile_size() const { return ::TIFFTileSize( &lib_object() ); }
+ std::size_t tile_size () const { return ::TIFFTileSize ( &lib_object() ); }
+ std::size_t tile_row_size() const { return ::TIFFTileRowSize( &lib_object() ); }
+ point2<std::ptrdiff_t> tile_dimensions() const
+ {
+ BOOST_ASSERT( can_do_tile_access() );
+ return point2<std::ptrdiff_t>
+ (
+ get_field<uint32>( TIFFTAG_TILEWIDTH ),
+ get_field<uint32>( TIFFTAG_TILELENGTH )
+ );
+ }
class sequential_row_access_state
:
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk