Generic Image Library: deprecated.hpp Source File

Modules | Alphabetical List | Class List | Directories | File List | GIL Home Page # 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 #include <cstddef>
    00029
    00030 #define planar_ptr          planar_pixel_iterator
    00031 #define planar_ref          planar_pixel_reference
    00032 #define membased_2d_locator memory_based_2d_locator
    00033 #define pixel_step_iterator memory_based_step_iterator
    00034 #define pixel_image_iterator iterator_from_2d
    00035
    00036 #define equal_channels      static_equal
    00037 #define copy_channels       static_copy
    00038 #define fill_channels       static_fill
    00039 #define generate_channels   static_generate
    00040 #define for_each_channel    static_for_each
    00041 #define transform_channels  static_transform
    00042 #define max_channel         static_max
    00043 #define min_channel         static_min
    00044
    00045 #define semantic_channel    semantic_at_c
    00046
    00047 template <typename Img>
    00048 void resize_clobber_image(Img& img, const typename Img::point_t& new_dims) {
    00049     img.recreate(new_dims);
    00050 }
    00051
    00052 template <typename Img>
    00053 void resize_clobber_image(Img& img, const typename Img::x_coord_t& width, const typename Img::y_coord_t& height) {
    00054     img.recreate(width,height);
    00055 }
    00056
    00057 template <typename T> typename T::x_coord_t get_width(const T& a) { return a.width(); }
    00058 template <typename T> typename T::y_coord_t get_height(const T& a) { return a.height(); }
    00059 template <typename T> typename T::point_t get_dimensions(const T& a) { return a.dimensions(); }
    00060 template <typename T> std::size_t get_num_channels(const T& a) { return a.num_channels(); }
    00061
    00062 #define GIL boost::gil
    00063 #define ADOBE_GIL_NAMESPACE_BEGIN  namespace boost { namespace gil {
    00064 #define ADOBE_GIL_NAMESPACE_END    } }
    00065
    00066 #define ByteAdvancableIteratorConcept  MemoryBasedIteratorConcept
    00067 #define byte_advance                   memunit_advance
    00068 #define byte_advanced                  memunit_advanced
    00069 #define byte_step                      memunit_step
    00070 #define byte_distance                  memunit_distance
    00071
    00072 #define byte_addressable_step_iterator memory_based_step_iterator
    00073 #define byte_addressable_2d_locator    memory_based_2d_locator
    00074
    00075 // These are members of memory-based locators
    00076 //#define row_bytes    row_size         // commented out because row_bytes is commonly used
    00077 #define pix_bytestep pixel_size
    00078
    00079 #endif