deprecated.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2007 Adobe Systems Incorporated
00003    
00004     Use, modification and distribution are subject to the Boost Software License,
00005     Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
00006     http://www.boost.org/LICENSE_1_0.txt).
00007 
00008     See http://opensource.adobe.com/gil for most recent version including documentation.
00009 */
00010 
00011 /*************************************************************************************************/
00012 
00013 #ifndef GIL_DEPRECATED_HPP
00014 #define GIL_DEPRECATED_HPP
00015 
00027 
00028 #define planar_ptr          planar_pixel_iterator
00029 #define planar_ref          planar_pixel_reference
00030 #define membased_2d_locator memory_based_2d_locator
00031 #define pixel_step_iterator memory_based_step_iterator
00032 #define pixel_image_iterator iterator_from_2d
00033 
00034 #define equal_channels      static_equal
00035 #define copy_channels       static_copy
00036 #define fill_channels       static_fill
00037 #define generate_channels   static_generate
00038 #define for_each_channel    static_for_each
00039 #define transform_channels  static_transform
00040 #define max_channel         static_max
00041 #define min_channel         static_min
00042 
00043 #define semantic_channel    semantic_at_c
00044 
00045 template <typename Img>
00046 void resize_clobber_image(Img& img, const typename Img::point_t& new_dims) {
00047     img.recreate(new_dims);
00048 }
00049 
00050 template <typename Img>
00051 void resize_clobber_image(Img& img, const typename Img::x_coord_t& width, const typename Img::y_coord_t& height) {
00052     img.recreate(width,height);
00053 }
00054 
00055 template <typename T> typename T::x_coord_t get_width(const T& a) { return a.width(); }
00056 template <typename T> typename T::y_coord_t get_height(const T& a) { return a.height(); }
00057 template <typename T> typename T::point_t get_dimensions(const T& a) { return a.dimensions(); }
00058 template <typename T> std::size_t get_num_channels(const T& a) { return a.num_channels(); }
00059 
00060 #define GIL boost::gil
00061 #define ADOBE_GIL_NAMESPACE_BEGIN  namespace boost { namespace gil {
00062 #define ADOBE_GIL_NAMESPACE_END    } }
00063 
00064 #define ByteAdvancableIteratorConcept  MemoryBasedIteratorConcept
00065 #define byte_advance                   memunit_advance
00066 #define byte_advanced                  memunit_advanced
00067 #define byte_step                      memunit_step
00068 #define byte_distance                  memunit_distance
00069 
00070 #define byte_addressable_step_iterator memory_based_step_iterator
00071 #define byte_addressable_2d_locator    memory_based_2d_locator
00072 
00073 // These are members of memory-based locators
00074 //#define row_bytes    row_size         // commented out because row_bytes is commonly used
00075 #define pix_bytestep pixel_size
00076 
00077 #endif

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google