Chris@16: /* Chris@16: Copyright 2005-2007 Adobe Systems Incorporated Chris@16: Chris@16: Use, modification and distribution are subject to the Boost Software License, Chris@16: Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: http://www.boost.org/LICENSE_1_0.txt). Chris@16: Chris@16: See http://opensource.adobe.com/gil for most recent version including documentation. Chris@16: */ Chris@16: Chris@16: /*************************************************************************************************/ Chris@16: Chris@16: #ifndef GIL_DEPRECATED_HPP Chris@16: #define GIL_DEPRECATED_HPP Chris@16: Chris@16: //////////////////////////////////////////////////////////////////////////////////////// Chris@16: /// \file Chris@16: /// \brief Deprecated names Chris@16: /// This file is provided as a courtesy to ease upgrading GIL client code. Chris@16: /// Please make sure your code compiles when this file is not included. Chris@16: /// Chris@16: /// \author Lubomir Bourdev and Hailin Jin \n Chris@16: /// Adobe Systems Incorporated Chris@16: /// \date 2005-2007 \n Last updated on February 12, 2007 Chris@16: /// Chris@16: //////////////////////////////////////////////////////////////////////////////////////// Chris@16: Chris@16: #include Chris@16: Chris@16: #define planar_ptr planar_pixel_iterator Chris@16: #define planar_ref planar_pixel_reference Chris@16: #define membased_2d_locator memory_based_2d_locator Chris@16: #define pixel_step_iterator memory_based_step_iterator Chris@16: #define pixel_image_iterator iterator_from_2d Chris@16: Chris@16: #define equal_channels static_equal Chris@16: #define copy_channels static_copy Chris@16: #define fill_channels static_fill Chris@16: #define generate_channels static_generate Chris@16: #define for_each_channel static_for_each Chris@16: #define transform_channels static_transform Chris@16: #define max_channel static_max Chris@16: #define min_channel static_min Chris@16: Chris@16: #define semantic_channel semantic_at_c Chris@16: Chris@16: template Chris@16: void resize_clobber_image(Img& img, const typename Img::point_t& new_dims) { Chris@16: img.recreate(new_dims); Chris@16: } Chris@16: Chris@16: template Chris@16: void resize_clobber_image(Img& img, const typename Img::x_coord_t& width, const typename Img::y_coord_t& height) { Chris@16: img.recreate(width,height); Chris@16: } Chris@16: Chris@16: template typename T::x_coord_t get_width(const T& a) { return a.width(); } Chris@16: template typename T::y_coord_t get_height(const T& a) { return a.height(); } Chris@16: template typename T::point_t get_dimensions(const T& a) { return a.dimensions(); } Chris@16: template std::size_t get_num_channels(const T& a) { return a.num_channels(); } Chris@16: Chris@16: #define GIL boost::gil Chris@16: #define ADOBE_GIL_NAMESPACE_BEGIN namespace boost { namespace gil { Chris@16: #define ADOBE_GIL_NAMESPACE_END } } Chris@16: Chris@16: #define ByteAdvancableIteratorConcept MemoryBasedIteratorConcept Chris@16: #define byte_advance memunit_advance Chris@16: #define byte_advanced memunit_advanced Chris@16: #define byte_step memunit_step Chris@16: #define byte_distance memunit_distance Chris@16: Chris@16: #define byte_addressable_step_iterator memory_based_step_iterator Chris@16: #define byte_addressable_2d_locator memory_based_2d_locator Chris@16: Chris@16: // These are members of memory-based locators Chris@16: //#define row_bytes row_size // commented out because row_bytes is commonly used Chris@16: #define pix_bytestep pixel_size Chris@16: Chris@16: #endif