-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Is it a good idea to treat as integer what is not?
Perhaps you should have an additional column "Precision", e.g. 0.001, separate from Unit
e.g.: Anamorphic_Squeeze: Scale, 0.01, Number*
The unit like thing here is it's a scale factor, 1D scaler.
0.01 is the Precision hint is also usable for UI display (meta-data parametrization) and for fileOut (min decimal values).
I understand some old cameras don't have FPU and some legacy SMPTE document used such workarounds but it's 2023.
Maybe for each parameter block add a StorageType so if INT32 below vs FLT32 next example
e.g.: (conceptually)
"shutter_angle", needed, static, "Description", Scale, 0.01, 0, 360.0
camera_parameter_block {
"NumberStorageType": INT32 // static number values have two terms, second one is dividing factor
(...)
"shutter_angle": 18000, 100
(...)
}
camera_parameter_block {
"NumberStorageType": FLT32
(...)
"shutter_angle": 180.00
(...)
}