SMPTE / ris-osvp-metadata-camdkit

Implements the SMPTE RIS OSVP camera metadata model
BSD 3-Clause "New" or "Revised" License
39 stars 6 forks source link

Non-negative and strictly positive integer param schemas should take their max from unsigned 32-bit #113

Closed JGoldstone closed 1 month ago

JGoldstone commented 1 month ago

The currently generated schemas for NonNegativeIntegerParameter and StrictlyPositiveIntegerParameter take their maximum values from INT_MAX, but as we don't allow negative values for either, we are basically not using half the unsigned 32-bit space. The schemas should be changed to define their maximums as UINT_MAX rather than INT_MAX.