From: Andrey Kamaev Date: Wed, 15 Aug 2012 11:28:12 +0000 (+0400) Subject: #2225 Rename getConvertData to getConvertElem to match the headers and documentation X-Git-Tag: accepted/2.0/20130307.220821~364^2~233 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0927397e90e288a9add7c064716dc4a8497b19c;p=profile%2Fivi%2Fopencv.git #2225 Rename getConvertData to getConvertElem to match the headers and documentation --- diff --git a/modules/core/src/matrix.cpp b/modules/core/src/matrix.cpp index e86bb0e..aaaac10 100644 --- a/modules/core/src/matrix.cpp +++ b/modules/core/src/matrix.cpp @@ -3262,7 +3262,7 @@ convertScaleData_(const void* _from, void* _to, int cn, double alpha, double bet to[i] = saturate_cast(from[i]*alpha + beta); } -static ConvertData getConvertData(int fromType, int toType) +ConvertData getConvertElem(int fromType, int toType) { static ConvertData tab[][8] = {{ convertData_, convertData_, @@ -3307,7 +3307,7 @@ static ConvertData getConvertData(int fromType, int toType) return func; } -static ConvertScaleData getConvertScaleData(int fromType, int toType) +ConvertScaleData getConvertScaleElem(int fromType, int toType) { static ConvertScaleData tab[][8] = {{ convertScaleData_, convertScaleData_, @@ -3537,7 +3537,7 @@ void SparseMat::convertTo( SparseMat& m, int rtype, double alpha ) const if( alpha == 1 ) { - ConvertData cvtfunc = getConvertData(type(), rtype); + ConvertData cvtfunc = getConvertElem(type(), rtype); for( i = 0; i < N; i++, ++from ) { const Node* n = from.node(); @@ -3547,7 +3547,7 @@ void SparseMat::convertTo( SparseMat& m, int rtype, double alpha ) const } else { - ConvertScaleData cvtfunc = getConvertScaleData(type(), rtype); + ConvertScaleData cvtfunc = getConvertScaleElem(type(), rtype); for( i = 0; i < N; i++, ++from ) { const Node* n = from.node(); @@ -3574,7 +3574,7 @@ void SparseMat::convertTo( Mat& m, int rtype, double alpha, double beta ) const if( alpha == 1 && beta == 0 ) { - ConvertData cvtfunc = getConvertData(type(), rtype); + ConvertData cvtfunc = getConvertElem(type(), rtype); for( i = 0; i < N; i++, ++from ) { const Node* n = from.node(); @@ -3584,7 +3584,7 @@ void SparseMat::convertTo( Mat& m, int rtype, double alpha, double beta ) const } else { - ConvertScaleData cvtfunc = getConvertScaleData(type(), rtype); + ConvertScaleData cvtfunc = getConvertScaleElem(type(), rtype); for( i = 0; i < N; i++, ++from ) { const Node* n = from.node();