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

Method test_blockmode_limit

Test/astc_test_functional.py:1135–1155  ·  view source on GitHub ↗

Test block mode limit.

(self)

Source from the content-addressed store, hash-verified

1133 self.assertGreater(rmse_test, rmse_ref)
1134
1135 def test_blockmode_limit(self) -> None:
1136 '''
1137 Test block mode limit.
1138 '''
1139 input_path = Path('./Test/Images/Small/LDR-RGBA/ldr-rgba-00.png')
1140 image_dec = self.get_tmp_image_path('LDR', 'decomp')
1141
1142 # Compute the basic image without any channel weights
1143 cmd = [
1144 self.binary, '-tl',
1145 input_path, image_dec, '4x4', '-medium']
1146
1147 self.exec(cmd)
1148 rmse_ref = sum(self.get_channel_rmse(input_path, image_dec))
1149
1150 cmd += ['-blockmodelimit', '25']
1151 self.exec(cmd)
1152 rmse_test = sum(self.get_channel_rmse(input_path, image_dec))
1153
1154 # RMSE should get worse (higher) if we reduce search space
1155 self.assertGreater(rmse_test, rmse_ref)
1156
1157 def test_refinement_limit(self) -> None:
1158 '''

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