[IQ change] Halve angular_steppings density
This change reduces the number of angular steppings used for
testing weight quantization levels, which is one of the most
significant processing costs in the codec. This reduces
image quality by ~0.01 dB, and improves performance by ~10%.
#include <stdio.h>
-static const float angular_steppings[] = {
- 1.0, 1.125, 1.25, 1.375, 1.5, 1.625, 1.75, 1.875,
-
- 2.0, 2.25, 2.5, 2.75,
- 3.0, 3.25, 3.5, 3.75,
- 4.0, 4.25, 4.5, 4.75,
- 5.0, 5.25, 5.5, 5.75,
- 6.0, 6.25, 6.5, 6.75,
- 7.0, 7.25, 7.5, 7.75,
-
- 8.0, 8.5,
- 9.0, 9.5,
- 10.0, 10.5,
- 11.0, 11.5,
- 12.0, 12.5,
- 13.0, 13.5,
- 14.0, 14.5,
- 15.0, 15.5,
- 16.0, 16.5,
- 17.0, 17.5,
- 18.0, 18.5,
- 19.0, 19.5,
- 20.0, 20.5,
- 21.0, 21.5,
- 22.0, 22.5,
- 23.0, 23.5,
- 24.0, 24.5,
- 25.0, 25.5,
- 26.0, 26.5,
- 27.0, 27.5,
- 28.0, 28.5,
- 29.0, 29.5,
- 30.0, 30.5,
- 31.0, 31.5,
- 32.0, 32.5,
- 33.0, 33.5,
- 34.0, 34.5,
- 35.0, 35.5
+static const float angular_steppings[44] = {
+ 1.0f, 1.25f, 1.5f, 1.75f,
+
+ 2.0f, 2.5f, 3.0f, 3.5f,
+ 4.0f, 4.5f, 5.0f, 5.5f,
+ 6.0f, 6.5f, 7.0f, 7.5f,
+
+ 8.0f, 9.0f, 10.0f, 11.0f,
+ 12.0f, 13.0f, 14.0f, 15.0f,
+ 16.0f, 17.0f, 18.0f, 19.0f,
+ 20.0f, 21.0f, 22.0f, 23.0f,
+ 24.0f, 25.0f, 26.0f, 27.0f,
+ 28.0f, 29.0f, 30.0f, 31.0f,
+ 32.0f, 33.0f, 34.0f, 35.0f
};
#define ANGULAR_STEPS ((int)(sizeof(angular_steppings)/sizeof(angular_steppings[0])))
