Remove template functions
This commit is contained in:
1 parent
c24e71bf55
commit
eac8f23798
1 file changed
+2
-4
@@ -32,8 +32,7 @@
|
||||
namespace plaYUVer
|
||||
{
|
||||
|
||||
template<typename T>
|
||||
static inline Void yuvToRgb( T iY, T iU, T iV, T &iR, T &iG, T &iB )
|
||||
static inline Void yuvToRgb( Int iY, Int iU, Int iV, Int &iR, Int &iG, Int &iB )
|
||||
{
|
||||
iR = iY + 1402 * iV / 1000;
|
||||
iG = iY - ( 101004 * iU + 209599 * iV ) / 293500;
|
||||
@@ -54,8 +53,7 @@ static inline Void yuvToRgb( T iY, T iU, T iV, T &iR, T &iG, T &iB )
|
||||
iB = 255;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
static inline Void rgbToYuv( T iR, T iG, T iB, T &iY, T &iU, T &iV )
|
||||
static inline Void rgbToYuv( Int iR, Int iG, Int iB, Int &iY, Int &iU, Int &iV )
|
||||
{
|
||||
iY = ( 299 * iR + 587 * iG + 114 * iB + 500 ) / 1000;
|
||||
iU = ( 1000 * ( iB - iY ) + 226816 ) / 1772;
|
||||
|
||||
Reference in new issue
Block a user