|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64106 - sandbox/gil/boost/gil/extension/io2
From: dsaritz_at_[hidden]
Date: 2010-07-17 12:35:20
Author: psiha
Date: 2010-07-17 12:35:20 EDT (Sat, 17 Jul 2010)
New Revision: 64106
URL: http://svn.boost.org/trac/boost/changeset/64106
Log:
Added accessors for underlying library objects.
Text files modified:
sandbox/gil/boost/gil/extension/io2/gp_private_base.hpp | 3 ++-
sandbox/gil/boost/gil/extension/io2/libjpeg_private_base.hpp | 3 +++
sandbox/gil/boost/gil/extension/io2/libtiff_private_base.hpp | 4 ++++
3 files changed, 9 insertions(+), 1 deletions(-)
Modified: sandbox/gil/boost/gil/extension/io2/gp_private_base.hpp
==============================================================================
--- sandbox/gil/boost/gil/extension/io2/gp_private_base.hpp (original)
+++ sandbox/gil/boost/gil/extension/io2/gp_private_base.hpp 2010-07-17 12:35:20 EDT (Sat, 17 Jul 2010)
@@ -381,7 +381,8 @@
void save_to_png( char const * const pFilename ) const { save_to( pFilename, png_codec() ); }
void save_to_png( wchar_t const * const pFilename ) const { save_to( pFilename, png_codec() ); }
-
+ ::Gdiplus::GpBitmap & lib_object() { return *pBitmap_; }
+ ::Gdiplus::GpBitmap const & lib_object() const { return const_cast<gp_image &>( *this ).lib_object(); }
private: // Private formatted_image_base interface.
friend base_t;
Modified: sandbox/gil/boost/gil/extension/io2/libjpeg_private_base.hpp
==============================================================================
--- sandbox/gil/boost/gil/extension/io2/libjpeg_private_base.hpp (original)
+++ sandbox/gil/boost/gil/extension/io2/libjpeg_private_base.hpp 2010-07-17 12:35:20 EDT (Sat, 17 Jul 2010)
@@ -337,6 +337,9 @@
return point2<std::ptrdiff_t>( decompressor().image_width, decompressor().image_height );
}
+ jpeg_decompress_struct & lib_object() { return decompressor(); }
+ jpeg_decompress_struct const & lib_object() const { return const_cast<libjpeg_image &>( *this ).lib_object(); }
+
private: // Private formatted_image_base interface.
friend base_t;
Modified: sandbox/gil/boost/gil/extension/io2/libtiff_private_base.hpp
==============================================================================
--- sandbox/gil/boost/gil/extension/io2/libtiff_private_base.hpp (original)
+++ sandbox/gil/boost/gil/extension/io2/libtiff_private_base.hpp 2010-07-17 12:35:20 EDT (Sat, 17 Jul 2010)
@@ -344,6 +344,10 @@
full_format_t::format_bitfield const & format_bits() const {return format_.bits; }
+
+ TIFF & lib_object() { return *p_tiff_; }
+ TIFF const & lib_object() const { return const_cast<libtiff_image &>( *this ).lib_object(); }
+
private:
template <typename T>
T get_field( ttag_t const tag ) const
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