Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84269 - trunk/boost/gil/extension/toolbox/image_types
From: chhenning_at_[hidden]
Date: 2013-05-13 09:30:19


Author: chhenning
Date: 2013-05-13 09:30:18 EDT (Mon, 13 May 2013)
New Revision: 84269
URL: http://svn.boost.org/trac/boost/changeset/84269

Log:
Small bug fix.
Text files modified:
   trunk/boost/gil/extension/toolbox/image_types/subchroma_image.hpp | 18 +++++++++---------
   1 files changed, 9 insertions(+), 9 deletions(-)

Modified: trunk/boost/gil/extension/toolbox/image_types/subchroma_image.hpp
==============================================================================
--- trunk/boost/gil/extension/toolbox/image_types/subchroma_image.hpp (original)
+++ trunk/boost/gil/extension/toolbox/image_types/subchroma_image.hpp 2013-05-13 09:30:18 EDT (Mon, 13 May 2013)
@@ -1,5 +1,5 @@
 /*
- Copyright 2013 Christian Henning
+ Copyright 2013 Christian Henning and Juan V. Puertos
     Use, modification and distribution are subject to the Boost Software License,
     Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
     http://www.boost.org/LICENSE_1_0.txt).
@@ -13,7 +13,7 @@
 ////////////////////////////////////////////////////////////////////////////////////////
 /// \file subchroma_image.hpp
 /// \brief Subchroma Image extension
-/// \author Christian Henning \n
+/// \author Christian Henning and Juan V. Puertos\n
 ///
 /// \date 2013 \n
 ///
@@ -71,8 +71,8 @@
     typename result_type operator()( const point_t& p ) const
     {
         typedef Scaling_Factors< mpl::at_c< Factors, 0 >::type::value
- , mpl::at_c< Factors, 0 >::type::value
- , mpl::at_c< Factors, 0 >::type::value
+ , mpl::at_c< Factors, 1 >::type::value
+ , mpl::at_c< Factors, 2 >::type::value
> scaling_factors_t;
 
         plane_locator_t y = _y_locator.xy_at( p );
@@ -244,8 +244,8 @@
         , typename Allocator = std::allocator< unsigned char >
>
 class subchroma_image : public Scaling_Factors< mpl::at_c< Factors, 0 >::type::value
- , mpl::at_c< Factors, 1 >::type::value
- , mpl::at_c< Factors, 2 >::type::value
+ , mpl::at_c< Factors, 1 >::type::value
+ , mpl::at_c< Factors, 2 >::type::value
>
 {
 
@@ -389,9 +389,9 @@
     std::size_t u_channel_size = 1;
 
     unsigned char* u_base = y_base + ( y_width * y_height * y_channel_size );
- unsigned char* v_base = u_base + ( y_width / scaling_factors_t::ss_X )
- * ( y_height / scaling_factors_t::ss_Y )
- * u_channel_size;
+ unsigned char* v_base = u_base + ( y_width / scaling_factors_t::ss_X )
+ * ( y_height / scaling_factors_t::ss_Y )
+ * u_channel_size;
 
     typedef subchroma_image< Pixel, Factors >::plane_view_t plane_view_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