Skip to content

Commit

Permalink
Merge pull request #2 from REDxEYE/main
Browse files Browse the repository at this point in the history
Fix BC6H_SF decoding error
  • Loading branch information
ShadelessFox committed Jul 18, 2022
2 parents e57f520 + 1aa34db commit efe48ac
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/libImaging/BcnDecode.c
Expand Up @@ -767,13 +767,6 @@ decode_bc6_block(rgba *col, const UINT8 *src, int sign) {
endpoints[i + 1] = (endpoints[i + 1] + endpoints[1]) & mask;
endpoints[i + 2] = (endpoints[i + 2] + endpoints[2]) & mask;
}
if (sign) {
for (i = 3; i < numep; i += 3) {
bc6_sign_extend(&endpoints[i], info->rb);
bc6_sign_extend(&endpoints[i + 1], info->gb);
bc6_sign_extend(&endpoints[i + 2], info->bb);
}
}
}
for (i = 0; i < numep; i++) {
ueps[i] = bc6_unquantize(endpoints[i], info->epb, sign);
Expand Down

0 comments on commit efe48ac

Please sign in to comment.