Distribution solution for a specific number of levels. More...
Data Fields | |
| int32 | levels |
| The number of levels this solution provides. | |
| uint8 | lookup_table [256][256] |
| 64Kb table providing for fast access to multi-level screen values. More... | |
| int32 | refcount |
| Reference counting. | |
| struct multilevel_lookup_solution * | next |
| Forward chain pointer. More... | |
| struct multilevel_lookup_solution * | prev |
| Backward chain pointer. | |
Distribution solution for a specific number of levels.
The original implementation of this algorithm used a static pre-calculated distribution table, which only allowed for one single number of tone levels to be in use at any one time. Instead, we use a cache list so that we can co-exist two or more sets of screens using different numbers of tone levels.
This structure holds the distribution solution we have calculated for a specific number of levels.
| uint8 multilevel_lookup_solution::lookup_table[256][256] |
64Kb table providing for fast access to multi-level screen values.
The first subscript is the input byte value, the second is the threshold value from the mini-HDS solution.
| struct multilevel_lookup_solution* multilevel_lookup_solution::next |
Forward chain pointer.
Chaining