Boost logo

Boost-Commit :

From: hljin_at_[hidden]
Date: 2007-09-24 14:21:06


Author: hljin
Date: 2007-09-24 14:20:56 EDT (Mon, 24 Sep 2007)
New Revision: 39510
URL: http://svn.boost.org/trac/boost/changeset/39510

Log:
GIL: fixed the test files to the new bit_aligned_pixel_reference interface
Text files modified:
   trunk/libs/gil/test/image.cpp | 2 +-
   trunk/libs/gil/test/pixel.cpp | 4 ++--
   trunk/libs/gil/test/pixel_iterator.cpp | 4 ++--
   3 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/libs/gil/test/image.cpp
==============================================================================
--- trunk/libs/gil/test/image.cpp (original)
+++ trunk/libs/gil/test/image.cpp 2007-09-24 14:20:56 EDT (Mon, 24 Sep 2007)
@@ -339,7 +339,7 @@
     image_all_test<rgb8_planar_image_t>("planarrgb8_");
     image_all_test<gray8_image_t>("gray8_");
 
- typedef const bit_aligned_pixel_reference<mpl::vector3_c<int,1,2,1>, bgr_layout_t, true> bgr121_ref_t;
+ typedef const bit_aligned_pixel_reference<uint8_t, mpl::vector3_c<int,1,2,1>, bgr_layout_t, true> bgr121_ref_t;
     typedef image<bgr121_ref_t,false> bgr121_image_t;
     image_all_test<bgr121_image_t>("bgr121_");
 

Modified: trunk/libs/gil/test/pixel.cpp
==============================================================================
--- trunk/libs/gil/test/pixel.cpp (original)
+++ trunk/libs/gil/test/pixel.cpp 2007-09-24 14:20:56 EDT (Mon, 24 Sep 2007)
@@ -270,8 +270,8 @@
     color_convert(rgb_full,r565);
 
     // Test bit-aligned pixel reference
- typedef const bit_aligned_pixel_reference<boost::mpl::vector3_c<int,1,2,1>, bgr_layout_t, true> bgr121_ref_t;
- typedef const bit_aligned_pixel_reference<boost::mpl::vector3_c<int,1,2,1>, rgb_layout_t, true> rgb121_ref_t;
+ typedef const bit_aligned_pixel_reference<boost::uint8_t, boost::mpl::vector3_c<int,1,2,1>, bgr_layout_t, true> bgr121_ref_t;
+ typedef const bit_aligned_pixel_reference<boost::uint8_t, boost::mpl::vector3_c<int,1,2,1>, rgb_layout_t, true> rgb121_ref_t;
     typedef rgb121_ref_t::value_type rgb121_pixel_t;
     rgb121_pixel_t p121;
     do_basic_test<reference_core<bgr121_ref_t,0>, reference_core<rgb121_ref_t,1> >(p121).test_heterogeneous();

Modified: trunk/libs/gil/test/pixel_iterator.cpp
==============================================================================
--- trunk/libs/gil/test/pixel_iterator.cpp (original)
+++ trunk/libs/gil/test/pixel_iterator.cpp 2007-09-24 14:20:56 EDT (Mon, 24 Sep 2007)
@@ -43,7 +43,7 @@
 
     boost::function_requires<MutablePixelLocatorConcept<memory_based_2d_locator<rgb8_step_ptr_t> > >();
 
- typedef const bit_aligned_pixel_reference<boost::mpl::vector3_c<int,1,2,1>, bgr_layout_t, true> bgr121_ref_t;
+ typedef const bit_aligned_pixel_reference<boost::uint8_t, boost::mpl::vector3_c<int,1,2,1>, bgr_layout_t, true> bgr121_ref_t;
     typedef bit_aligned_pixel_iterator<bgr121_ref_t> bgr121_ptr_t;
 
     boost::function_requires<MutablePixelIteratorConcept<bgr121_ptr_t> >();
@@ -88,7 +88,7 @@
 // bit_aligned iterators test
 
     // Mutable reference to a BGR232 pixel
- typedef const bit_aligned_pixel_reference<boost::mpl::vector3_c<unsigned,2,3,2>, bgr_layout_t, true> bgr232_ref_t;
+ typedef const bit_aligned_pixel_reference<boost::uint8_t, boost::mpl::vector3_c<unsigned,2,3,2>, bgr_layout_t, true> bgr232_ref_t;
 
     // A mutable iterator over BGR232 pixels
     typedef bit_aligned_pixel_iterator<bgr232_ref_t> bgr232_ptr_t;


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