[Jahshaka-cvs] openlibraries/src/openimagelib/il yuv_traits.hpp, 1.9, 1.10
Status: Beta
Brought to you by:
jahshaka
From: Charles Y. <lil...@us...> - 2006-12-22 14:51:53
|
Update of /cvsroot/openlibraries/openlibraries/src/openimagelib/il In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30197 Modified Files: yuv_traits.hpp Log Message: + Umm - yes - sorry :-) Index: yuv_traits.hpp =================================================================== RCS file: /cvsroot/openlibraries/openlibraries/src/openimagelib/il/yuv_traits.hpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- yuv_traits.hpp 13 Sep 2006 13:55:17 -0000 1.9 +++ yuv_traits.hpp 22 Dec 2006 14:51:49 -0000 1.10 @@ -286,16 +286,16 @@ p.linesize = w / factor; if ( !is_flipped ) - p.offset = p.pitch * y; + p.offset = ( p.pitch * y ) / factor; else - p.offset = ( ( height_ - y - h ) * p.pitch ); + p.offset = ( ( height_ - y - h ) * p.pitch ) / factor; if ( !is_flopped ) - p.offset += x; + p.offset += ( x / factor ); else - p.offset += ( width_ - w - x ); + p.offset += ( width_ - w - x ) / factor; - p.offset = surface_format<T, storage>::offset( i ) + ( p.offset / factor * factor ); + p.offset = surface_format<T, storage>::offset( i ) + p.offset; } } |