Fix convert8To4, convert8To5
See b/5680952 "Compilation warnings in etc1.cpp" for discussion. Fixes b/5680952 Change-Id: I0af6ba5ed5e60f3ed7a6a28eba3b09504fee1a3f
This commit is contained in:
parent
c4d605f44b
commit
2b93f0bf44
@ -149,13 +149,13 @@ inline int divideBy255(int d) {
|
|||||||
static
|
static
|
||||||
inline int convert8To4(int b) {
|
inline int convert8To4(int b) {
|
||||||
int c = b & 0xff;
|
int c = b & 0xff;
|
||||||
return divideBy255(b * 15);
|
return divideBy255(c * 15);
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
inline int convert8To5(int b) {
|
inline int convert8To5(int b) {
|
||||||
int c = b & 0xff;
|
int c = b & 0xff;
|
||||||
return divideBy255(b * 31);
|
return divideBy255(c * 31);
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
Loading…
Reference in New Issue
Block a user