MCPcopy Create free account
hub / github.com/DentonW/DevIL / RMSAlpha

Function RMSAlpha

DevIL/src-IL/src/il_dds-save.cpp:1136–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1134
1135
1136ILuint RMSAlpha(ILubyte *Orig, ILubyte *Test)
1137{
1138 ILuint RMS = 0, i;
1139 ILint d;
1140
1141 for (i = 0; i < 16; i++) {
1142 d = Orig[i] - Test[i];
1143 RMS += d*d;
1144 }
1145
1146 //RMS /= 16;
1147
1148 return RMS;
1149}
1150
1151
1152ILuint Distance(Color888 *c1, Color888 *c2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected