MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / test_candidate_limit

Method test_candidate_limit

Test/astc_test_functional.py:1178–1197  ·  view source on GitHub ↗

Test candidate limit.

(self)

Source from the content-addressed store, hash-verified

1176 self.assertGreater(rmse_test, rmse_ref)
1177
1178 def test_candidate_limit(self) -> None:
1179 '''
1180 Test candidate limit.
1181 '''
1182 input_path = Path('./Test/Images/Small/LDR-RGBA/ldr-rgba-00.png')
1183 image_dec = self.get_tmp_image_path('LDR', 'decomp')
1184
1185 cmd = [
1186 self.binary, '-tl',
1187 input_path, image_dec, '4x4', '-medium']
1188
1189 self.exec(cmd)
1190 rmse_ref = sum(self.get_channel_rmse(input_path, image_dec))
1191
1192 cmd += ['-candidatelimit', '1']
1193 self.exec(cmd)
1194 rmse_test = sum(self.get_channel_rmse(input_path, image_dec))
1195
1196 # RMSE should get worse (higher) if we reduce search space
1197 self.assertGreater(rmse_test, rmse_ref)
1198
1199 def test_db_cutoff_limit(self) -> None:
1200 '''

Callers

nothing calls this directly

Calls 3

execMethod · 0.95
get_channel_rmseMethod · 0.95
get_tmp_image_pathMethod · 0.80

Tested by

no test coverage detected