Fixed 4bits pixel format conversion
Former-commit-id: c03823b24da431d9b85ed2aae0e88ee6045036b9
This commit is contained in:
@@ -16,7 +16,7 @@ namespace
|
||||
|
||||
inline nzUInt8 c4to8(nzUInt8 c)
|
||||
{
|
||||
return c >> 4;
|
||||
return c << 4;
|
||||
}
|
||||
|
||||
inline nzUInt8 c5to4(nzUInt8 c)
|
||||
@@ -31,7 +31,7 @@ namespace
|
||||
|
||||
inline nzUInt8 c8to4(nzUInt8 c)
|
||||
{
|
||||
return c << 4;
|
||||
return c >> 4;
|
||||
}
|
||||
|
||||
inline nzUInt8 c8to5(nzUInt8 c)
|
||||
|
||||
Reference in New Issue
Block a user