@photivra/engine 1.4.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1074) hide show
  1. package/CHANGELOG.md +401 -6
  2. package/CITATION.cff +1 -1
  3. package/NODE_SUPPORT.md +64 -12
  4. package/README.md +301 -182
  5. package/SECURITY.md +37 -28
  6. package/THIRD_PARTY.md +148 -4
  7. package/dist/camera/equivalent-focal-length.d.ts +13 -14
  8. package/dist/camera/equivalent-focal-length.js +15 -13
  9. package/dist/camera/equivalent-focal-length.js.map +1 -1
  10. package/dist/camera/field-of-view.d.ts +30 -19
  11. package/dist/camera/field-of-view.js +67 -18
  12. package/dist/camera/field-of-view.js.map +1 -1
  13. package/dist/camera/lens-projection.d.ts +170 -0
  14. package/dist/camera/lens-projection.js +444 -0
  15. package/dist/camera/lens-projection.js.map +1 -0
  16. package/dist/camera/projected-object-size.d.ts +10 -11
  17. package/dist/camera/projected-object-size.js +12 -10
  18. package/dist/camera/projected-object-size.js.map +1 -1
  19. package/dist/capture/capture-export-metadata.d.ts +9 -10
  20. package/dist/capture/capture-export-metadata.js +8 -5
  21. package/dist/capture/capture-export-metadata.js.map +1 -1
  22. package/dist/capture/dng-import.d.ts +91 -0
  23. package/dist/capture/dng-import.js +343 -0
  24. package/dist/capture/dng-import.js.map +1 -0
  25. package/dist/capture/environment-raw-producer.d.ts +37 -17
  26. package/dist/capture/environment-raw-producer.js +43 -19
  27. package/dist/capture/environment-raw-producer.js.map +1 -1
  28. package/dist/capture/export-jpeg.d.ts +35 -4
  29. package/dist/capture/export-jpeg.js +133 -47
  30. package/dist/capture/export-jpeg.js.map +1 -1
  31. package/dist/capture/export-tiff.d.ts +48 -24
  32. package/dist/capture/export-tiff.js +91 -31
  33. package/dist/capture/export-tiff.js.map +1 -1
  34. package/dist/capture/focus-control.d.ts +42 -65
  35. package/dist/capture/focus-control.js +56 -75
  36. package/dist/capture/focus-control.js.map +1 -1
  37. package/dist/capture/host-yield-cadence.d.ts +25 -0
  38. package/dist/capture/host-yield-cadence.js +25 -0
  39. package/dist/capture/host-yield-cadence.js.map +1 -0
  40. package/dist/capture/linear-encoding.d.ts +14 -12
  41. package/dist/capture/linear-encoding.js +14 -13
  42. package/dist/capture/linear-encoding.js.map +1 -1
  43. package/dist/capture/lossless-jpeg.d.ts +27 -0
  44. package/dist/capture/lossless-jpeg.js +237 -0
  45. package/dist/capture/lossless-jpeg.js.map +1 -0
  46. package/dist/capture/native-environment-lean.d.ts +227 -0
  47. package/dist/capture/native-environment-lean.js +974 -0
  48. package/dist/capture/native-environment-lean.js.map +1 -0
  49. package/dist/capture/native-environment-optical-stage.d.ts +97 -0
  50. package/dist/capture/native-environment-optical-stage.js +340 -0
  51. package/dist/capture/native-environment-optical-stage.js.map +1 -0
  52. package/dist/capture/native-environment-raw.d.ts +140 -6
  53. package/dist/capture/native-environment-raw.js +435 -34
  54. package/dist/capture/native-environment-raw.js.map +1 -1
  55. package/dist/capture/native-raw-development.d.ts +118 -5
  56. package/dist/capture/native-raw-development.js +224 -59
  57. package/dist/capture/native-raw-development.js.map +1 -1
  58. package/dist/capture/native-raw-dng.d.ts +60 -0
  59. package/dist/capture/native-raw-dng.js +167 -0
  60. package/dist/capture/native-raw-dng.js.map +1 -0
  61. package/dist/capture/native-raw.d.ts +67 -10
  62. package/dist/capture/native-raw.js +90 -24
  63. package/dist/capture/native-raw.js.map +1 -1
  64. package/dist/capture/packed-sensor-raw.d.ts +160 -0
  65. package/dist/capture/packed-sensor-raw.js +221 -0
  66. package/dist/capture/packed-sensor-raw.js.map +1 -0
  67. package/dist/capture/photographic-export.d.ts +58 -35
  68. package/dist/capture/photographic-export.js +177 -70
  69. package/dist/capture/photographic-export.js.map +1 -1
  70. package/dist/capture/raw-development-kernel.d.ts +52 -0
  71. package/dist/capture/raw-development-kernel.js +88 -0
  72. package/dist/capture/raw-development-kernel.js.map +1 -0
  73. package/dist/capture/raw-frame-limits.d.ts +7 -7
  74. package/dist/capture/raw-frame-limits.js +7 -6
  75. package/dist/capture/raw-frame-limits.js.map +1 -1
  76. package/dist/capture/raw-frame-reconstruction.d.ts +8 -9
  77. package/dist/capture/raw-frame-reconstruction.js +9 -8
  78. package/dist/capture/raw-frame-reconstruction.js.map +1 -1
  79. package/dist/capture/raw-white-level.d.ts +55 -0
  80. package/dist/capture/raw-white-level.js +165 -0
  81. package/dist/capture/raw-white-level.js.map +1 -0
  82. package/dist/capture/release-sequence.d.ts +5 -7
  83. package/dist/capture/release-sequence.js +15 -13
  84. package/dist/capture/release-sequence.js.map +1 -1
  85. package/dist/capture/sensor-raw-frame.d.ts +5 -6
  86. package/dist/capture/sensor-raw-frame.js +26 -9
  87. package/dist/capture/sensor-raw-frame.js.map +1 -1
  88. package/dist/capture/sensor-raw-producer.d.ts +21 -13
  89. package/dist/capture/sensor-raw-producer.js +86 -25
  90. package/dist/capture/sensor-raw-producer.js.map +1 -1
  91. package/dist/capture/simulated-capture.d.ts +15 -16
  92. package/dist/capture/simulated-capture.js +22 -12
  93. package/dist/capture/simulated-capture.js.map +1 -1
  94. package/dist/color/camera-color-matrix.d.ts +69 -0
  95. package/dist/color/camera-color-matrix.js +132 -0
  96. package/dist/color/camera-color-matrix.js.map +1 -0
  97. package/dist/color/capture-color.d.ts +17 -10
  98. package/dist/color/capture-color.js +50 -17
  99. package/dist/color/capture-color.js.map +1 -1
  100. package/dist/color/chromatic-adaptation.d.ts +63 -0
  101. package/dist/color/chromatic-adaptation.js +91 -0
  102. package/dist/color/chromatic-adaptation.js.map +1 -0
  103. package/dist/color/color-difference.d.ts +104 -0
  104. package/dist/color/color-difference.js +205 -0
  105. package/dist/color/color-difference.js.map +1 -0
  106. package/dist/color/color-matching-functions.d.ts +168 -0
  107. package/dist/color/color-matching-functions.js +309 -0
  108. package/dist/color/color-matching-functions.js.map +1 -0
  109. package/dist/color/colorimetry-math.d.ts +52 -0
  110. package/dist/color/colorimetry-math.js +144 -0
  111. package/dist/color/colorimetry-math.js.map +1 -0
  112. package/dist/color/gamut-mapping.d.ts +54 -0
  113. package/dist/color/gamut-mapping.js +107 -0
  114. package/dist/color/gamut-mapping.js.map +1 -0
  115. package/dist/color/illuminants.d.ts +182 -0
  116. package/dist/color/illuminants.js +434 -0
  117. package/dist/color/illuminants.js.map +1 -0
  118. package/dist/color/rgb-color-spaces.d.ts +79 -0
  119. package/dist/color/rgb-color-spaces.js +115 -0
  120. package/dist/color/rgb-color-spaces.js.map +1 -0
  121. package/dist/color/sensor-color-development.d.ts +33 -11
  122. package/dist/color/sensor-color-development.js +104 -30
  123. package/dist/color/sensor-color-development.js.map +1 -1
  124. package/dist/color/srgb-icc.d.ts +9 -2
  125. package/dist/color/srgb-icc.js +16 -5
  126. package/dist/color/srgb-icc.js.map +1 -1
  127. package/dist/color/srgb-transfer.d.ts +1 -2
  128. package/dist/color/srgb-transfer.js +1 -1
  129. package/dist/color/srgb-transfer.js.map +1 -1
  130. package/dist/color/white-balance.d.ts +68 -19
  131. package/dist/color/white-balance.js +168 -35
  132. package/dist/color/white-balance.js.map +1 -1
  133. package/dist/composition/image-formation-plan.d.ts +152 -128
  134. package/dist/composition/image-formation-plan.js +292 -138
  135. package/dist/composition/image-formation-plan.js.map +1 -1
  136. package/dist/composition/plan-consumer.d.ts +6 -7
  137. package/dist/composition/plan-consumer.js +14 -11
  138. package/dist/composition/plan-consumer.js.map +1 -1
  139. package/dist/core/calculation-result.d.ts +21 -14
  140. package/dist/core/calculation-result.js +209 -11
  141. package/dist/core/calculation-result.js.map +1 -1
  142. package/dist/core/canonical-json.d.ts +13 -8
  143. package/dist/core/canonical-json.js +34 -15
  144. package/dist/core/canonical-json.js.map +1 -1
  145. package/dist/core/configuration-error.d.ts +5 -4
  146. package/dist/core/configuration-error.js +5 -3
  147. package/dist/core/configuration-error.js.map +1 -1
  148. package/dist/core/evidence-provenance.d.ts +12 -12
  149. package/dist/core/evidence-provenance.js +10 -9
  150. package/dist/core/evidence-provenance.js.map +1 -1
  151. package/dist/core/image-formation.d.ts +11 -10
  152. package/dist/core/image-formation.js +11 -9
  153. package/dist/core/image-formation.js.map +1 -1
  154. package/dist/core/owned-data.d.ts +9 -17
  155. package/dist/core/owned-data.js +9 -16
  156. package/dist/core/owned-data.js.map +1 -1
  157. package/dist/core/portable-math.d.ts +15 -0
  158. package/dist/core/portable-math.js +56 -0
  159. package/dist/core/portable-math.js.map +1 -0
  160. package/dist/core/record-validation.d.ts +48 -9
  161. package/dist/core/record-validation.js +93 -19
  162. package/dist/core/record-validation.js.map +1 -1
  163. package/dist/core/scientific-assurance.d.ts +16 -14
  164. package/dist/core/scientific-assurance.js +22 -18
  165. package/dist/core/scientific-assurance.js.map +1 -1
  166. package/dist/core/spectral-composition.d.ts +13 -14
  167. package/dist/core/spectral-composition.js +30 -27
  168. package/dist/core/spectral-composition.js.map +1 -1
  169. package/dist/core/spectral.d.ts +5 -6
  170. package/dist/core/spectral.js +9 -7
  171. package/dist/core/spectral.js.map +1 -1
  172. package/dist/core/validation.d.ts +3 -6
  173. package/dist/core/validation.js +3 -5
  174. package/dist/core/validation.js.map +1 -1
  175. package/dist/core/version.d.ts +6 -6
  176. package/dist/core/version.js +6 -5
  177. package/dist/core/version.js.map +1 -1
  178. package/dist/equipment/exposure-capabilities.d.ts +10 -10
  179. package/dist/equipment/exposure-capabilities.js +40 -30
  180. package/dist/equipment/exposure-capabilities.js.map +1 -1
  181. package/dist/equipment/generic-tier-assets.d.ts +13 -6
  182. package/dist/equipment/generic-tier-assets.js +34 -15
  183. package/dist/equipment/generic-tier-assets.js.map +1 -1
  184. package/dist/equipment/generic-tier-presets.d.ts +5 -6
  185. package/dist/equipment/generic-tier-presets.js +15 -13
  186. package/dist/equipment/generic-tier-presets.js.map +1 -1
  187. package/dist/equipment/iso-capabilities.d.ts +21 -22
  188. package/dist/equipment/iso-capabilities.js +49 -44
  189. package/dist/equipment/iso-capabilities.js.map +1 -1
  190. package/dist/equipment/metering-capabilities.d.ts +5 -6
  191. package/dist/equipment/metering-capabilities.js +22 -19
  192. package/dist/equipment/metering-capabilities.js.map +1 -1
  193. package/dist/equipment/release-capabilities.d.ts +3 -4
  194. package/dist/equipment/release-capabilities.js +18 -14
  195. package/dist/equipment/release-capabilities.js.map +1 -1
  196. package/dist/exposure/exposure-duration-control.d.ts +19 -17
  197. package/dist/exposure/exposure-duration-control.js +27 -23
  198. package/dist/exposure/exposure-duration-control.js.map +1 -1
  199. package/dist/exposure/exposure-mode-resolver.d.ts +42 -39
  200. package/dist/exposure/exposure-mode-resolver.js +127 -82
  201. package/dist/exposure/exposure-mode-resolver.js.map +1 -1
  202. package/dist/exposure/exposure.d.ts +17 -16
  203. package/dist/exposure/exposure.js +22 -15
  204. package/dist/exposure/exposure.js.map +1 -1
  205. package/dist/exposure/flash-ttl.d.ts +135 -0
  206. package/dist/exposure/flash-ttl.js +193 -0
  207. package/dist/exposure/flash-ttl.js.map +1 -0
  208. package/dist/exposure/flash.d.ts +144 -36
  209. package/dist/exposure/flash.js +259 -59
  210. package/dist/exposure/flash.js.map +1 -1
  211. package/dist/exposure/metering-scene-radiance.d.ts +10 -10
  212. package/dist/exposure/metering-scene-radiance.js +42 -23
  213. package/dist/exposure/metering-scene-radiance.js.map +1 -1
  214. package/dist/exposure/metering-target.d.ts +8 -8
  215. package/dist/exposure/metering-target.js +30 -20
  216. package/dist/exposure/metering-target.js.map +1 -1
  217. package/dist/exposure/metering-temporal.d.ts +16 -15
  218. package/dist/exposure/metering-temporal.js +41 -19
  219. package/dist/exposure/metering-temporal.js.map +1 -1
  220. package/dist/exposure/metering.d.ts +64 -17
  221. package/dist/exposure/metering.js +159 -30
  222. package/dist/exposure/metering.js.map +1 -1
  223. package/dist/exposure/program-line.d.ts +5 -5
  224. package/dist/exposure/program-line.js +20 -13
  225. package/dist/exposure/program-line.js.map +1 -1
  226. package/dist/facade/camera-preset.d.ts +8 -0
  227. package/dist/facade/camera-preset.js +102 -0
  228. package/dist/facade/camera-preset.js.map +1 -0
  229. package/dist/facade/chart-radiance-batch.d.ts +57 -0
  230. package/dist/facade/chart-radiance-batch.js +121 -0
  231. package/dist/facade/chart-radiance-batch.js.map +1 -0
  232. package/dist/facade/chart-scenes.d.ts +177 -0
  233. package/dist/facade/chart-scenes.js +232 -0
  234. package/dist/facade/chart-scenes.js.map +1 -0
  235. package/dist/facade/host-yield.d.ts +7 -0
  236. package/dist/facade/host-yield.js +23 -0
  237. package/dist/facade/host-yield.js.map +1 -0
  238. package/dist/facade/scene-radiance.d.ts +117 -0
  239. package/dist/facade/scene-radiance.js +205 -0
  240. package/dist/facade/scene-radiance.js.map +1 -0
  241. package/dist/facade/simulate-capture.d.ts +284 -0
  242. package/dist/facade/simulate-capture.js +1026 -0
  243. package/dist/facade/simulate-capture.js.map +1 -0
  244. package/dist/gpu/chart-radiance-gpu.d.ts +17 -0
  245. package/dist/gpu/chart-radiance-gpu.js +176 -0
  246. package/dist/gpu/chart-radiance-gpu.js.map +1 -0
  247. package/dist/gpu/image-kernel-accelerator.d.ts +132 -0
  248. package/dist/gpu/image-kernel-accelerator.js +720 -0
  249. package/dist/gpu/image-kernel-accelerator.js.map +1 -0
  250. package/dist/gpu/image-kernel-execution.d.ts +92 -0
  251. package/dist/gpu/image-kernel-execution.js +84 -0
  252. package/dist/gpu/image-kernel-execution.js.map +1 -0
  253. package/dist/gpu/sensor-stage-gpu.d.ts +44 -0
  254. package/dist/gpu/sensor-stage-gpu.js +317 -0
  255. package/dist/gpu/sensor-stage-gpu.js.map +1 -0
  256. package/dist/gpu/temporal-sum-gpu.d.ts +23 -0
  257. package/dist/gpu/temporal-sum-gpu.js +150 -0
  258. package/dist/gpu/temporal-sum-gpu.js.map +1 -0
  259. package/dist/gpu/webgpu-runtime.d.ts +63 -0
  260. package/dist/gpu/webgpu-runtime.js +215 -0
  261. package/dist/gpu/webgpu-runtime.js.map +1 -0
  262. package/dist/gpu/wgsl-chart-kernel.d.ts +30 -0
  263. package/dist/gpu/wgsl-chart-kernel.js +165 -0
  264. package/dist/gpu/wgsl-chart-kernel.js.map +1 -0
  265. package/dist/gpu/wgsl-kernels.d.ts +53 -0
  266. package/dist/gpu/wgsl-kernels.js +365 -0
  267. package/dist/gpu/wgsl-kernels.js.map +1 -0
  268. package/dist/gpu/wgsl-sensor-kernel.d.ts +64 -0
  269. package/dist/gpu/wgsl-sensor-kernel.js +409 -0
  270. package/dist/gpu/wgsl-sensor-kernel.js.map +1 -0
  271. package/dist/index.d.ts +89 -25
  272. package/dist/index.js +59 -15
  273. package/dist/index.js.map +1 -1
  274. package/dist/motion/camera-rotation.d.ts +92 -40
  275. package/dist/motion/camera-rotation.js +84 -47
  276. package/dist/motion/camera-rotation.js.map +1 -1
  277. package/dist/motion/capture-rotation-inverse-mapping.d.ts +37 -34
  278. package/dist/motion/capture-rotation-inverse-mapping.js +32 -24
  279. package/dist/motion/capture-rotation-inverse-mapping.js.map +1 -1
  280. package/dist/motion/capture-rotation-temporal-quadrature.d.ts +39 -35
  281. package/dist/motion/capture-rotation-temporal-quadrature.js +37 -28
  282. package/dist/motion/capture-rotation-temporal-quadrature.js.map +1 -1
  283. package/dist/motion/capture-rotation-trajectory.d.ts +32 -28
  284. package/dist/motion/capture-rotation-trajectory.js +36 -26
  285. package/dist/motion/capture-rotation-trajectory.js.map +1 -1
  286. package/dist/motion/capture-translation-parallax-temporal-quadrature.d.ts +23 -21
  287. package/dist/motion/capture-translation-parallax-temporal-quadrature.js +33 -14
  288. package/dist/motion/capture-translation-parallax-temporal-quadrature.js.map +1 -1
  289. package/dist/motion/extended-object-projection.d.ts +19 -16
  290. package/dist/motion/extended-object-projection.js +38 -18
  291. package/dist/motion/extended-object-projection.js.map +1 -1
  292. package/dist/motion/projected-motion.d.ts +18 -17
  293. package/dist/motion/projected-motion.js +25 -17
  294. package/dist/motion/projected-motion.js.map +1 -1
  295. package/dist/motion/temporal-exposure-sum.d.ts +55 -0
  296. package/dist/motion/temporal-exposure-sum.js +141 -0
  297. package/dist/motion/temporal-exposure-sum.js.map +1 -0
  298. package/dist/motion/video-sequence.d.ts +111 -0
  299. package/dist/motion/video-sequence.js +179 -0
  300. package/dist/motion/video-sequence.js.map +1 -0
  301. package/dist/optics/aperture.d.ts +14 -15
  302. package/dist/optics/aperture.js +13 -11
  303. package/dist/optics/aperture.js.map +1 -1
  304. package/dist/optics/atmospheric-haze.d.ts +83 -0
  305. package/dist/optics/atmospheric-haze.js +113 -0
  306. package/dist/optics/atmospheric-haze.js.map +1 -0
  307. package/dist/optics/brown-conrady-distortion.d.ts +116 -0
  308. package/dist/optics/brown-conrady-distortion.js +291 -0
  309. package/dist/optics/brown-conrady-distortion.js.map +1 -0
  310. package/dist/optics/circle-of-confusion.d.ts +10 -10
  311. package/dist/optics/circle-of-confusion.js +15 -11
  312. package/dist/optics/circle-of-confusion.js.map +1 -1
  313. package/dist/optics/complex-pupil-psf.d.ts +64 -33
  314. package/dist/optics/complex-pupil-psf.js +190 -98
  315. package/dist/optics/complex-pupil-psf.js.map +1 -1
  316. package/dist/optics/depth-of-field.d.ts +25 -15
  317. package/dist/optics/depth-of-field.js +67 -27
  318. package/dist/optics/depth-of-field.js.map +1 -1
  319. package/dist/optics/diffraction.d.ts +14 -13
  320. package/dist/optics/diffraction.js +14 -10
  321. package/dist/optics/diffraction.js.map +1 -1
  322. package/dist/optics/focus-breathing.d.ts +88 -27
  323. package/dist/optics/focus-breathing.js +114 -23
  324. package/dist/optics/focus-breathing.js.map +1 -1
  325. package/dist/optics/focus-state.d.ts +18 -18
  326. package/dist/optics/focus-state.js +21 -15
  327. package/dist/optics/focus-state.js.map +1 -1
  328. package/dist/optics/front-of-lens-filter.d.ts +45 -14
  329. package/dist/optics/front-of-lens-filter.js +259 -88
  330. package/dist/optics/front-of-lens-filter.js.map +1 -1
  331. package/dist/optics/illumination-vignetting.d.ts +16 -17
  332. package/dist/optics/illumination-vignetting.js +40 -17
  333. package/dist/optics/illumination-vignetting.js.map +1 -1
  334. package/dist/optics/irradiance-convolution.d.ts +59 -0
  335. package/dist/optics/irradiance-convolution.js +138 -0
  336. package/dist/optics/irradiance-convolution.js.map +1 -0
  337. package/dist/optics/lateral-chromatic-aberration.d.ts +33 -30
  338. package/dist/optics/lateral-chromatic-aberration.js +33 -23
  339. package/dist/optics/lateral-chromatic-aberration.js.map +1 -1
  340. package/dist/optics/lens-psf-kernels.d.ts +89 -0
  341. package/dist/optics/lens-psf-kernels.js +175 -0
  342. package/dist/optics/lens-psf-kernels.js.map +1 -0
  343. package/dist/optics/lens-psf-profile.d.ts +78 -46
  344. package/dist/optics/lens-psf-profile.js +335 -124
  345. package/dist/optics/lens-psf-profile.js.map +1 -1
  346. package/dist/optics/longitudinal-chromatic-aberration.d.ts +102 -0
  347. package/dist/optics/longitudinal-chromatic-aberration.js +210 -0
  348. package/dist/optics/longitudinal-chromatic-aberration.js.map +1 -0
  349. package/dist/optics/polygon-diffraction.d.ts +80 -23
  350. package/dist/optics/polygon-diffraction.js +130 -25
  351. package/dist/optics/polygon-diffraction.js.map +1 -1
  352. package/dist/optics/profile-contract.d.ts +5 -6
  353. package/dist/optics/profile-contract.js +14 -11
  354. package/dist/optics/profile-contract.js.map +1 -1
  355. package/dist/optics/psf-foundation.d.ts +23 -23
  356. package/dist/optics/psf-foundation.js +24 -21
  357. package/dist/optics/psf-foundation.js.map +1 -1
  358. package/dist/optics/pupil-vignetting.d.ts +118 -0
  359. package/dist/optics/pupil-vignetting.js +264 -0
  360. package/dist/optics/pupil-vignetting.js.map +1 -0
  361. package/dist/optics/radial-distortion.d.ts +34 -33
  362. package/dist/optics/radial-distortion.js +37 -30
  363. package/dist/optics/radial-distortion.js.map +1 -1
  364. package/dist/optics/scene-to-sensor-irradiance.d.ts +47 -33
  365. package/dist/optics/scene-to-sensor-irradiance.js +73 -45
  366. package/dist/optics/scene-to-sensor-irradiance.js.map +1 -1
  367. package/dist/optics/scene-to-sensor-quadrature.d.ts +23 -18
  368. package/dist/optics/scene-to-sensor-quadrature.js +16 -11
  369. package/dist/optics/scene-to-sensor-quadrature.js.map +1 -1
  370. package/dist/optics/sensor-aperture-rays.d.ts +20 -4
  371. package/dist/optics/sensor-aperture-rays.js +32 -14
  372. package/dist/optics/sensor-aperture-rays.js.map +1 -1
  373. package/dist/optics/sensor-environment-query.d.ts +81 -16
  374. package/dist/optics/sensor-environment-query.js +145 -12
  375. package/dist/optics/sensor-environment-query.js.map +1 -1
  376. package/dist/optics/sensor-psf-quadrature.d.ts +12 -10
  377. package/dist/optics/sensor-psf-quadrature.js +18 -11
  378. package/dist/optics/sensor-psf-quadrature.js.map +1 -1
  379. package/dist/optics/sensor-psf-support.d.ts +8 -6
  380. package/dist/optics/sensor-psf-support.js +8 -5
  381. package/dist/optics/sensor-psf-support.js.map +1 -1
  382. package/dist/optics/stray-light.d.ts +22 -19
  383. package/dist/optics/stray-light.js +18 -12
  384. package/dist/optics/stray-light.js.map +1 -1
  385. package/dist/optics/thin-lens.d.ts +10 -9
  386. package/dist/optics/thin-lens.js +12 -8
  387. package/dist/optics/thin-lens.js.map +1 -1
  388. package/dist/optics/zernike-wavefront.d.ts +154 -0
  389. package/dist/optics/zernike-wavefront.js +352 -0
  390. package/dist/optics/zernike-wavefront.js.map +1 -0
  391. package/dist/output/capture-corrected-sdr.d.ts +16 -8
  392. package/dist/output/capture-corrected-sdr.js +16 -8
  393. package/dist/output/capture-corrected-sdr.js.map +1 -1
  394. package/dist/output/capture-geometry.d.ts +34 -36
  395. package/dist/output/capture-geometry.js +52 -32
  396. package/dist/output/capture-geometry.js.map +1 -1
  397. package/dist/output/capture-sdr.d.ts +7 -6
  398. package/dist/output/capture-sdr.js +11 -8
  399. package/dist/output/capture-sdr.js.map +1 -1
  400. package/dist/output/crop.d.ts +22 -6
  401. package/dist/output/crop.js +40 -6
  402. package/dist/output/crop.js.map +1 -1
  403. package/dist/output/geometric-transforms.d.ts +60 -23
  404. package/dist/output/geometric-transforms.js +111 -24
  405. package/dist/output/geometric-transforms.js.map +1 -1
  406. package/dist/output/lens-corrections.d.ts +27 -19
  407. package/dist/output/lens-corrections.js +29 -13
  408. package/dist/output/lens-corrections.js.map +1 -1
  409. package/dist/output/native-capture-sdr.d.ts +71 -16
  410. package/dist/output/native-capture-sdr.js +190 -33
  411. package/dist/output/native-capture-sdr.js.map +1 -1
  412. package/dist/output/png-encoder.d.ts +65 -0
  413. package/dist/output/png-encoder.js +461 -0
  414. package/dist/output/png-encoder.js.map +1 -0
  415. package/dist/output/print-contrast-reference.d.ts +10 -9
  416. package/dist/output/print-contrast-reference.js +10 -8
  417. package/dist/output/print-contrast-reference.js.map +1 -1
  418. package/dist/output/print-detail.d.ts +18 -17
  419. package/dist/output/print-detail.js +12 -10
  420. package/dist/output/print-detail.js.map +1 -1
  421. package/dist/output/print-jpeg.d.ts +26 -5
  422. package/dist/output/print-jpeg.js +117 -50
  423. package/dist/output/print-jpeg.js.map +1 -1
  424. package/dist/output/print-plan.d.ts +19 -19
  425. package/dist/output/print-plan.js +11 -10
  426. package/dist/output/print-plan.js.map +1 -1
  427. package/dist/output/print-region-statistics.d.ts +14 -15
  428. package/dist/output/print-region-statistics.js +11 -11
  429. package/dist/output/print-region-statistics.js.map +1 -1
  430. package/dist/output/sdr-rendering.d.ts +48 -10
  431. package/dist/output/sdr-rendering.js +114 -25
  432. package/dist/output/sdr-rendering.js.map +1 -1
  433. package/dist/output/subject-framing-crop.d.ts +6 -10
  434. package/dist/output/subject-framing-crop.js +23 -13
  435. package/dist/output/subject-framing-crop.js.map +1 -1
  436. package/dist/processing/demosaic.d.ts +90 -0
  437. package/dist/processing/demosaic.js +275 -0
  438. package/dist/processing/demosaic.js.map +1 -0
  439. package/dist/processing/denoise.d.ts +68 -0
  440. package/dist/processing/denoise.js +214 -0
  441. package/dist/processing/denoise.js.map +1 -0
  442. package/dist/processing/focus-stacking.d.ts +17 -0
  443. package/dist/processing/focus-stacking.js +80 -0
  444. package/dist/processing/focus-stacking.js.map +1 -0
  445. package/dist/processing/hdr.d.ts +54 -0
  446. package/dist/processing/hdr.js +172 -0
  447. package/dist/processing/hdr.js.map +1 -0
  448. package/dist/processing/image-ops.d.ts +66 -0
  449. package/dist/processing/image-ops.js +192 -0
  450. package/dist/processing/image-ops.js.map +1 -0
  451. package/dist/processing/panorama.d.ts +51 -0
  452. package/dist/processing/panorama.js +305 -0
  453. package/dist/processing/panorama.js.map +1 -0
  454. package/dist/processing/processing-task.d.ts +85 -0
  455. package/dist/processing/processing-task.js +164 -0
  456. package/dist/processing/processing-task.js.map +1 -0
  457. package/dist/processing/tone-mapping.d.ts +69 -0
  458. package/dist/processing/tone-mapping.js +310 -0
  459. package/dist/processing/tone-mapping.js.map +1 -0
  460. package/dist/schema/camera.d.ts +5 -4
  461. package/dist/schema/illumination-spectral.d.ts +13 -19
  462. package/dist/schema/illumination-spectral.js +23 -19
  463. package/dist/schema/illumination-spectral.js.map +1 -1
  464. package/dist/schema/illumination-temporal.d.ts +12 -15
  465. package/dist/schema/illumination-temporal.js +43 -28
  466. package/dist/schema/illumination-temporal.js.map +1 -1
  467. package/dist/schema/illumination.d.ts +5 -4
  468. package/dist/schema/illumination.js +55 -20
  469. package/dist/schema/illumination.js.map +1 -1
  470. package/dist/schema/scene-radiance-temporal.d.ts +9 -11
  471. package/dist/schema/scene-radiance-temporal.js +26 -23
  472. package/dist/schema/scene-radiance-temporal.js.map +1 -1
  473. package/dist/schema/scene-radiance.d.ts +17 -17
  474. package/dist/schema/scene-radiance.js +56 -34
  475. package/dist/schema/scene-radiance.js.map +1 -1
  476. package/dist/schema/scene.d.ts +14 -13
  477. package/dist/schema/validation.d.ts +0 -1
  478. package/dist/schema/validation.js +17 -15
  479. package/dist/schema/validation.js.map +1 -1
  480. package/dist/sensor/accumulated-charge.d.ts +45 -64
  481. package/dist/sensor/accumulated-charge.js +41 -47
  482. package/dist/sensor/accumulated-charge.js.map +1 -1
  483. package/dist/sensor/architecture.d.ts +22 -25
  484. package/dist/sensor/architecture.js +17 -16
  485. package/dist/sensor/architecture.js.map +1 -1
  486. package/dist/sensor/camera-saturation-capacity.d.ts +21 -28
  487. package/dist/sensor/camera-saturation-capacity.js +36 -34
  488. package/dist/sensor/camera-saturation-capacity.js.map +1 -1
  489. package/dist/sensor/capture-color-sampling-binding.d.ts +46 -51
  490. package/dist/sensor/capture-color-sampling-binding.js +39 -41
  491. package/dist/sensor/capture-color-sampling-binding.js.map +1 -1
  492. package/dist/sensor/capture-mode-timing.d.ts +8 -9
  493. package/dist/sensor/capture-mode-timing.js +24 -21
  494. package/dist/sensor/capture-mode-timing.js.map +1 -1
  495. package/dist/sensor/capture-mode.d.ts +28 -30
  496. package/dist/sensor/capture-mode.js +33 -31
  497. package/dist/sensor/capture-mode.js.map +1 -1
  498. package/dist/sensor/color-sampling.d.ts +30 -33
  499. package/dist/sensor/color-sampling.js +32 -37
  500. package/dist/sensor/color-sampling.js.map +1 -1
  501. package/dist/sensor/constant-rate-temporal-integration.d.ts +19 -23
  502. package/dist/sensor/constant-rate-temporal-integration.js +28 -26
  503. package/dist/sensor/constant-rate-temporal-integration.js.map +1 -1
  504. package/dist/sensor/dark-current.d.ts +53 -49
  505. package/dist/sensor/dark-current.js +87 -46
  506. package/dist/sensor/dark-current.js.map +1 -1
  507. package/dist/sensor/environment-photo-signal.d.ts +71 -30
  508. package/dist/sensor/environment-photo-signal.js +127 -46
  509. package/dist/sensor/environment-photo-signal.js.map +1 -1
  510. package/dist/sensor/eqe-electron-rate.d.ts +14 -13
  511. package/dist/sensor/eqe-electron-rate.js +34 -14
  512. package/dist/sensor/eqe-electron-rate.js.map +1 -1
  513. package/dist/sensor/eqe-local-exposure.d.ts +24 -24
  514. package/dist/sensor/eqe-local-exposure.js +15 -11
  515. package/dist/sensor/eqe-local-exposure.js.map +1 -1
  516. package/dist/sensor/eqe-temporal-exposure.d.ts +11 -11
  517. package/dist/sensor/eqe-temporal-exposure.js +15 -10
  518. package/dist/sensor/eqe-temporal-exposure.js.map +1 -1
  519. package/dist/sensor/exposure-window.d.ts +48 -34
  520. package/dist/sensor/exposure-window.js +77 -36
  521. package/dist/sensor/exposure-window.js.map +1 -1
  522. package/dist/sensor/fixed-pattern-noise.d.ts +108 -0
  523. package/dist/sensor/fixed-pattern-noise.js +166 -0
  524. package/dist/sensor/fixed-pattern-noise.js.map +1 -0
  525. package/dist/sensor/iso-gain.d.ts +44 -0
  526. package/dist/sensor/iso-gain.js +119 -0
  527. package/dist/sensor/iso-gain.js.map +1 -0
  528. package/dist/sensor/iso-signal-chain.d.ts +25 -48
  529. package/dist/sensor/iso-signal-chain.js +52 -66
  530. package/dist/sensor/iso-signal-chain.js.map +1 -1
  531. package/dist/sensor/local-exposure-binding.d.ts +21 -21
  532. package/dist/sensor/local-exposure-binding.js +22 -18
  533. package/dist/sensor/local-exposure-binding.js.map +1 -1
  534. package/dist/sensor/optical-stack.d.ts +36 -40
  535. package/dist/sensor/optical-stack.js +34 -37
  536. package/dist/sensor/optical-stack.js.map +1 -1
  537. package/dist/sensor/photon-energy.d.ts +22 -28
  538. package/dist/sensor/photon-energy.js +42 -34
  539. package/dist/sensor/photon-energy.js.map +1 -1
  540. package/dist/sensor/physical-charge-capacity.d.ts +20 -30
  541. package/dist/sensor/physical-charge-capacity.js +35 -36
  542. package/dist/sensor/physical-charge-capacity.js.map +1 -1
  543. package/dist/sensor/pixel-pitch.d.ts +2 -3
  544. package/dist/sensor/pixel-pitch.js +4 -2
  545. package/dist/sensor/pixel-pitch.js.map +1 -1
  546. package/dist/sensor/radiometry-readiness.d.ts +13 -15
  547. package/dist/sensor/radiometry-readiness.js +20 -17
  548. package/dist/sensor/radiometry-readiness.js.map +1 -1
  549. package/dist/sensor/raw-readout.d.ts +173 -83
  550. package/dist/sensor/raw-readout.js +425 -160
  551. package/dist/sensor/raw-readout.js.map +1 -1
  552. package/dist/sensor/raw-reconstruction.d.ts +112 -44
  553. package/dist/sensor/raw-reconstruction.js +200 -47
  554. package/dist/sensor/raw-reconstruction.js.map +1 -1
  555. package/dist/sensor/readout-exposure-linkage.d.ts +103 -34
  556. package/dist/sensor/readout-exposure-linkage.js +125 -27
  557. package/dist/sensor/readout-exposure-linkage.js.map +1 -1
  558. package/dist/sensor/readout-timing.d.ts +43 -44
  559. package/dist/sensor/readout-timing.js +38 -30
  560. package/dist/sensor/readout-timing.js.map +1 -1
  561. package/dist/sensor/response-application-compatibility.d.ts +21 -28
  562. package/dist/sensor/response-application-compatibility.js +35 -34
  563. package/dist/sensor/response-application-compatibility.js.map +1 -1
  564. package/dist/sensor/response-operating-range.d.ts +26 -35
  565. package/dist/sensor/response-operating-range.js +40 -39
  566. package/dist/sensor/response-operating-range.js.map +1 -1
  567. package/dist/sensor/responsivity-photocurrent.d.ts +21 -29
  568. package/dist/sensor/responsivity-photocurrent.js +57 -40
  569. package/dist/sensor/responsivity-photocurrent.js.map +1 -1
  570. package/dist/sensor/sampling-aperture.d.ts +21 -25
  571. package/dist/sensor/sampling-aperture.js +29 -28
  572. package/dist/sensor/sampling-aperture.js.map +1 -1
  573. package/dist/sensor/scene-eqe-temporal-exposure.d.ts +14 -12
  574. package/dist/sensor/scene-eqe-temporal-exposure.js +13 -8
  575. package/dist/sensor/scene-eqe-temporal-exposure.js.map +1 -1
  576. package/dist/sensor/sensor-geometry.d.ts +28 -32
  577. package/dist/sensor/sensor-geometry.js +35 -20
  578. package/dist/sensor/sensor-geometry.js.map +1 -1
  579. package/dist/sensor/signal-noise.d.ts +14 -16
  580. package/dist/sensor/signal-noise.js +15 -13
  581. package/dist/sensor/signal-noise.js.map +1 -1
  582. package/dist/sensor/spatial-sample-reduction.d.ts +45 -60
  583. package/dist/sensor/spatial-sample-reduction.js +39 -48
  584. package/dist/sensor/spatial-sample-reduction.js.map +1 -1
  585. package/dist/sensor/spatial-sampling-quadrature.d.ts +46 -54
  586. package/dist/sensor/spatial-sampling-quadrature.js +31 -36
  587. package/dist/sensor/spatial-sampling-quadrature.js.map +1 -1
  588. package/dist/sensor/spatio-spectral-reduction.d.ts +32 -42
  589. package/dist/sensor/spatio-spectral-reduction.js +24 -29
  590. package/dist/sensor/spatio-spectral-reduction.js.map +1 -1
  591. package/dist/sensor/spectral-coverage.d.ts +6 -9
  592. package/dist/sensor/spectral-coverage.js +9 -6
  593. package/dist/sensor/spectral-coverage.js.map +1 -1
  594. package/dist/sensor/spectral-quadrature.d.ts +46 -60
  595. package/dist/sensor/spectral-quadrature.js +38 -48
  596. package/dist/sensor/spectral-quadrature.js.map +1 -1
  597. package/dist/sensor/spectral-response.d.ts +53 -41
  598. package/dist/sensor/spectral-response.js +80 -47
  599. package/dist/sensor/spectral-response.js.map +1 -1
  600. package/dist/sensor/stochastic-seed.d.ts +50 -0
  601. package/dist/sensor/stochastic-seed.js +123 -0
  602. package/dist/sensor/stochastic-seed.js.map +1 -0
  603. package/dist/sensor/temporal-eqe-sum.d.ts +2 -4
  604. package/dist/sensor/temporal-eqe-sum.js +5 -6
  605. package/dist/sensor/temporal-eqe-sum.js.map +1 -1
  606. package/dist/sensor/temporal-photo-signal.d.ts +5 -6
  607. package/dist/sensor/temporal-photo-signal.js +11 -10
  608. package/dist/sensor/temporal-photo-signal.js.map +1 -1
  609. package/dist/sensor/temporal-sample-binding.d.ts +1 -2
  610. package/dist/sensor/temporal-sample-binding.js +3 -3
  611. package/dist/sensor/temporal-sample-binding.js.map +1 -1
  612. package/dist/simulation/poc-simulation.d.ts +16 -16
  613. package/dist/simulation/poc-simulation.js +20 -15
  614. package/dist/simulation/poc-simulation.js.map +1 -1
  615. package/dist/stabilization/camera-shake.d.ts +42 -18
  616. package/dist/stabilization/camera-shake.js +43 -20
  617. package/dist/stabilization/camera-shake.js.map +1 -1
  618. package/dist/stabilization/system.d.ts +44 -41
  619. package/dist/stabilization/system.js +196 -108
  620. package/dist/stabilization/system.js.map +1 -1
  621. package/docs/AGENT_GUIDE.md +183 -0
  622. package/docs/API_REFERENCE.md +761 -2
  623. package/docs/QUICK_START.md +495 -0
  624. package/docs/USAGE.md +1719 -714
  625. package/docs/api/camera-equivalent-focal-length.md +6 -7
  626. package/docs/api/camera-field-of-view.md +16 -8
  627. package/docs/api/camera-lens-projection.md +246 -0
  628. package/docs/api/camera-projected-object-size.md +6 -5
  629. package/docs/api/capture-capture-export-metadata.md +10 -10
  630. package/docs/api/capture-dng-import.md +134 -0
  631. package/docs/api/capture-environment-raw-producer.md +17 -11
  632. package/docs/api/capture-export-jpeg.md +16 -0
  633. package/docs/api/capture-focus-control.md +25 -47
  634. package/docs/api/capture-linear-encoding.md +21 -12
  635. package/docs/api/capture-lossless-jpeg.md +49 -0
  636. package/docs/api/capture-native-environment-optical-stage.md +75 -0
  637. package/docs/api/capture-native-environment-raw.md +161 -4
  638. package/docs/api/capture-native-raw-development.md +69 -4
  639. package/docs/api/capture-native-raw-dng.md +84 -0
  640. package/docs/api/capture-native-raw.md +23 -8
  641. package/docs/api/capture-packed-sensor-raw.md +156 -0
  642. package/docs/api/capture-photographic-export.md +69 -31
  643. package/docs/api/capture-raw-frame-reconstruction.md +8 -8
  644. package/docs/api/capture-raw-white-level.md +37 -0
  645. package/docs/api/capture-release-sequence.md +6 -7
  646. package/docs/api/capture-sensor-raw-frame.md +6 -6
  647. package/docs/api/capture-sensor-raw-producer.md +17 -11
  648. package/docs/api/capture-simulated-capture.md +15 -15
  649. package/docs/api/color-camera-color-matrix.md +103 -0
  650. package/docs/api/color-capture-color.md +22 -11
  651. package/docs/api/color-chromatic-adaptation.md +82 -0
  652. package/docs/api/color-color-difference.md +134 -0
  653. package/docs/api/color-color-matching-functions.md +259 -0
  654. package/docs/api/color-colorimetry-math.md +54 -0
  655. package/docs/api/color-gamut-mapping.md +72 -0
  656. package/docs/api/color-illuminants.md +280 -0
  657. package/docs/api/color-rgb-color-spaces.md +151 -0
  658. package/docs/api/color-sensor-color-development.md +27 -0
  659. package/docs/api/color-srgb-icc.md +2 -4
  660. package/docs/api/color-white-balance.md +95 -19
  661. package/docs/api/composition-image-formation-plan.md +124 -95
  662. package/docs/api/composition-plan-consumer.md +7 -7
  663. package/docs/api/core-calculation-result.md +18 -14
  664. package/docs/api/core-configuration-error.md +1 -1
  665. package/docs/api/core-image-formation.md +7 -7
  666. package/docs/api/core-scientific-assurance.md +12 -10
  667. package/docs/api/core-spectral-composition.md +14 -14
  668. package/docs/api/core-spectral.md +6 -6
  669. package/docs/api/core-validation.md +3 -3
  670. package/docs/api/core-version.md +7 -6
  671. package/docs/api/equipment-exposure-capabilities.md +11 -10
  672. package/docs/api/equipment-generic-tier-assets.md +7 -2
  673. package/docs/api/equipment-generic-tier-presets.md +6 -6
  674. package/docs/api/equipment-iso-capabilities.md +18 -18
  675. package/docs/api/equipment-metering-capabilities.md +6 -6
  676. package/docs/api/equipment-release-capabilities.md +4 -4
  677. package/docs/api/exports.json +2213 -8
  678. package/docs/api/exposure-exposure-duration-control.md +9 -9
  679. package/docs/api/exposure-exposure-mode-resolver.md +35 -31
  680. package/docs/api/exposure-exposure.md +10 -10
  681. package/docs/api/exposure-flash-ttl.md +182 -0
  682. package/docs/api/exposure-flash.md +183 -28
  683. package/docs/api/exposure-metering-scene-radiance.md +11 -10
  684. package/docs/api/exposure-metering-target.md +9 -8
  685. package/docs/api/exposure-metering-temporal.md +8 -8
  686. package/docs/api/exposure-metering.md +69 -9
  687. package/docs/api/exposure-program-line.md +6 -5
  688. package/docs/api/facade-chart-radiance-batch.md +96 -0
  689. package/docs/api/facade-chart-scenes.md +240 -0
  690. package/docs/api/facade-scene-radiance.md +122 -0
  691. package/docs/api/facade-simulate-capture.md +324 -0
  692. package/docs/api/gpu-image-kernel-accelerator.md +157 -0
  693. package/docs/api/gpu-image-kernel-execution.md +152 -0
  694. package/docs/api/motion-camera-rotation.md +43 -26
  695. package/docs/api/motion-capture-rotation-inverse-mapping.md +24 -23
  696. package/docs/api/motion-capture-rotation-temporal-quadrature.md +22 -22
  697. package/docs/api/motion-capture-rotation-trajectory.md +15 -15
  698. package/docs/api/motion-capture-translation-parallax-temporal-quadrature.md +15 -14
  699. package/docs/api/motion-extended-object-projection.md +10 -8
  700. package/docs/api/motion-projected-motion.md +8 -8
  701. package/docs/api/motion-temporal-exposure-sum.md +98 -0
  702. package/docs/api/motion-video-sequence.md +159 -0
  703. package/docs/api/optics-aperture.md +8 -8
  704. package/docs/api/optics-atmospheric-haze.md +104 -0
  705. package/docs/api/optics-brown-conrady-distortion.md +123 -0
  706. package/docs/api/optics-circle-of-confusion.md +5 -4
  707. package/docs/api/optics-complex-pupil-psf.md +57 -16
  708. package/docs/api/optics-depth-of-field.md +12 -6
  709. package/docs/api/optics-diffraction.md +8 -7
  710. package/docs/api/optics-focus-breathing.md +104 -16
  711. package/docs/api/optics-focus-state.md +9 -10
  712. package/docs/api/optics-front-of-lens-filter.md +72 -14
  713. package/docs/api/optics-illumination-vignetting.md +10 -10
  714. package/docs/api/optics-irradiance-convolution.md +95 -0
  715. package/docs/api/optics-lateral-chromatic-aberration.md +22 -21
  716. package/docs/api/optics-lens-psf-kernels.md +72 -0
  717. package/docs/api/optics-lens-psf-profile.md +48 -26
  718. package/docs/api/optics-longitudinal-chromatic-aberration.md +128 -0
  719. package/docs/api/optics-polygon-diffraction.md +78 -13
  720. package/docs/api/optics-profile-contract.md +4 -4
  721. package/docs/api/optics-psf-foundation.md +12 -12
  722. package/docs/api/optics-pupil-vignetting.md +132 -0
  723. package/docs/api/optics-radial-distortion.md +12 -12
  724. package/docs/api/optics-scene-to-sensor-irradiance.md +25 -14
  725. package/docs/api/optics-scene-to-sensor-quadrature.md +15 -12
  726. package/docs/api/optics-sensor-aperture-rays.md +3 -2
  727. package/docs/api/optics-sensor-environment-query.md +52 -9
  728. package/docs/api/optics-sensor-psf-quadrature.md +13 -10
  729. package/docs/api/optics-stray-light.md +12 -11
  730. package/docs/api/optics-thin-lens.md +4 -3
  731. package/docs/api/optics-zernike-wavefront.md +229 -0
  732. package/docs/api/output-capture-corrected-sdr.md +10 -7
  733. package/docs/api/output-capture-geometry.md +35 -36
  734. package/docs/api/output-capture-sdr.md +4 -4
  735. package/docs/api/output-crop.md +7 -4
  736. package/docs/api/output-geometric-transforms.md +65 -19
  737. package/docs/api/output-lens-corrections.md +17 -15
  738. package/docs/api/output-native-capture-sdr.md +26 -13
  739. package/docs/api/output-png-encoder.md +105 -0
  740. package/docs/api/output-print-contrast-reference.md +8 -8
  741. package/docs/api/output-print-detail.md +14 -14
  742. package/docs/api/output-print-jpeg.md +22 -5
  743. package/docs/api/output-print-plan.md +18 -18
  744. package/docs/api/output-print-region-statistics.md +14 -14
  745. package/docs/api/output-sdr-rendering.md +52 -10
  746. package/docs/api/output-subject-framing-crop.md +5 -6
  747. package/docs/api/processing-demosaic.md +120 -0
  748. package/docs/api/processing-denoise.md +148 -0
  749. package/docs/api/processing-focus-stacking.md +41 -0
  750. package/docs/api/processing-hdr.md +113 -0
  751. package/docs/api/processing-panorama.md +82 -0
  752. package/docs/api/processing-processing-task.md +107 -0
  753. package/docs/api/processing-tone-mapping.md +142 -0
  754. package/docs/api/schema-camera.md +6 -4
  755. package/docs/api/schema-illumination-spectral.md +10 -11
  756. package/docs/api/schema-illumination-temporal.md +13 -15
  757. package/docs/api/schema-illumination.md +4 -4
  758. package/docs/api/schema-scene-radiance-temporal.md +10 -11
  759. package/docs/api/schema-scene-radiance.md +18 -17
  760. package/docs/api/schema-scene.md +9 -9
  761. package/docs/api/schema-validation.md +1 -1
  762. package/docs/api/sensor-accumulated-charge.md +12 -20
  763. package/docs/api/sensor-architecture.md +15 -16
  764. package/docs/api/sensor-camera-saturation-capacity.md +9 -11
  765. package/docs/api/sensor-capture-color-sampling-binding.md +47 -51
  766. package/docs/api/sensor-capture-mode-timing.md +9 -9
  767. package/docs/api/sensor-capture-mode.md +29 -30
  768. package/docs/api/sensor-color-sampling.md +31 -33
  769. package/docs/api/sensor-constant-rate-temporal-integration.md +10 -11
  770. package/docs/api/sensor-dark-current.md +30 -14
  771. package/docs/api/sensor-environment-photo-signal.md +13 -6
  772. package/docs/api/sensor-eqe-electron-rate.md +9 -8
  773. package/docs/api/sensor-eqe-local-exposure.md +18 -17
  774. package/docs/api/sensor-eqe-temporal-exposure.md +12 -11
  775. package/docs/api/sensor-exposure-window.md +24 -24
  776. package/docs/api/sensor-fixed-pattern-noise.md +104 -0
  777. package/docs/api/sensor-iso-gain.md +63 -0
  778. package/docs/api/sensor-iso-signal-chain.md +13 -22
  779. package/docs/api/sensor-local-exposure-binding.md +12 -13
  780. package/docs/api/sensor-optical-stack.md +37 -40
  781. package/docs/api/sensor-photon-energy.md +10 -11
  782. package/docs/api/sensor-physical-charge-capacity.md +8 -13
  783. package/docs/api/sensor-pixel-pitch.md +1 -1
  784. package/docs/api/sensor-radiometry-readiness.md +9 -9
  785. package/docs/api/sensor-raw-readout.md +118 -52
  786. package/docs/api/sensor-raw-reconstruction.md +97 -20
  787. package/docs/api/sensor-readout-exposure-linkage.md +120 -24
  788. package/docs/api/sensor-readout-timing.md +33 -35
  789. package/docs/api/sensor-response-application-compatibility.md +9 -11
  790. package/docs/api/sensor-response-operating-range.md +14 -18
  791. package/docs/api/sensor-responsivity-photocurrent.md +9 -12
  792. package/docs/api/sensor-sampling-aperture.md +22 -25
  793. package/docs/api/sensor-scene-eqe-temporal-exposure.md +9 -8
  794. package/docs/api/sensor-sensor-geometry.md +23 -24
  795. package/docs/api/sensor-signal-noise.md +10 -10
  796. package/docs/api/sensor-spatial-sample-reduction.md +27 -30
  797. package/docs/api/sensor-spatial-sampling-quadrature.md +37 -39
  798. package/docs/api/sensor-spatio-spectral-reduction.md +27 -29
  799. package/docs/api/sensor-spectral-coverage.md +5 -5
  800. package/docs/api/sensor-spectral-quadrature.md +33 -35
  801. package/docs/api/sensor-spectral-response.md +28 -16
  802. package/docs/api/sensor-temporal-photo-signal.md +6 -6
  803. package/docs/api/simulation-poc-simulation.md +17 -16
  804. package/docs/api/stabilization-camera-shake.md +29 -10
  805. package/docs/api/stabilization-system.md +25 -21
  806. package/docs/examples/production-request.json +3821 -2157
  807. package/docs/examples/simulate-capture.mjs +14 -0
  808. package/llms.txt +35 -0
  809. package/package.json +32 -12
  810. package/AGENTS.md +0 -674
  811. package/CONTRIBUTING.md +0 -76
  812. package/DCO +0 -33
  813. package/dist/camera/equivalent-focal-length.d.ts.map +0 -1
  814. package/dist/camera/field-of-view.d.ts.map +0 -1
  815. package/dist/camera/projected-object-size.d.ts.map +0 -1
  816. package/dist/capture/capture-export-metadata.d.ts.map +0 -1
  817. package/dist/capture/environment-raw-producer.d.ts.map +0 -1
  818. package/dist/capture/export-jpeg.d.ts.map +0 -1
  819. package/dist/capture/export-tiff.d.ts.map +0 -1
  820. package/dist/capture/focus-control.d.ts.map +0 -1
  821. package/dist/capture/linear-encoding.d.ts.map +0 -1
  822. package/dist/capture/native-environment-raw.d.ts.map +0 -1
  823. package/dist/capture/native-raw-development.d.ts.map +0 -1
  824. package/dist/capture/native-raw.d.ts.map +0 -1
  825. package/dist/capture/photographic-export.d.ts.map +0 -1
  826. package/dist/capture/raw-frame-limits.d.ts.map +0 -1
  827. package/dist/capture/raw-frame-reconstruction.d.ts.map +0 -1
  828. package/dist/capture/release-sequence.d.ts.map +0 -1
  829. package/dist/capture/sensor-raw-frame.d.ts.map +0 -1
  830. package/dist/capture/sensor-raw-producer.d.ts.map +0 -1
  831. package/dist/capture/simulated-capture.d.ts.map +0 -1
  832. package/dist/color/capture-color.d.ts.map +0 -1
  833. package/dist/color/sensor-color-development.d.ts.map +0 -1
  834. package/dist/color/srgb-icc.d.ts.map +0 -1
  835. package/dist/color/srgb-transfer.d.ts.map +0 -1
  836. package/dist/color/white-balance.d.ts.map +0 -1
  837. package/dist/composition/image-formation-plan.d.ts.map +0 -1
  838. package/dist/composition/plan-consumer.d.ts.map +0 -1
  839. package/dist/core/calculation-result.d.ts.map +0 -1
  840. package/dist/core/canonical-json.d.ts.map +0 -1
  841. package/dist/core/configuration-error.d.ts.map +0 -1
  842. package/dist/core/evidence-provenance.d.ts.map +0 -1
  843. package/dist/core/image-formation.d.ts.map +0 -1
  844. package/dist/core/owned-data.d.ts.map +0 -1
  845. package/dist/core/record-validation.d.ts.map +0 -1
  846. package/dist/core/scientific-assurance.d.ts.map +0 -1
  847. package/dist/core/spectral-composition.d.ts.map +0 -1
  848. package/dist/core/spectral.d.ts.map +0 -1
  849. package/dist/core/validation.d.ts.map +0 -1
  850. package/dist/core/version.d.ts.map +0 -1
  851. package/dist/equipment/exposure-capabilities.d.ts.map +0 -1
  852. package/dist/equipment/generic-tier-assets.d.ts.map +0 -1
  853. package/dist/equipment/generic-tier-presets.d.ts.map +0 -1
  854. package/dist/equipment/iso-capabilities.d.ts.map +0 -1
  855. package/dist/equipment/metering-capabilities.d.ts.map +0 -1
  856. package/dist/equipment/release-capabilities.d.ts.map +0 -1
  857. package/dist/exposure/exposure-duration-control.d.ts.map +0 -1
  858. package/dist/exposure/exposure-mode-resolver.d.ts.map +0 -1
  859. package/dist/exposure/exposure.d.ts.map +0 -1
  860. package/dist/exposure/flash.d.ts.map +0 -1
  861. package/dist/exposure/metering-scene-radiance.d.ts.map +0 -1
  862. package/dist/exposure/metering-target.d.ts.map +0 -1
  863. package/dist/exposure/metering-temporal.d.ts.map +0 -1
  864. package/dist/exposure/metering.d.ts.map +0 -1
  865. package/dist/exposure/program-line.d.ts.map +0 -1
  866. package/dist/index.d.ts.map +0 -1
  867. package/dist/motion/camera-rotation.d.ts.map +0 -1
  868. package/dist/motion/capture-rotation-inverse-mapping.d.ts.map +0 -1
  869. package/dist/motion/capture-rotation-temporal-quadrature.d.ts.map +0 -1
  870. package/dist/motion/capture-rotation-trajectory.d.ts.map +0 -1
  871. package/dist/motion/capture-translation-parallax-temporal-quadrature.d.ts.map +0 -1
  872. package/dist/motion/extended-object-projection.d.ts.map +0 -1
  873. package/dist/motion/projected-motion.d.ts.map +0 -1
  874. package/dist/optics/aperture.d.ts.map +0 -1
  875. package/dist/optics/circle-of-confusion.d.ts.map +0 -1
  876. package/dist/optics/complex-pupil-psf.d.ts.map +0 -1
  877. package/dist/optics/depth-of-field.d.ts.map +0 -1
  878. package/dist/optics/diffraction.d.ts.map +0 -1
  879. package/dist/optics/focus-breathing.d.ts.map +0 -1
  880. package/dist/optics/focus-state.d.ts.map +0 -1
  881. package/dist/optics/front-of-lens-filter.d.ts.map +0 -1
  882. package/dist/optics/illumination-vignetting.d.ts.map +0 -1
  883. package/dist/optics/lateral-chromatic-aberration.d.ts.map +0 -1
  884. package/dist/optics/lens-psf-profile.d.ts.map +0 -1
  885. package/dist/optics/polygon-diffraction.d.ts.map +0 -1
  886. package/dist/optics/profile-contract.d.ts.map +0 -1
  887. package/dist/optics/psf-foundation.d.ts.map +0 -1
  888. package/dist/optics/radial-distortion.d.ts.map +0 -1
  889. package/dist/optics/scene-to-sensor-irradiance.d.ts.map +0 -1
  890. package/dist/optics/scene-to-sensor-quadrature.d.ts.map +0 -1
  891. package/dist/optics/sensor-aperture-rays.d.ts.map +0 -1
  892. package/dist/optics/sensor-environment-query.d.ts.map +0 -1
  893. package/dist/optics/sensor-psf-quadrature.d.ts.map +0 -1
  894. package/dist/optics/sensor-psf-support.d.ts.map +0 -1
  895. package/dist/optics/stray-light.d.ts.map +0 -1
  896. package/dist/optics/thin-lens.d.ts.map +0 -1
  897. package/dist/output/capture-corrected-sdr.d.ts.map +0 -1
  898. package/dist/output/capture-geometry.d.ts.map +0 -1
  899. package/dist/output/capture-sdr.d.ts.map +0 -1
  900. package/dist/output/crop.d.ts.map +0 -1
  901. package/dist/output/geometric-transforms.d.ts.map +0 -1
  902. package/dist/output/lens-corrections.d.ts.map +0 -1
  903. package/dist/output/native-capture-sdr.d.ts.map +0 -1
  904. package/dist/output/print-contrast-reference.d.ts.map +0 -1
  905. package/dist/output/print-detail.d.ts.map +0 -1
  906. package/dist/output/print-jpeg.d.ts.map +0 -1
  907. package/dist/output/print-plan.d.ts.map +0 -1
  908. package/dist/output/print-region-statistics.d.ts.map +0 -1
  909. package/dist/output/sdr-rendering.d.ts.map +0 -1
  910. package/dist/output/subject-framing-crop.d.ts.map +0 -1
  911. package/dist/schema/camera.d.ts.map +0 -1
  912. package/dist/schema/camera.js +0 -3
  913. package/dist/schema/camera.js.map +0 -1
  914. package/dist/schema/illumination-spectral.d.ts.map +0 -1
  915. package/dist/schema/illumination-temporal.d.ts.map +0 -1
  916. package/dist/schema/illumination.d.ts.map +0 -1
  917. package/dist/schema/scene-radiance-temporal.d.ts.map +0 -1
  918. package/dist/schema/scene-radiance.d.ts.map +0 -1
  919. package/dist/schema/scene.d.ts.map +0 -1
  920. package/dist/schema/scene.js +0 -3
  921. package/dist/schema/scene.js.map +0 -1
  922. package/dist/schema/validation.d.ts.map +0 -1
  923. package/dist/sensor/accumulated-charge.d.ts.map +0 -1
  924. package/dist/sensor/architecture.d.ts.map +0 -1
  925. package/dist/sensor/camera-saturation-capacity.d.ts.map +0 -1
  926. package/dist/sensor/capture-color-sampling-binding.d.ts.map +0 -1
  927. package/dist/sensor/capture-mode-timing.d.ts.map +0 -1
  928. package/dist/sensor/capture-mode.d.ts.map +0 -1
  929. package/dist/sensor/color-sampling.d.ts.map +0 -1
  930. package/dist/sensor/constant-rate-temporal-integration.d.ts.map +0 -1
  931. package/dist/sensor/dark-current.d.ts.map +0 -1
  932. package/dist/sensor/environment-photo-signal.d.ts.map +0 -1
  933. package/dist/sensor/eqe-electron-rate.d.ts.map +0 -1
  934. package/dist/sensor/eqe-local-exposure.d.ts.map +0 -1
  935. package/dist/sensor/eqe-temporal-exposure.d.ts.map +0 -1
  936. package/dist/sensor/exposure-window.d.ts.map +0 -1
  937. package/dist/sensor/iso-signal-chain.d.ts.map +0 -1
  938. package/dist/sensor/local-exposure-binding.d.ts.map +0 -1
  939. package/dist/sensor/optical-stack.d.ts.map +0 -1
  940. package/dist/sensor/photon-energy.d.ts.map +0 -1
  941. package/dist/sensor/physical-charge-capacity.d.ts.map +0 -1
  942. package/dist/sensor/pixel-pitch.d.ts.map +0 -1
  943. package/dist/sensor/radiometry-readiness.d.ts.map +0 -1
  944. package/dist/sensor/raw-readout.d.ts.map +0 -1
  945. package/dist/sensor/raw-reconstruction.d.ts.map +0 -1
  946. package/dist/sensor/readout-exposure-linkage.d.ts.map +0 -1
  947. package/dist/sensor/readout-timing.d.ts.map +0 -1
  948. package/dist/sensor/response-application-compatibility.d.ts.map +0 -1
  949. package/dist/sensor/response-operating-range.d.ts.map +0 -1
  950. package/dist/sensor/responsivity-photocurrent.d.ts.map +0 -1
  951. package/dist/sensor/sampling-aperture.d.ts.map +0 -1
  952. package/dist/sensor/scene-eqe-temporal-exposure.d.ts.map +0 -1
  953. package/dist/sensor/sensor-geometry.d.ts.map +0 -1
  954. package/dist/sensor/signal-noise.d.ts.map +0 -1
  955. package/dist/sensor/spatial-sample-reduction.d.ts.map +0 -1
  956. package/dist/sensor/spatial-sampling-quadrature.d.ts.map +0 -1
  957. package/dist/sensor/spatio-spectral-reduction.d.ts.map +0 -1
  958. package/dist/sensor/spectral-coverage.d.ts.map +0 -1
  959. package/dist/sensor/spectral-quadrature.d.ts.map +0 -1
  960. package/dist/sensor/spectral-response.d.ts.map +0 -1
  961. package/dist/sensor/temporal-eqe-sum.d.ts.map +0 -1
  962. package/dist/sensor/temporal-photo-signal.d.ts.map +0 -1
  963. package/dist/sensor/temporal-sample-binding.d.ts.map +0 -1
  964. package/dist/simulation/poc-simulation.d.ts.map +0 -1
  965. package/dist/stabilization/camera-shake.d.ts.map +0 -1
  966. package/dist/stabilization/system.d.ts.map +0 -1
  967. package/docs/API_STYLE.md +0 -235
  968. package/docs/ARCHITECTURE.md +0 -356
  969. package/docs/AUTOMATION_COORDINATION.md +0 -190
  970. package/docs/CAPTURE_COLOR.md +0 -25
  971. package/docs/CAPTURE_CORRECTED_SDR.md +0 -25
  972. package/docs/CAPTURE_EXPORT_METADATA.md +0 -27
  973. package/docs/CAPTURE_SDR.md +0 -22
  974. package/docs/DEVELOPERS.md +0 -68
  975. package/docs/DIGITAL_OPTICS_FOUNDATION.md +0 -69
  976. package/docs/ENVIRONMENT_RAW_CAPTURE.md +0 -208
  977. package/docs/EXPORT_ACCEPTANCE.md +0 -133
  978. package/docs/GENERIC_TIER_PRESETS.md +0 -269
  979. package/docs/GEOMETRIC_PREPARATION_REUSE.md +0 -141
  980. package/docs/IMAGE_FORMATION.md +0 -247
  981. package/docs/LINEAR_CAPTURE_ENCODING.md +0 -25
  982. package/docs/MOTION_AND_SIGNAL.md +0 -250
  983. package/docs/NATIVE_CAPTURE_SDR.md +0 -70
  984. package/docs/NATIVE_CAPTURE_SDR_REVIEW.md +0 -37
  985. package/docs/NATIVE_CAPTURE_SDR_VALIDATION.md +0 -34
  986. package/docs/NATIVE_RAW_AND_PRINT.md +0 -47
  987. package/docs/NUMERICAL_CORRECTNESS.md +0 -191
  988. package/docs/PERFORMANCE_BASELINE.md +0 -56
  989. package/docs/PHOTOGRAPHIC_EXPORT.md +0 -206
  990. package/docs/PHYSICS_FOUNDATION.md +0 -426
  991. package/docs/POC_API.md +0 -278
  992. package/docs/POC_PROJECTION_PLATFORM_REFERENCE.md +0 -12
  993. package/docs/POC_PROJECTION_REUSE.md +0 -124
  994. package/docs/PRINT_195_196_REVIEW.md +0 -93
  995. package/docs/PRINT_196_ENGINE_ACCEPTANCE.md +0 -45
  996. package/docs/PRINT_CONTRAST_REFERENCE.md +0 -43
  997. package/docs/PRINT_DETAIL_ASSESSMENT.md +0 -81
  998. package/docs/PRINT_DETAIL_JPEG_EVIDENCE.md +0 -36
  999. package/docs/PRINT_DETAIL_SDR_EVIDENCE.md +0 -29
  1000. package/docs/PRINT_DETAIL_VALIDATION.md +0 -36
  1001. package/docs/PRINT_PLANNING.md +0 -75
  1002. package/docs/PRINT_REGION_STATISTICS.md +0 -38
  1003. package/docs/PROCESSED_OUTPUT.md +0 -157
  1004. package/docs/PRODUCTION_COMPOSITION.md +0 -373
  1005. package/docs/PRODUCTION_ENVIRONMENT_CAPTURE.md +0 -131
  1006. package/docs/PROVENANCE.md +0 -115
  1007. package/docs/PSF_FOUNDATION.md +0 -165
  1008. package/docs/RAW_FRAME_ENVELOPE.md +0 -56
  1009. package/docs/RAW_FRAME_RECONSTRUCTION.md +0 -30
  1010. package/docs/RELEASE_1_0.md +0 -66
  1011. package/docs/RELEASE_1_0_1.md +0 -61
  1012. package/docs/RELEASE_1_1_0.md +0 -25
  1013. package/docs/RELEASE_1_2_0.md +0 -51
  1014. package/docs/RELEASE_1_3_0.md +0 -15
  1015. package/docs/RELEASE_1_4_0.md +0 -23
  1016. package/docs/RELEASE_AUDIT.md +0 -39
  1017. package/docs/SCENE_RADIANCE_AND_ILLUMINATION.md +0 -298
  1018. package/docs/SCENE_SENSOR_QUADRATURE.md +0 -98
  1019. package/docs/SCENE_SENSOR_TEMPORAL_EXPOSURE.md +0 -86
  1020. package/docs/SCIENTIFIC_ASSURANCE.md +0 -280
  1021. package/docs/SCIENTIFIC_CONFORMANCE.md +0 -83
  1022. package/docs/SDR_RENDERING.md +0 -33
  1023. package/docs/SENSOR_APERTURE_RAYS.md +0 -23
  1024. package/docs/SENSOR_ENVIRONMENT_QUERY.md +0 -86
  1025. package/docs/SENSOR_EQE_LOCAL_EXPOSURE.md +0 -104
  1026. package/docs/SENSOR_EQE_TEMPORAL_EXPOSURE.md +0 -74
  1027. package/docs/SENSOR_PSF_QUADRATURE.md +0 -90
  1028. package/docs/SENSOR_RAW_FRAME.md +0 -20
  1029. package/docs/SENSOR_RAW_PRODUCER.md +0 -77
  1030. package/docs/SIGNAL_CONFORMANCE.md +0 -23
  1031. package/docs/SIMULATED_CAPTURE.md +0 -65
  1032. package/docs/STABILIZATION.md +0 -234
  1033. package/docs/TEMPORAL_PHOTO_RAW.md +0 -83
  1034. package/docs/TIER_ACCEPTANCE.md +0 -129
  1035. package/docs/TIER_PRESET_ACCEPTANCE.md +0 -59
  1036. package/docs/V1_COMPOSITION_MAP.md +0 -123
  1037. package/docs/V1_HELPER_REUSE_REVIEW.md +0 -60
  1038. package/docs/V1_PERFORMANCE_DISPOSITION.md +0 -88
  1039. package/docs/benchmarks/2026-10-01-main-baseline.json +0 -694
  1040. package/docs/benchmarks/2026-10-02-geometric-preparation-reuse.json +0 -2190
  1041. package/docs/benchmarks/2026-10-02-poc-projection-reuse.json +0 -2423
  1042. package/docs/benchmarks/2026-10-02-v1-environment-gc-profile.json +0 -210
  1043. package/docs/benchmarks/2026-10-02-v1-environment-ordinary.json +0 -187
  1044. package/docs/benchmarks/2026-10-02-v1-geometry-gc-profile.json +0 -756
  1045. package/docs/benchmarks/2026-10-02-v1-geometry-ordinary-1.json +0 -711
  1046. package/docs/benchmarks/2026-10-02-v1-geometry-ordinary-2.json +0 -711
  1047. package/docs/benchmarks/2026-10-02-v1-poc-gc-profile.json +0 -885
  1048. package/docs/benchmarks/2026-10-02-v1-poc-ordinary-1.json +0 -868
  1049. package/docs/benchmarks/2026-10-02-v1-poc-ordinary-2.json +0 -868
  1050. package/docs/licenses/castleCSF-MIT.txt +0 -21
  1051. package/docs/validation/documentation-fragments.json +0 -212
  1052. package/docs/validation/native-capture-sdr-darwin-arm64-node26-review.jsonl +0 -4
  1053. package/docs/validation/native-capture-sdr-darwin-arm64.jsonl +0 -3
  1054. package/docs/validation/native-raw-print-2026-10-04/fractional-asymmetric-crop.jpg +0 -0
  1055. package/docs/validation/native-raw-print-2026-10-04/gray-ramp.jpg +0 -0
  1056. package/docs/validation/native-raw-print-2026-10-04/linear-area-checker.jpg +0 -0
  1057. package/docs/validation/native-raw-print-2026-10-04/manifest.json +0 -218
  1058. package/docs/validation/native-raw-print-2026-10-04/megapixel-native.jpg +0 -0
  1059. package/docs/validation/native-raw-print-2026-10-04/native-color.jpg +0 -0
  1060. package/docs/validation/native-raw-print-2026-10-04/photivra-native-full-megapixel-validation.json +0 -9
  1061. package/docs/validation/native-raw-print-2026-10-04/photivra-native-full-megapixel.json +0 -29
  1062. package/docs/validation/native-raw-print-2026-10-04/photivra-native-full-megapixel.json.codes.u16le.gz +0 -0
  1063. package/docs/validation/native-raw-print-2026-10-04/photivra-native-full-megapixel.json.jpg +0 -0
  1064. package/docs/validation/native-raw-print-2026-10-04/photivra-native-full-megapixel.json.rgb.gz +0 -0
  1065. package/docs/validation/native-raw-print-2026-10-04/srgb.icc +0 -0
  1066. package/docs/validation/native-raw-print-2026-10-04/validation.json +0 -41
  1067. package/docs/validation/print-196-candidate-capabilities.json +0 -28
  1068. package/docs/validation/print-196-candidate-evidence.json +0 -356
  1069. package/docs/validation/print-196-engine-acceptance.json +0 -81
  1070. package/docs/validation/print-detail-capabilities.json +0 -103
  1071. package/docs/validation/print-detail-jpeg-evidence.json +0 -116
  1072. package/docs/validation/print-detail-sdr-evidence.json +0 -81
  1073. package/docs/validation/release-audit-inventory.json +0 -1306
  1074. package/docs/validation/tier-acceptance-report-v1.json +0 -2538
@@ -1,24 +1,30 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  /**
3
- * Module boundary and integration notes.
4
- * Parses a generic Photivra body exposure-capability profile. This is capability metadata only. ISO
5
- * values do not imply noise/gain topology, and shutter-duration capability does not imply one shutter
6
- * mechanism or sensor-readout schedule.
7
- * Parses a generic Photivra lens exposure-capability profile. "Widest" is expressed as the smallest
8
- * available f-number, avoiding the ambiguous phrases minimum/maximum aperture.
9
- * @see docs/GENERIC_TIER_PRESETS.md for equations, coordinate/unit conventions, blockers and support
10
- * limits.
3
+ * Exposure capabilities of generic Photivra camera bodies and lenses: which ISO, shutter and aperture
4
+ * settings they offer.
5
+ *
6
+ * This is capability metadata only. ISO values say nothing about how noise or gain is implemented.
7
+ * Shutter-duration capability does not imply a particular shutter mechanism or sensor-readout
8
+ * schedule.
9
+ *
10
+ * For lenses, "widest" means the smallest available f-number. This avoids the ambiguous phrases
11
+ * "minimum aperture" and "maximum aperture".
12
+ * @see docs/GENERIC_TIER_PRESETS.md for the equations, units, coordinate conventions, known blockers
13
+ * and support limits.
11
14
  */
12
15
  import { InvalidConfigurationError } from "../core/configuration-error.js";
13
16
  import { parseEvidenceList } from "../core/evidence-provenance.js";
14
17
  import { InvalidScientificInputError } from "../core/validation.js";
18
+ import { requireInputKeys, rejectUnknownFields, rejectUnknownVariantFields } from "../core/record-validation.js";
15
19
  export const GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION = "0.1.0";
16
- function requireRecord(value, path) {
20
+ function requireRecord(value, path, allowedKeys) {
17
21
  if (typeof value !== "object" ||
18
22
  value === null ||
19
23
  Array.isArray(value)) {
20
24
  throw new InvalidConfigurationError(path + " must be an object.");
21
25
  }
26
+ if (allowedKeys !== null)
27
+ rejectUnknownFields(value, allowedKeys, path);
22
28
  return value;
23
29
  }
24
30
  function requireNonEmptyString(value, path) {
@@ -38,7 +44,7 @@ function requirePositiveFinite(value, path) {
38
44
  return value;
39
45
  }
40
46
  function parseRange(value, path) {
41
- const record = requireRecord(value, path);
47
+ const record = requireRecord(value, path, ["minimum", "maximum"]);
42
48
  const minimum = requirePositiveFinite(record.minimum, path + ".minimum");
43
49
  const maximum = requirePositiveFinite(record.maximum, path + ".maximum");
44
50
  if (minimum > maximum) {
@@ -51,14 +57,14 @@ function parseRange(value, path) {
51
57
  };
52
58
  }
53
59
  function parseSourcedRange(value, path) {
54
- const record = requireRecord(value, path);
60
+ const record = requireRecord(value, path, ["value", "evidence"]);
55
61
  return {
56
62
  value: parseRange(record.value, path + ".value"),
57
63
  evidence: parseEvidenceList(record.evidence, path + ".evidence")
58
64
  };
59
65
  }
60
66
  function parseSourcedPositiveNumber(value, path) {
61
- const record = requireRecord(value, path);
67
+ const record = requireRecord(value, path, ["value", "evidence"]);
62
68
  return {
63
69
  value: requirePositiveFinite(record.value, path + ".value"),
64
70
  evidence: parseEvidenceList(record.evidence, path + ".evidence")
@@ -73,7 +79,7 @@ function parseAvailability(value, path) {
73
79
  return value;
74
80
  }
75
81
  function parseSourcedAvailability(value, path) {
76
- const record = requireRecord(value, path);
82
+ const record = requireRecord(value, path, ["value", "evidence"]);
77
83
  return {
78
84
  value: parseAvailability(record.value, path + ".value"),
79
85
  evidence: parseEvidenceList(record.evidence, path + ".evidence")
@@ -105,7 +111,8 @@ function parseDiscreteValues(value, range, path) {
105
111
  });
106
112
  }
107
113
  function parseSettingGrid(value, range, path) {
108
- const record = requireRecord(value, path);
114
+ const record = requireRecord(value, path, null);
115
+ rejectUnknownVariantFields(record, "kind", { "continuous-within-range": ["kind"], "discrete-values": ["kind", "values"] }, path);
109
116
  if (record.kind ===
110
117
  "continuous-within-range") {
111
118
  return {
@@ -114,7 +121,7 @@ function parseSettingGrid(value, range, path) {
114
121
  }
115
122
  if (record.kind ===
116
123
  "discrete-values") {
117
- const valuesFact = requireRecord(record.values, path + ".values");
124
+ const valuesFact = requireRecord(record.values, path + ".values", ["value", "evidence"]);
118
125
  return {
119
126
  kind: "discrete-values",
120
127
  values: {
@@ -149,16 +156,16 @@ function requireApproximationProfileHeader(record, path) {
149
156
  /**
150
157
  * Parses a generic Photivra body exposure-capability profile.
151
158
  *
152
- * This is capability metadata only. ISO values do not imply noise/gain
153
- * topology, and shutter-duration capability does not imply one shutter
154
- * mechanism or sensor-readout schedule.
159
+ * This is capability metadata only. ISO values say nothing about how noise or
160
+ * gain is implemented. Shutter-duration capability does not imply a
161
+ * particular shutter mechanism or sensor-readout schedule.
155
162
  */
156
163
  export function parseGenericBodyExposureCapabilityProfile(value) {
157
- const record = requireRecord(value, "genericBodyExposureCapabilityProfile");
164
+ const record = requireRecord(value, "genericBodyExposureCapabilityProfile", ["schemaVersion", "scientificStatus", "profileId", "profileVersion", "evidence", "shutter", "iso"]);
158
165
  const header = requireApproximationProfileHeader(record, "genericBodyExposureCapabilityProfile");
159
- const shutter = requireRecord(record.shutter, "genericBodyExposureCapabilityProfile.shutter");
166
+ const shutter = requireRecord(record.shutter, "genericBodyExposureCapabilityProfile.shutter", ["durationSecondsRange", "settingGrid"]);
160
167
  const shutterRange = parseSourcedRange(shutter.durationSecondsRange, "genericBodyExposureCapabilityProfile.shutter.durationSecondsRange");
161
- const iso = requireRecord(record.iso, "genericBodyExposureCapabilityProfile.iso");
168
+ const iso = requireRecord(record.iso, "genericBodyExposureCapabilityProfile.iso", ["range", "settingGrid", "autoIso"]);
162
169
  const isoRange = parseSourcedRange(iso.range, "genericBodyExposureCapabilityProfile.iso.range");
163
170
  return {
164
171
  schemaVersion: GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION,
@@ -187,7 +194,7 @@ function parseFocalSamples(value, focalRange, path) {
187
194
  "[" +
188
195
  index +
189
196
  "]";
190
- const record = requireRecord(entry, samplePath);
197
+ const record = requireRecord(entry, samplePath, ["focalLengthMm", "fNumber"]);
191
198
  const focalLengthMm = requirePositiveFinite(record.focalLengthMm, samplePath +
192
199
  ".focalLengthMm");
193
200
  if (focalLengthMm <=
@@ -213,7 +220,8 @@ function parseFocalSamples(value, focalRange, path) {
213
220
  return samples;
214
221
  }
215
222
  function parseWidestFNumberCapability(value, focalRange, narrowestFNumber, path) {
216
- const record = requireRecord(value, path);
223
+ const record = requireRecord(value, path, null);
224
+ rejectUnknownVariantFields(record, "kind", { constant: ["kind", "fNumber"], "piecewise-linear-by-focal-length": ["kind", "samples"] }, path);
217
225
  if (record.kind === "constant") {
218
226
  const fNumber = parseSourcedPositiveNumber(record.fNumber, path + ".fNumber");
219
227
  if (fNumber.value >
@@ -228,7 +236,7 @@ function parseWidestFNumberCapability(value, focalRange, narrowestFNumber, path)
228
236
  }
229
237
  if (record.kind ===
230
238
  "piecewise-linear-by-focal-length") {
231
- const samplesFact = requireRecord(record.samples, path + ".samples");
239
+ const samplesFact = requireRecord(record.samples, path + ".samples", ["value", "evidence"]);
232
240
  const samples = parseFocalSamples(samplesFact.value, focalRange, path +
233
241
  ".samples.value");
234
242
  if (samples.some((sample) => sample.fNumber >
@@ -250,14 +258,14 @@ function parseWidestFNumberCapability(value, focalRange, narrowestFNumber, path)
250
258
  /**
251
259
  * Parses a generic Photivra lens exposure-capability profile.
252
260
  *
253
- * "Widest" is expressed as the smallest available f-number, avoiding the
254
- * ambiguous phrases minimum/maximum aperture.
261
+ * "Widest" means the smallest available f-number. This avoids the ambiguous
262
+ * phrases "minimum aperture" and "maximum aperture".
255
263
  */
256
264
  export function parseGenericLensExposureCapabilityProfile(value) {
257
- const record = requireRecord(value, "genericLensExposureCapabilityProfile");
265
+ const record = requireRecord(value, "genericLensExposureCapabilityProfile", ["schemaVersion", "scientificStatus", "profileId", "profileVersion", "evidence", "focalLengthMmRange", "aperture"]);
258
266
  const header = requireApproximationProfileHeader(record, "genericLensExposureCapabilityProfile");
259
267
  const focalRange = parseSourcedRange(record.focalLengthMmRange, "genericLensExposureCapabilityProfile.focalLengthMmRange");
260
- const aperture = requireRecord(record.aperture, "genericLensExposureCapabilityProfile.aperture");
268
+ const aperture = requireRecord(record.aperture, "genericLensExposureCapabilityProfile.aperture", ["narrowestAvailableFNumber", "widestAvailableFNumber", "settingGrid"]);
261
269
  const narrowest = parseSourcedPositiveNumber(aperture.narrowestAvailableFNumber, "genericLensExposureCapabilityProfile.aperture.narrowestAvailableFNumber");
262
270
  const widest = parseWidestFNumberCapability(aperture.widestAvailableFNumber, focalRange.value, narrowest.value, "genericLensExposureCapabilityProfile.aperture.widestAvailableFNumber");
263
271
  const broadApertureRange = {
@@ -323,10 +331,12 @@ function resolveGrid(grid, minimum, maximum, path) {
323
331
  * Resolves the exposure-relevant capability subset for one generic body+lens
324
332
  * combination at one selected focal length.
325
333
  *
326
- * Source profiles are immutable inputs. This resolver does not choose exposure
327
- * settings; it only provides the capability envelope consumed by #99.
334
+ * The source profiles are not changed. This resolver does not choose exposure
335
+ * settings. It only provides the range of available settings (the capability
336
+ * envelope) that the exposure-mode resolvers use.
328
337
  */
329
338
  export function resolveGenericEquipmentExposureCapabilities(input) {
339
+ requireInputKeys(input, "resolveGenericEquipmentExposureCapabilities", ["bodyProfile", "lensProfile", "selectedFocalLengthMm"]);
330
340
  const body = parseGenericBodyExposureCapabilityProfile(input.bodyProfile);
331
341
  const lens = parseGenericLensExposureCapabilityProfile(input.lensProfile);
332
342
  if (typeof input.selectedFocalLengthMm !==
@@ -1 +1 @@
1
- {"version":3,"file":"exposure-capabilities.js","sourceR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,IAAI,CAAC,QAAQ;iBACV,WAAW,EACd,MAAM,EACN,SAAS,EACT,4BAA4B,CAC7B;SACJ;QACD,OAAO,EAAE;YACP,cAAc,EACZ,YAAY,CAAC,OAAO;YACtB,cAAc,EACZ,YAAY,CAAC,OAAO;YACtB,WAAW,EACT,WAAW,CACT,IAAI,CAAC,OAAO,CAAC,WAAW,EACxB,YAAY,CAAC,OAAO,EACpB,YAAY,CAAC,OAAO,EACpB,2BAA2B,CAC5B;SACJ;QACD,GAAG,EAAE;YACH,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,WAAW,EACT,WAAW,CACT,IAAI,CAAC,GAAG,CAAC,WAAW,EACpB,QAAQ,CAAC,OAAO,EAChB,QAAQ,CAAC,OAAO,EAChB,uBAAuB,CACxB;YACH,mBAAmB,EACjB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK;SACzB;QACD,qBAAqB,EAAE,KAAK;QAC5B,mCAAmC,EACjC,KAAK;KACR,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"exposure-capabilities.js","sourceRoot":"","sources":["../../src/equipment/exposure-capabilities.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACL,iBAAiB,EAGlB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAIjH,MAAM,CAAC,MAAM,oDAAoD,GAC/D,OAAgB,CAAC;AAwJnB,SAAS,aAAa,CACpB,KAAc,EACd,IAAY,EACZ,WAAqC;IAErC,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,KAAK,CAAC,OAAO,CAAC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AAO,EAChB,uBAAuB,CACxB;YACH,mBAAmB,EACjB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK;SACzB;QACD,qBAAqB,EAAE,KAAK;QAC5B,mCAAmC,EACjC,KAAK;KACR,CAAC;AACJ,CAAC","sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Exposure capabilities of generic Photivra camera bodies and lenses: which ISO, shutter and aperture\n * settings they offer.\n *\n * This is capability metadata only. ISO values say nothing about how noise or gain is implemented.\n * Shutter-duration capability does not imply a particular shutter mechanism or sensor-readout\n * schedule.\n *\n * For lenses, \"widest\" means the smallest available f-number. This avoids the ambiguous phrases\n * \"minimum aperture\" and \"maximum aperture\".\n * @see docs/GENERIC_TIER_PRESETS.md for the equations, units, coordinate conventions, known blockers\n * and support limits.\n */\n\nimport { InvalidConfigurationError } from \"../core/configuration-error.js\";\nimport {\n parseEvidenceList,\n type EvidenceBackedFact,\n type EvidenceProvenance\n} from \"../core/evidence-provenance.js\";\nimport { InvalidScientificInputError } from \"../core/validation.js\";\nimport { requireInputKeys, rejectUnknownFields, rejectUnknownVariantFields } from \"../core/record-validation.js\";\n\ntype UnknownRecord = Record<string, unknown>;\n\nexport const GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION =\n \"0.1.0\" as const;\n\nexport type GenericCapabilityAvailability =\n | \"supported\"\n | \"unsupported\"\n | \"unknown\";\n\nexport interface NumericCapabilityRange {\n minimum: number;\n maximum: number;\n}\n\nexport type NumericSettingGrid =\n | {\n kind: \"continuous-within-range\";\n }\n | {\n kind: \"discrete-values\";\n values:\n EvidenceBackedFact<\n readonly number[]\n >;\n };\n\nexport interface GenericBodyExposureCapabilityProfile {\n schemaVersion:\n typeof GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION;\n profileId: string;\n profileVersion: string;\n scientificStatus: \"approximation\";\n evidence: readonly EvidenceProvenance[];\n shutter: {\n durationSecondsRange:\n EvidenceBackedFact<\n NumericCapabilityRange\n >;\n settingGrid: NumericSettingGrid;\n };\n iso: {\n range:\n EvidenceBackedFact<\n NumericCapabilityRange\n >;\n settingGrid: NumericSettingGrid;\n autoIso:\n EvidenceBackedFact<\n GenericCapabilityAvailability\n >;\n };\n}\n\nexport interface FocalLengthFNumberSample {\n focalLengthMm: number;\n fNumber: number;\n}\n\nexport type WidestAvailableFNumberCapability =\n | {\n kind: \"constant\";\n fNumber:\n EvidenceBackedFact<number>;\n }\n | {\n kind:\n \"piecewise-linear-by-focal-length\";\n samples:\n EvidenceBackedFact<\n readonly FocalLengthFNumberSample[]\n >;\n };\n\nexport interface GenericLensExposureCapabilityProfile {\n schemaVersion:\n typeof GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION;\n profileId: string;\n profileVersion: string;\n scientificStatus: \"approximation\";\n evidence: readonly EvidenceProvenance[];\n focalLengthMmRange:\n EvidenceBackedFact<\n NumericCapabilityRange\n >;\n aperture: {\n widestAvailableFNumber:\n WidestAvailableFNumberCapability;\n narrowestAvailableFNumber:\n EvidenceBackedFact<number>;\n settingGrid: NumericSettingGrid;\n };\n}\n\nexport type ResolvedNumericSettingGrid =\n | {\n kind: \"continuous-within-range\";\n }\n | {\n kind: \"discrete-values\";\n values: readonly number[];\n };\n\nexport interface ResolvedGenericEquipmentExposureCapabilities {\n schemaVersion:\n typeof GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION;\n scientificStatus: \"approximation\";\n bodyProfile: {\n profileId: string;\n profileVersion: string;\n };\n lensProfile: {\n profileId: string;\n profileVersion: string;\n };\n selectedFocalLengthMm: number;\n aperture: {\n widestAvailableFNumber: number;\n narrowestAvailableFNumber: number;\n settingGrid:\n ResolvedNumericSettingGrid;\n };\n shutter: {\n minimumSeconds: number;\n maximumSeconds: number;\n settingGrid:\n ResolvedNumericSettingGrid;\n };\n iso: {\n minimum: number;\n maximum: number;\n settingGrid:\n ResolvedNumericSettingGrid;\n autoIsoAvailability:\n GenericCapabilityAvailability;\n /**\n * Optional bounds that apply only to Auto ISO. Manual ISO still uses the\n * minimum, the maximum and the complete standard setting grid.\n */\n autoIsoMinimum?: number;\n autoIsoMaximum?: number;\n };\n sourceProfilesMutated: false;\n exactNamedEquipmentEmulationClaimed:\n false;\n}\n\nexport interface ResolveGenericEquipmentExposureCapabilitiesInput {\n bodyProfile:\n GenericBodyExposureCapabilityProfile;\n lensProfile:\n GenericLensExposureCapabilityProfile;\n selectedFocalLengthMm: number;\n}\n\nfunction requireRecord(\n value: unknown,\n path: string,\n allowedKeys: readonly string[] | null\n): UnknownRecord {\n if (\n typeof value !== \"object\" ||\n value === null ||\n Array.isArray(value)\n ) {\n throw new InvalidConfigurationError(\n path + \" must be an object.\"\n );\n }\n if (allowedKeys !== null) rejectUnknownFields(value, allowedKeys, path);\n return value as UnknownRecord;\n}\n\nfunction requireNonEmptyString(\n value: unknown,\n path: string\n): string {\n if (\n typeof value !== \"string\" ||\n value.trim().length === 0\n ) {\n throw new InvalidConfigurationError(\n path + \" must be a non-empty string.\"\n );\n }\n return value.trim();\n}\n\nfunction requirePositiveFinite(\n value: unknown,\n path: string\n): number {\n if (\n typeof value !== \"number\" ||\n !Number.isFinite(value) ||\n value <= 0\n ) {\n throw new InvalidConfigurationError(\n path +\n \" must be finite and greater than zero.\"\n );\n }\n return value;\n}\n\nfunction parseRange(\n value: unknown,\n path: string\n): NumericCapabilityRange {\n const record = requireRecord(\n value,\n path, [\"minimum\", \"maximum\"]\n );\n const minimum =\n requirePositiveFinite(\n record.minimum,\n path + \".minimum\"\n );\n const maximum =\n requirePositiveFinite(\n record.maximum,\n path + \".maximum\"\n );\n if (minimum > maximum) {\n throw new InvalidConfigurationError(\n path +\n \".minimum must be less than or equal to maximum.\"\n );\n }\n return {\n minimum,\n maximum\n };\n}\n\nfunction parseSourcedRange(\n value: unknown,\n path: string\n): EvidenceBackedFact<\n NumericCapabilityRange\n> {\n const record = requireRecord(\n value,\n path, [\"value\", \"evidence\"]\n );\n return {\n value: parseRange(\n record.value,\n path + \".value\"\n ),\n evidence: parseEvidenceList(\n record.evidence,\n path + \".evidence\"\n )\n };\n}\n\nfunction parseSourcedPositiveNumber(\n value: unknown,\n path: string\n): EvidenceBackedFact<number> {\n const record = requireRecord(\n value,\n path, [\"value\", \"evidence\"]\n );\n return {\n value: requirePositiveFinite(\n record.value,\n path + \".value\"\n ),\n evidence: parseEvidenceList(\n record.evidence,\n path + \".evidence\"\n )\n };\n}\n\nfunction parseAvailability(\n value: unknown,\n path: string\n): GenericCapabilityAvailability {\n if (\n value !== \"supported\" &&\n value !== \"unsupported\" &&\n value !== \"unknown\"\n ) {\n throw new InvalidConfigurationError(\n path + \" is invalid.\"\n );\n }\n return value;\n}\n\nfunction parseSourcedAvailability(\n value: unknown,\n path: string\n): EvidenceBackedFact<\n GenericCapabilityAvailability\n> {\n const record = requireRecord(\n value,\n path, [\"value\", \"evidence\"]\n );\n return {\n value: parseAvailability(\n record.value,\n path + \".value\"\n ),\n evidence: parseEvidenceList(\n record.evidence,\n path + \".evidence\"\n )\n };\n}\n\nfunction parseDiscreteValues(\n value: unknown,\n range: NumericCapabilityRange,\n path: string\n): readonly number[] {\n if (\n !Array.isArray(value) ||\n value.length === 0\n ) {\n throw new InvalidConfigurationError(\n path +\n \" must be a non-empty array.\"\n );\n }\n\n let previous =\n Number.NEGATIVE_INFINITY;\n return value.map(\n (entry, index) => {\n const parsed =\n requirePositiveFinite(\n entry,\n path +\n \"[\" +\n index +\n \"]\"\n );\n if (parsed <= previous) {\n throw new InvalidConfigurationError(\n path +\n \" must be strictly increasing with no duplicates.\"\n );\n }\n if (\n parsed < range.minimum ||\n parsed > range.maximum\n ) {\n throw new InvalidConfigurationError(\n path +\n \" values must lie inside the declared capability range.\"\n );\n }\n previous = parsed;\n return parsed;\n }\n );\n}\n\nfunction parseSettingGrid(\n value: unknown,\n range: NumericCapabilityRange,\n path: string\n): NumericSettingGrid {\n const record = requireRecord(\n value,\n path, null\n );\n rejectUnknownVariantFields(record, \"kind\", { \"continuous-within-range\": [\"kind\"], \"discrete-values\": [\"kind\", \"values\"] }, path);\n\n if (\n record.kind ===\n \"continuous-within-range\"\n ) {\n return {\n kind:\n \"continuous-within-range\"\n };\n }\n\n if (\n record.kind ===\n \"discrete-values\"\n ) {\n const valuesFact =\n requireRecord(\n record.values,\n path + \".values\", [\"value\", \"evidence\"]\n );\n return {\n kind: \"discrete-values\",\n values: {\n value: parseDiscreteValues(\n valuesFact.value,\n range,\n path +\n \".values.value\"\n ),\n evidence: parseEvidenceList(\n valuesFact.evidence,\n path +\n \".values.evidence\"\n )\n }\n };\n }\n\n throw new InvalidConfigurationError(\n path + \".kind is invalid.\"\n );\n}\n\nfunction requireApproximationProfileHeader(\n record: UnknownRecord,\n path: string\n): {\n profileId: string;\n profileVersion: string;\n evidence:\n readonly EvidenceProvenance[];\n} {\n if (\n record.schemaVersion !==\n GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION\n ) {\n throw new InvalidConfigurationError(\n path +\n '.schemaVersion must be \"' +\n GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION +\n '\".'\n );\n }\n if (\n record.scientificStatus !==\n \"approximation\"\n ) {\n throw new InvalidConfigurationError(\n path +\n '.scientificStatus must be \"approximation\" in schema 0.1.0.'\n );\n }\n\n return {\n profileId:\n requireNonEmptyString(\n record.profileId,\n path + \".profileId\"\n ),\n profileVersion:\n requireNonEmptyString(\n record.profileVersion,\n path + \".profileVersion\"\n ),\n evidence: parseEvidenceList(\n record.evidence,\n path + \".evidence\"\n )\n };\n}\n\n/**\n * Parses a generic Photivra body exposure-capability profile.\n *\n * This is capability metadata only. ISO values say nothing about how noise or\n * gain is implemented. Shutter-duration capability does not imply a\n * particular shutter mechanism or sensor-readout schedule.\n */\nexport function parseGenericBodyExposureCapabilityProfile(\n value: unknown\n): GenericBodyExposureCapabilityProfile {\n const record = requireRecord(\n value,\n \"genericBodyExposureCapabilityProfile\", [\"schemaVersion\", \"scientificStatus\", \"profileId\", \"profileVersion\", \"evidence\", \"shutter\", \"iso\"]\n );\n const header =\n requireApproximationProfileHeader(\n record,\n \"genericBodyExposureCapabilityProfile\"\n );\n\n const shutter = requireRecord(\n record.shutter,\n \"genericBodyExposureCapabilityProfile.shutter\", [\"durationSecondsRange\", \"settingGrid\"]\n );\n const shutterRange =\n parseSourcedRange(\n shutter.durationSecondsRange,\n \"genericBodyExposureCapabilityProfile.shutter.durationSecondsRange\"\n );\n\n const iso = requireRecord(\n record.iso,\n \"genericBodyExposureCapabilityProfile.iso\", [\"range\", \"settingGrid\", \"autoIso\"]\n );\n const isoRange =\n parseSourcedRange(\n iso.range,\n \"genericBodyExposureCapabilityProfile.iso.range\"\n );\n\n return {\n schemaVersion:\n GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION,\n ...header,\n scientificStatus:\n \"approximation\",\n shutter: {\n durationSecondsRange:\n shutterRange,\n settingGrid:\n parseSettingGrid(\n shutter.settingGrid,\n shutterRange.value,\n \"genericBodyExposureCapabilityProfile.shutter.settingGrid\"\n )\n },\n iso: {\n range: isoRange,\n settingGrid:\n parseSettingGrid(\n iso.settingGrid,\n isoRange.value,\n \"genericBodyExposureCapabilityProfile.iso.settingGrid\"\n ),\n autoIso:\n parseSourcedAvailability(\n iso.autoIso,\n \"genericBodyExposureCapabilityProfile.iso.autoIso\"\n )\n }\n };\n}\n\nfunction parseFocalSamples(\n value: unknown,\n focalRange:\n NumericCapabilityRange,\n path: string\n): readonly FocalLengthFNumberSample[] {\n if (\n !Array.isArray(value) ||\n value.length < 2\n ) {\n throw new InvalidConfigurationError(\n path +\n \" must contain at least two samples.\"\n );\n }\n\n let previousFocal =\n Number.NEGATIVE_INFINITY;\n const samples = value.map(\n (entry, index) => {\n const samplePath =\n path +\n \"[\" +\n index +\n \"]\";\n const record = requireRecord(\n entry,\n samplePath, [\"focalLengthMm\", \"fNumber\"]\n );\n const focalLengthMm =\n requirePositiveFinite(\n record.focalLengthMm,\n samplePath +\n \".focalLengthMm\"\n );\n if (\n focalLengthMm <=\n previousFocal\n ) {\n throw new InvalidConfigurationError(\n path +\n \" focal lengths must be strictly increasing.\"\n );\n }\n previousFocal =\n focalLengthMm;\n return {\n focalLengthMm,\n fNumber:\n requirePositiveFinite(\n record.fNumber,\n samplePath +\n \".fNumber\"\n )\n };\n }\n );\n\n if (\n samples[0]!.focalLengthMm !==\n focalRange.minimum ||\n samples[\n samples.length - 1\n ]!.focalLengthMm !==\n focalRange.maximum\n ) {\n throw new InvalidConfigurationError(\n path +\n \" must begin at the declared minimum focal length and end at the declared maximum focal length.\"\n );\n }\n\n return samples;\n}\n\nfunction parseWidestFNumberCapability(\n value: unknown,\n focalRange:\n NumericCapabilityRange,\n narrowestFNumber: number,\n path: string\n): WidestAvailableFNumberCapability {\n const record = requireRecord(\n value,\n path, null\n );\n rejectUnknownVariantFields(record, \"kind\", { constant: [\"kind\", \"fNumber\"], \"piecewise-linear-by-focal-length\": [\"kind\", \"samples\"] }, path);\n\n if (record.kind === \"constant\") {\n const fNumber =\n parseSourcedPositiveNumber(\n record.fNumber,\n path + \".fNumber\"\n );\n if (\n fNumber.value >\n narrowestFNumber\n ) {\n throw new InvalidConfigurationError(\n path +\n \".fNumber must not exceed narrowestAvailableFNumber.\"\n );\n }\n return {\n kind: \"constant\",\n fNumber\n };\n }\n\n if (\n record.kind ===\n \"piecewise-linear-by-focal-length\"\n ) {\n const samplesFact =\n requireRecord(\n record.samples,\n path + \".samples\", [\"value\", \"evidence\"]\n );\n const samples =\n parseFocalSamples(\n samplesFact.value,\n focalRange,\n path +\n \".samples.value\"\n );\n if (\n samples.some(\n (sample) =>\n sample.fNumber >\n narrowestFNumber\n )\n ) {\n throw new InvalidConfigurationError(\n path +\n \" sample f-numbers must not exceed narrowestAvailableFNumber.\"\n );\n }\n return {\n kind:\n \"piecewise-linear-by-focal-length\",\n samples: {\n value: samples,\n evidence: parseEvidenceList(\n samplesFact.evidence,\n path +\n \".samples.evidence\"\n )\n }\n };\n }\n\n throw new InvalidConfigurationError(\n path + \".kind is invalid.\"\n );\n}\n\n/**\n * Parses a generic Photivra lens exposure-capability profile.\n *\n * \"Widest\" means the smallest available f-number. This avoids the ambiguous\n * phrases \"minimum aperture\" and \"maximum aperture\".\n */\nexport function parseGenericLensExposureCapabilityProfile(\n value: unknown\n): GenericLensExposureCapabilityProfile {\n const record = requireRecord(\n value,\n \"genericLensExposureCapabilityProfile\", [\"schemaVersion\", \"scientificStatus\", \"profileId\", \"profileVersion\", \"evidence\", \"focalLengthMmRange\", \"aperture\"]\n );\n const header =\n requireApproximationProfileHeader(\n record,\n \"genericLensExposureCapabilityProfile\"\n );\n\n const focalRange =\n parseSourcedRange(\n record.focalLengthMmRange,\n \"genericLensExposureCapabilityProfile.focalLengthMmRange\"\n );\n const aperture = requireRecord(\n record.aperture,\n \"genericLensExposureCapabilityProfile.aperture\", [\"narrowestAvailableFNumber\", \"widestAvailableFNumber\", \"settingGrid\"]\n );\n const narrowest =\n parseSourcedPositiveNumber(\n aperture.narrowestAvailableFNumber,\n \"genericLensExposureCapabilityProfile.aperture.narrowestAvailableFNumber\"\n );\n const widest =\n parseWidestFNumberCapability(\n aperture.widestAvailableFNumber,\n focalRange.value,\n narrowest.value,\n \"genericLensExposureCapabilityProfile.aperture.widestAvailableFNumber\"\n );\n\n const broadApertureRange = {\n minimum:\n widest.kind === \"constant\"\n ? widest.fNumber.value\n : Math.min(\n ...widest.samples.value.map(\n (sample) =>\n sample.fNumber\n )\n ),\n maximum: narrowest.value\n };\n\n return {\n schemaVersion:\n GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION,\n ...header,\n scientificStatus:\n \"approximation\",\n focalLengthMmRange:\n focalRange,\n aperture: {\n widestAvailableFNumber:\n widest,\n narrowestAvailableFNumber:\n narrowest,\n settingGrid:\n parseSettingGrid(\n aperture.settingGrid,\n broadApertureRange,\n \"genericLensExposureCapabilityProfile.aperture.settingGrid\"\n )\n }\n };\n}\n\nfunction interpolateWidestFNumber(\n capability:\n WidestAvailableFNumberCapability,\n selectedFocalLengthMm: number\n): number {\n if (capability.kind === \"constant\") {\n return capability.fNumber.value;\n }\n\n const samples =\n capability.samples.value;\n for (\n let index = 1;\n index < samples.length;\n index += 1\n ) {\n const right = samples[index]!;\n if (\n selectedFocalLengthMm <=\n right.focalLengthMm\n ) {\n const left =\n samples[index - 1]!;\n const span =\n right.focalLengthMm -\n left.focalLengthMm;\n const phase =\n (selectedFocalLengthMm -\n left.focalLengthMm) /\n span;\n return (\n left.fNumber +\n phase *\n (right.fNumber -\n left.fNumber)\n );\n }\n }\n\n return samples[\n samples.length - 1\n ]!.fNumber;\n}\n\nfunction resolveGrid(\n grid: NumericSettingGrid,\n minimum: number,\n maximum: number,\n path: string\n): ResolvedNumericSettingGrid {\n if (\n grid.kind ===\n \"continuous-within-range\"\n ) {\n return {\n kind:\n \"continuous-within-range\"\n };\n }\n\n const values =\n grid.values.value.filter(\n (value) =>\n value >= minimum &&\n value <= maximum\n );\n if (values.length === 0) {\n throw new InvalidScientificInputError(\n path +\n \" has no discrete values inside the resolved capability range.\"\n );\n }\n\n return {\n kind: \"discrete-values\",\n values\n };\n}\n\n/**\n * Resolves the exposure-relevant capability subset for one generic body+lens\n * combination at one selected focal length.\n *\n * The source profiles are not changed. This resolver does not choose exposure\n * settings. It only provides the range of available settings (the capability\n * envelope) that the exposure-mode resolvers use.\n */\nexport function resolveGenericEquipmentExposureCapabilities(\n input:\n ResolveGenericEquipmentExposureCapabilitiesInput\n): ResolvedGenericEquipmentExposureCapabilities {\n requireInputKeys(input, \"resolveGenericEquipmentExposureCapabilities\", [\"bodyProfile\", \"lensProfile\", \"selectedFocalLengthMm\"]);\n const body =\n parseGenericBodyExposureCapabilityProfile(\n input.bodyProfile\n );\n const lens =\n parseGenericLensExposureCapabilityProfile(\n input.lensProfile\n );\n\n if (\n typeof input.selectedFocalLengthMm !==\n \"number\" ||\n !Number.isFinite(\n input.selectedFocalLengthMm\n ) ||\n input.selectedFocalLengthMm <= 0\n ) {\n throw new InvalidScientificInputError(\n \"selectedFocalLengthMm must be finite and greater than zero.\"\n );\n }\n\n const focalRange =\n lens.focalLengthMmRange.value;\n if (\n input.selectedFocalLengthMm <\n focalRange.minimum ||\n input.selectedFocalLengthMm >\n focalRange.maximum\n ) {\n throw new InvalidScientificInputError(\n \"selectedFocalLengthMm lies outside the lens capability range.\"\n );\n }\n\n const widest =\n interpolateWidestFNumber(\n lens.aperture\n .widestAvailableFNumber,\n input.selectedFocalLengthMm\n );\n const narrowest =\n lens.aperture\n .narrowestAvailableFNumber\n .value;\n\n if (\n !Number.isFinite(widest) ||\n widest <= 0 ||\n widest > narrowest\n ) {\n throw new InvalidScientificInputError(\n \"Resolved aperture range is invalid.\"\n );\n }\n\n const shutterRange =\n body.shutter\n .durationSecondsRange.value;\n const isoRange =\n body.iso.range.value;\n\n return {\n schemaVersion:\n GENERIC_EQUIPMENT_EXPOSURE_CAPABILITY_SCHEMA_VERSION,\n scientificStatus:\n \"approximation\",\n bodyProfile: {\n profileId: body.profileId,\n profileVersion:\n body.profileVersion\n },\n lensProfile: {\n profileId: lens.profileId,\n profileVersion:\n lens.profileVersion\n },\n selectedFocalLengthMm:\n input.selectedFocalLengthMm,\n aperture: {\n widestAvailableFNumber:\n widest,\n narrowestAvailableFNumber:\n narrowest,\n settingGrid:\n resolveGrid(\n lens.aperture\n .settingGrid,\n widest,\n narrowest,\n \"lens aperture setting grid\"\n )\n },\n shutter: {\n minimumSeconds:\n shutterRange.minimum,\n maximumSeconds:\n shutterRange.maximum,\n settingGrid:\n resolveGrid(\n body.shutter.settingGrid,\n shutterRange.minimum,\n shutterRange.maximum,\n \"body shutter setting grid\"\n )\n },\n iso: {\n minimum: isoRange.minimum,\n maximum: isoRange.maximum,\n settingGrid:\n resolveGrid(\n body.iso.settingGrid,\n isoRange.minimum,\n isoRange.maximum,\n \"body ISO setting grid\"\n ),\n autoIsoAvailability:\n body.iso.autoIso.value\n },\n sourceProfilesMutated: false,\n exactNamedEquipmentEmulationClaimed:\n false\n };\n}\n"]}
@@ -1,8 +1,10 @@
1
1
  /**
2
- * Owned synthetic catalog data defines separate body capabilities/readout and lens
3
- * optical/correction profiles. Tier selection changes explicit profile values, never adds a
4
- * universal quality multiplier. CFA/collection geometry and actual capture raster remain
5
- * caller-owned; numeric data is not measured calibration.
2
+ * Synthetic catalog data, owned by the project, for generic camera tiers. Bodies (capabilities and
3
+ * readout) and lenses (optical and correction profiles) are defined separately.
4
+ *
5
+ * Choosing a tier changes explicit profile values. It never applies a universal quality multiplier.
6
+ * The caller still supplies the CFA (colour filter array) and light-collection geometry and the
7
+ * actual capture raster. The numbers are not measured calibration.
6
8
  * @see docs/RELEASE_1_0.md and the corresponding domain guide.
7
9
  */
8
10
  import type { EvidenceProvenance } from "../core/evidence-provenance.js";
@@ -18,6 +20,7 @@ import { type ExposureMeteringProfile } from "../exposure/metering.js";
18
20
  import { type GenericBodyMeteringCapabilityProfile } from "./metering-capabilities.js";
19
21
  import { type FlashSyncCapabilityProfile } from "../exposure/flash.js";
20
22
  import type { SensorReadoutTimingDeclaration } from "../sensor/readout-timing.js";
23
+ import { type SensorFixedPatternNoiseProfile } from "../sensor/fixed-pattern-noise.js";
21
24
  export type GenericEquipmentTier = "consumer" | "prosumer" | "professional";
22
25
  export interface GenericVersionedAsset<T> {
23
26
  assetId: string;
@@ -29,7 +32,12 @@ export interface GenericTierBodyAssets {
29
32
  iso: IsoCapabilityProfile;
30
33
  signalChain: GenericIsoSignalChainProfile;
31
34
  readout: readonly GenericVersionedAsset<SensorReadoutConversionProfile>[];
35
+ /** Global data readout (no skew across the frame). The default timing asset. */
32
36
  readoutTiming: GenericVersionedAsset<SensorReadoutTimingDeclaration>;
37
+ /** Optional rolling readout variant, with an explicit top-to-bottom skew across the frame. */
38
+ rollingReadoutTiming: GenericVersionedAsset<SensorReadoutTimingDeclaration>;
39
+ /** Optional synthetic fixed-pattern noise for this body. Never applied unless a caller attaches it. */
40
+ fixedPatternNoise: GenericVersionedAsset<SensorFixedPatternNoiseProfile>;
33
41
  release: GenericReleaseCapabilityProfile;
34
42
  focus: FocusControlProfile;
35
43
  stabilization: StabilizationSystemProfile;
@@ -71,7 +79,7 @@ export interface GenericEquipmentTierPreset {
71
79
  tier: GenericEquipmentTier;
72
80
  label: "Consumer" | "Prosumer" | "Professional";
73
81
  presetId: string;
74
- presetVersion: "1.0.0";
82
+ presetVersion: "2.0.0";
75
83
  scientificStatus: "approximation";
76
84
  evidence: readonly EvidenceProvenance[];
77
85
  body: GenericTierBodyAssets;
@@ -79,4 +87,3 @@ export interface GenericEquipmentTierPreset {
79
87
  tradeoffs: readonly string[];
80
88
  }
81
89
  export declare const GENERIC_TIER_ASSETS: readonly GenericEquipmentTierPreset[];
82
- //# sourceMappingURL=generic-tier-assets.d.ts.map
@@ -10,19 +10,21 @@ import { parseGenericIsoSignalChainProfile } from "../sensor/iso-signal-chain.js
10
10
  import { parseExposureMeteringProfile } from "../exposure/metering.js";
11
11
  import { parseGenericBodyMeteringCapabilityProfile } from "./metering-capabilities.js";
12
12
  import { parseFlashSyncCapabilityProfile } from "../exposure/flash.js";
13
+ import { createIsoGainReadoutRegimes } from "../sensor/iso-gain.js";
14
+ import { parseSensorFixedPatternNoiseProfile } from "../sensor/fixed-pattern-noise.js";
13
15
  const evidence = [{ sourceOrigin: "photivra", sourceReference: "photivra:generic-tier-assets-v1",
14
16
  reuseStatus: "photivra-owned" }];
15
17
  const limitations = ["Synthetic educational design values; no named camera/lens calibration or population ranking."];
16
18
  const fact = (value) => ({ value, evidence });
17
- const version = "1.0.0";
19
+ const version = "2.0.0";
18
20
  const disk = [0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0];
19
21
  const clipped = [0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0];
20
22
  const clippedMore = [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0];
21
23
  const near = [0, 0, .12, 0, 0, 0, .06, 0, .06, 0, .12, 0, -.04, 0, .12, 0, .06, 0, .06, 0, 0, 0, .12, 0, 0];
22
24
  const flat = Array(25).fill(0);
23
25
  const far = near.map((v) => -v);
24
- /** Data construction only: tier labels never enter downstream scientific equations. */
25
- function bodyAssets(id, isoMax, cadence, frames, readNoise, dataReadoutSeconds, gain, maxAngle, continuousAf, advancedPolicies) {
26
+ /** Used only to build data. Tier labels never enter any scientific equation. */
27
+ function bodyAssets(id, isoMax, cadence, frames, sensor, dataReadoutSeconds, gain, maxAngle, continuousAf, advancedPolicies) {
26
28
  const isoValues = [100, 200, 400, 800, 1600, 3200, 6400, 12800, 25600].filter((v) => v <= isoMax);
27
29
  const exposure = parseGenericBodyExposureCapabilityProfile({ schemaVersion: "0.1.0", profileId: id + ":exposure", profileVersion: version,
28
30
  scientificStatus: "approximation", evidence, shutter: { durationSecondsRange: fact({ minimum: 1 / 8000, maximum: 30 }), settingGrid: { kind: "continuous-within-range" } },
@@ -31,20 +33,20 @@ function bodyAssets(id, isoMax, cadence, frames, readNoise, dataReadoutSeconds,
31
33
  capabilityMeaning: "reported-exposure-index-capability-not-physical-gain", standard: { exposureIndexRange: { minimum: 100, maximum: isoMax },
32
34
  settingGrid: { kind: "discrete-values", values: isoValues } }, expandedSettings: [], autoIso: { availability: "supported", standardExposureIndexRange: { minimum: 100, maximum: isoMax }, evidence },
33
35
  captureModePolicies: [], evidence });
36
+ const isoGain = createIsoGainReadoutRegimes({ regimeIdPrefix: "", scientificStatus: "approximation", baseExposureIndex: 100,
37
+ exposureIndices: isoValues, baseSaturationElectronEquivalent: fact(sensor.saturationElectrons), maximumAnalogGain: fact(sensor.maximumAnalogGain),
38
+ adc: { bitDepth: sensor.bitDepth, blackLevelCode: sensor.blackLevelCode, digitalSaturationCode: 2 ** sensor.bitDepth - 1 },
39
+ conversionGainModes: [{ mode: "low-conversion-gain", minimumExposureIndex: 100, readNoiseRmsElectrons: fact(sensor.lowGainReadNoise) },
40
+ { mode: "high-conversion-gain", minimumExposureIndex: sensor.highGainFromIso, readNoiseRmsElectrons: fact(sensor.highGainReadNoise),
41
+ maximumChargeElectrons: fact(sensor.highGainMaximumCharge) }],
42
+ evidence, limitations: [...limitations, "ISO gain follows the declared base-ISO saturation signal and analog range; read noise per conversion-gain mode is a synthetic design value."] });
34
43
  const readout = ["red", "green", "blue"].map((channelId) => ({ assetId: id + ":readout:" + channelId, assetVersion: version,
35
44
  profile: parseSensorReadoutConversionProfile({ schemaVersion: "0.1.0", profileId: id + ":readout", colorSamplingProfileId: "photivra-generic-bayer", channelId,
36
- regimeSelectionOwnedBy: "explicit-upstream-camera-state-not-inferred-from-iso", evidence,
37
- regimes: [{ regimeId: "base", scientificStatus: "approximation", systemConversionGainElectronsPerCode: fact(1),
38
- preAdcSaturationElectronEquivalent: fact(20000), readNoiseComponents: [{ componentId: "electronic", rmsElectrons: fact(readNoise), evidence }],
39
- adc: { bitDepth: 16, blackLevelCode: 512, digitalSaturationCode: 65535, transfer: "uniform-round-half-up" }, evidence, limitations },
40
- { regimeId: "high", scientificStatus: "approximation", systemConversionGainElectronsPerCode: fact(.25),
41
- preAdcSaturationElectronEquivalent: fact(12000), readNoiseComponents: [{ componentId: "electronic", rmsElectrons: fact(readNoise * .75), evidence }],
42
- adc: { bitDepth: 16, blackLevelCode: 512, digitalSaturationCode: 65535, transfer: "uniform-round-half-up" }, evidence, limitations }] }) }));
45
+ regimeSelectionOwnedBy: "explicit-upstream-camera-state-not-inferred-from-iso", evidence, regimes: isoGain.regimes }) }));
43
46
  const signalChain = parseGenericIsoSignalChainProfile({ schemaVersion: "0.1.0", profileId: id + ":signal-chain", profileVersion: version,
44
47
  scientificStatus: "approximation", isoCapabilityProfileId: iso.profileId, readoutProfileId: id + ":readout",
45
48
  behaviorMeaning: "iso-state-selects-explicit-readout-regime-not-noise-equation", captureModeBindings: [{ captureModeId: "native-still",
46
- standardRegimeBands: [{ minimumExposureIndex: 100, maximumExposureIndex: 400, readoutRegimeId: "base" },
47
- { minimumExposureIndex: 800, maximumExposureIndex: isoMax, readoutRegimeId: "high" }], expandedRegimeBindings: [], evidence }],
49
+ standardRegimeBands: isoGain.standardRegimeBands, expandedRegimeBindings: [], evidence }],
48
50
  photonShotNoiseOwnedUpstream: true, processedImageBehaviorIncluded: false, fixedPatternNoiseModeled: false, lowSignalColorDegradationModeled: false,
49
51
  evidence, limitations });
50
52
  const release = parseGenericReleaseCapabilityProfile({ schemaVersion: "0.1.0", profileId: id + ":release", profileVersion: version,
@@ -76,10 +78,21 @@ function bodyAssets(id, isoMax, cadence, frames, readNoise, dataReadoutSeconds,
76
78
  scientificStatus: "approximation", evidence, supportedMeteringProfiles: metering.map((m) => ({ meteringProfileId: m.profile.profileId, policyKind: m.profile.policy.kind, evidence })),
77
79
  spotFocusPointLinkage: { availability: "unsupported", evidence } });
78
80
  const timingId = id + ":data-readout";
81
+ const fixedPatternNoise = parseSensorFixedPatternNoiseProfile({ schemaVersion: "0.1.0", profileId: id + ":fixed-pattern",
82
+ colorSamplingProfileId: "photivra-generic-bayer", scientificStatus: "approximation", sensorInstanceSeedUint32: sensor.instanceSeed,
83
+ photoResponseNonUniformity: { relativeStandardDeviation: fact(sensor.prnu) }, darkSignalNonUniformity: { relativeStandardDeviation: fact(sensor.dsnu) },
84
+ hotPixels: { siteFraction: fact(sensor.hotFraction), darkCurrentMultiplier: fact(sensor.hotMultiplier) },
85
+ rowOffset: { rmsElectrons: fact(sensor.rowRms) }, columnOffset: { rmsElectrons: fact(sensor.columnRms) },
86
+ patternDistribution: "normal-factors-truncated-at-zero", evidence,
87
+ limitations: [...limitations, "Synthetic fixed-pattern magnitudes for teaching; opt-in only and not a measured sensor population."] });
79
88
  return { exposure, iso, signalChain, readout, release, focus, stabilization, whiteBalance, metering, meteringCapabilities,
80
89
  readoutTiming: { assetId: timingId, assetVersion: version, profile: { readoutMode: "global", captureReadoutDurationSeconds: {
81
90
  value: dataReadoutSeconds, unit: "s", evidence
82
91
  } } },
92
+ rollingReadoutTiming: { assetId: id + ":rolling-data-readout", assetVersion: version, profile: { readoutMode: "rolling",
93
+ captureReadoutDurationSeconds: { value: dataReadoutSeconds, unit: "s", evidence }, scanDirectionNative: fact("top-to-bottom"),
94
+ spatialSamplingSkewSeconds: { value: dataReadoutSeconds, unit: "s", evidence } } },
95
+ fixedPatternNoise: { assetId: id + ":fixed-pattern", assetVersion: version, profile: fixedPatternNoise },
83
96
  flashSync: parseFlashSyncCapabilityProfile({ schemaVersion: "0.1.0", profileId: id + ":flash-sync", profileVersion: version,
84
97
  captureModeId: "native-still", timingProfileId: timingId, supportedOrdinarySyncModes: ["front-curtain", "rear-curtain"],
85
98
  highSpeedSyncSupported: false, ordinarySyncRequiresWholeActiveFrameSimultaneouslyExposed: true, evidence, limitations }) };
@@ -98,19 +111,25 @@ const common = { focalLengthMm: 50, aperture: 4, focusDistanceM: 5, wavelengthNm
98
111
  normalizationRadiusMm: Math.hypot(18, 12), correctionCaFraction: .8 };
99
112
  export const GENERIC_TIER_ASSETS = [
100
113
  { tier: "consumer", label: "Consumer", presetId: "photivra-consumer", presetVersion: version, scientificStatus: "approximation", evidence,
101
- body: bodyAssets("photivra-consumer-body", 6400, 4, 8, 6, .03, .35, .005, false, false),
114
+ body: bodyAssets("photivra-consumer-body", 6400, 4, 8, { bitDepth: 12, blackLevelCode: 256, saturationElectrons: 20000,
115
+ maximumAnalogGain: 32, lowGainReadNoise: 6, highGainReadNoise: 2.5, highGainFromIso: 800, highGainMaximumCharge: 6000,
116
+ prnu: .01, dsnu: .3, hotFraction: 2e-4, hotMultiplier: 50, rowRms: .6, columnRms: .4, instanceSeed: 0x51ed270b }, .03, .35, .005, false, false),
102
117
  lens: lensAssets("photivra-consumer-prime", { ...common, distortionK1: -.06, lateralCaK1Offset: .008, vignettingR2: -.5,
103
118
  breathingProjectionScale: 1.03, transmission: .75, correctionGainStrength: .8, ghostPowerFraction: .006, veilPowerFraction: .012,
104
119
  pupilAmplitudeByField: [disk, clipped, clippedMore], pupilOpdMicrometersByDefocus: [near, flat, far], pupilThroughputByField: [1, .85, .65] }),
105
120
  tradeoffs: ["Limited continuous AF; heavier digital correction and edge pupil clipping in matched reference."] },
106
121
  { tier: "prosumer", label: "Prosumer", presetId: "photivra-prosumer", presetVersion: version, scientificStatus: "approximation", evidence,
107
- body: bodyAssets("photivra-prosumer-body", 12800, 8, 16, 3, .015, .65, .01, true, true),
122
+ body: bodyAssets("photivra-prosumer-body", 12800, 8, 16, { bitDepth: 14, blackLevelCode: 1024, saturationElectrons: 40000,
123
+ maximumAnalogGain: 64, lowGainReadNoise: 3, highGainReadNoise: 1.4, highGainFromIso: 800, highGainMaximumCharge: 12000,
124
+ prnu: .006, dsnu: .2, hotFraction: 1e-4, hotMultiplier: 40, rowRms: .3, columnRms: .2, instanceSeed: 0x2c1b3c6d }, .015, .65, .01, true, true),
108
125
  lens: lensAssets("photivra-prosumer-prime", { ...common, distortionK1: -.025, lateralCaK1Offset: .004, vignettingR2: -.25,
109
126
  breathingProjectionScale: 1.015, transmission: .85, correctionGainStrength: .6, ghostPowerFraction: .003, veilPowerFraction: .006,
110
127
  pupilAmplitudeByField: [disk, disk, clipped], pupilOpdMicrometersByDefocus: [near.map((v) => v * .7), flat, far.map((v) => v * .7)], pupilThroughputByField: [1, .95, .85] }),
111
128
  tradeoffs: ["Lower matched-reference peripheral gain/noise amplification than Professional; not universally inferior."] },
112
129
  { tier: "professional", label: "Professional", presetId: "photivra-professional", presetVersion: version, scientificStatus: "approximation", evidence,
113
- body: bodyAssets("photivra-professional-body", 25600, 12, 24, 2, .008, .85, .02, true, true),
130
+ body: bodyAssets("photivra-professional-body", 25600, 12, 24, { bitDepth: 14, blackLevelCode: 1024, saturationElectrons: 60000,
131
+ maximumAnalogGain: 128, lowGainReadNoise: 2, highGainReadNoise: 1.1, highGainFromIso: 800, highGainMaximumCharge: 16000,
132
+ prnu: .004, dsnu: .15, hotFraction: 5e-5, hotMultiplier: 30, rowRms: .15, columnRms: .1, instanceSeed: 0x6a09e667 }, .008, .85, .02, true, true),
114
133
  lens: lensAssets("photivra-professional-prime", { ...common, distortionK1: -.01, lateralCaK1Offset: .002, vignettingR2: -.35,
115
134
  breathingProjectionScale: 1.005, transmission: .9, correctionGainStrength: .8, ghostPowerFraction: .001, veilPowerFraction: .002,
116
135
  pupilAmplitudeByField: [disk, disk, disk], pupilOpdMicrometersByDefocus: [near.map((v) => v * .9), flat, far.map((v) => v * .6)], pupilThroughputByField: [1, .98, .95] }),
@@ -1 +1 @@
1
- {"version":3,"file":"generic-tier-assets.js","sourceRoot":"","sources":["../../src/equipment/generic-tier-assets.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAWtC,OAAO,EAAE,yCAAyC,EAAE,yCAAyC,EACL,MAAM,4BAA4B,CAAC;AAC3H,OAAO,EAAE,yBAAyB,EAA6B,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,oCAAoC,EAAwC,MAAM,2BAA2B,CAAC;AACvH,OAAO,EAAE,wBAAwB,EAA4B,MAAM,6BAA6B,CAAC;AACjG,OAAO,EAAE,wBAAwB,EAA4B,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAE,+BAA+B,EAAmC,MAAM,4BAA4B,CAAC;AAC9G,OAAO,EAAE,mCAAmC,EAAuC,MAAM,0BAA0B,CAAC;AACpH,OAAO,EAAE,iCAAiC,EAAqC,MAAM,+BAA+B,CAAC;AACrH,OAAO,EAAE,4BAA4B,EAAgC,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAE,yCAAyC,EAA6C,MAAM,4BAA4B,CAAC;AAClI,OAAO,EAAE,+BAA+B,EAAmC,MAAM,sBAAsB,CAAC;AAgDxG,MAAM,QAAQ,GAAkC,CAAC,EAA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IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAC,EAAE,CAAA,CAAC,GAAC,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAC,EAAE,CAAA,CAAC,GAAC,EAAE,CAAC,CAAC,EAAE,sBAAsB,EAAE,CAAC,CAAC,EAAC,GAAG,EAAC,GAAG,CAAC,EAAE,CAAC;QAClK,SAAS,EAAE,CAAC,+HAA+H,CAAC,EAAE;CACjJ,CAAC","sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Synthetic catalog data, owned by the project, for generic camera tiers. Bodies (capabilities and\n * readout) and lenses (optical and correction profiles) are defined separately.\n *\n * Choosing a tier changes explicit profile values. It never applies a universal quality multiplier.\n * The caller still supplies the CFA (colour filter array) and light-collection geometry and the\n * actual capture raster. The numbers are not measured calibration.\n * @see docs/RELEASE_1_0.md and the corresponding domain guide.\n */\n\nimport type { EvidenceBackedFact, EvidenceProvenance } from \"../core/evidence-provenance.js\";\nimport { parseGenericBodyExposureCapabilityProfile, parseGenericLensExposureCapabilityProfile,\n type GenericBodyExposureCapabilityProfile, type GenericLensExposureCapabilityProfile } from \"./exposure-capabilities.js\";\nimport { parseIsoCapabilityProfile, type IsoCapabilityProfile } from \"./iso-capabilities.js\";\nimport { parseGenericReleaseCapabilityProfile, type GenericReleaseCapabilityProfile } from \"./release-capabilities.js\";\nimport { parseFocusControlProfile, type FocusControlProfile } from \"../capture/focus-control.js\";\nimport { parseWhiteBalanceProfile, type WhiteBalanceProfile } from \"../color/white-balance.js\";\nimport { parseStabilizationSystemProfile, type StabilizationSystemProfile } from \"../stabilization/system.js\";\nimport { parseSensorReadoutConversionProfile, type SensorReadoutConversionProfile } from \"../sensor/raw-readout.js\";\nimport { parseGenericIsoSignalChainProfile, type GenericIsoSignalChainProfile } from \"../sensor/iso-signal-chain.js\";\nimport { parseExposureMeteringProfile, type ExposureMeteringProfile } from \"../exposure/metering.js\";\nimport { parseGenericBodyMeteringCapabilityProfile, type GenericBodyMeteringCapabilityProfile } from \"./metering-capabilities.js\";\nimport { parseFlashSyncCapabilityProfile, type FlashSyncCapabilityProfile } from \"../exposure/flash.js\";\nimport type { SensorReadoutTimingDeclaration } from \"../sensor/readout-timing.js\";\nimport { createIsoGainReadoutRegimes } from \"../sensor/iso-gain.js\";\nimport { parseSensorFixedPatternNoiseProfile, type SensorFixedPatternNoiseProfile } from \"../sensor/fixed-pattern-noise.js\";\n\nexport type GenericEquipmentTier = \"consumer\" | \"prosumer\" | \"professional\";\nexport interface GenericVersionedAsset<T> { assetId: string; assetVersion: string; profile: T }\nexport interface GenericTierBodyAssets {\n exposure: GenericBodyExposureCapabilityProfile;\n iso: IsoCapabilityProfile;\n signalChain: GenericIsoSignalChainProfile;\n readout: readonly GenericVersionedAsset<SensorReadoutConversionProfile>[];\n /** Global data readout (no skew across the frame). The default timing asset. */\n readoutTiming: GenericVersionedAsset<SensorReadoutTimingDeclaration>;\n /** Optional rolling readout variant, with an explicit top-to-bottom skew across the frame. */\n rollingReadoutTiming: GenericVersionedAsset<SensorReadoutTimingDeclaration>;\n /** Optional synthetic fixed-pattern noise for this body. Never applied unless a caller attaches it. */\n fixedPatternNoise: GenericVersionedAsset<SensorFixedPatternNoiseProfile>;\n release: GenericReleaseCapabilityProfile;\n focus: FocusControlProfile;\n stabilization: StabilizationSystemProfile;\n whiteBalance: WhiteBalanceProfile;\n metering: readonly GenericVersionedAsset<ExposureMeteringProfile>[];\n meteringCapabilities: GenericBodyMeteringCapabilityProfile;\n flashSync: FlashSyncCapabilityProfile;\n}\nexport interface GenericTierLensAssets {\n form: \"prime\";\n exposure: GenericLensExposureCapabilityProfile;\n /** Explicit synthetic coefficients, not measured calibration or a quality score. */\n matchedReference: {\n focalLengthMm: 50; aperture: 4; focusDistanceM: 5; wavelengthNm: 550;\n normalizationRadiusMm: number;\n distortionK1: number; lateralCaK1Offset: number; vignettingR2: number;\n breathingProjectionScale: number; transmission: number;\n correctionGainStrength: number; correctionCaFraction: number;\n ghostPowerFraction: number; veilPowerFraction: number;\n pupilAmplitudeByField: readonly (readonly number[])[];\n pupilOpdMicrometersByDefocus: readonly (readonly number[])[];\n pupilThroughputByField: readonly number[];\n };\n profileReferences: readonly { profileId: string; profileVersion: string }[];\n limitations: readonly string[];\n}\nexport interface GenericEquipmentTierPreset {\n tier: GenericEquipmentTier;\n label: \"Consumer\" | \"Prosumer\" | \"Professional\";\n presetId: string; presetVersion: \"2.0.0\";\n scientificStatus: \"approximation\";\n evidence: readonly EvidenceProvenance[];\n body: GenericTierBodyAssets;\n lens: GenericTierLensAssets;\n tradeoffs: readonly string[];\n}\n\nconst evidence: readonly EvidenceProvenance[] = [{ sourceOrigin: \"photivra\", sourceReference: \"photivra:generic-tier-assets-v1\",\n reuseStatus: \"photivra-owned\" }];\nconst limitations = [\"Synthetic educational design values; no named camera/lens calibration or population ranking.\"];\nconst fact = <T>(value: T): EvidenceBackedFact<T> => ({ value, evidence });\nconst version = \"2.0.0\";\nconst disk = [0,0,1,0,0, 0,1,1,1,0, 1,1,1,1,1, 0,1,1,1,0, 0,0,1,0,0];\nconst clipped = [0,0,1,0,0, 0,1,1,1,0, 0,1,1,1,1, 0,1,1,1,0, 0,0,1,0,0];\nconst clippedMore = [0,0,0,0,0, 0,0,1,1,0, 0,0,1,1,1, 0,0,1,1,0, 0,0,0,0,0];\nconst near = [0,0,.12,0,0, 0,.06,0,.06,0, .12,0,-.04,0,.12, 0,.06,0,.06,0, 0,0,.12,0,0];\nconst flat = Array<number>(25).fill(0);\nconst far = near.map((v) => -v);\n\n/**\n * Synthetic, educational sensor design values for each tier: ADC (analogue-to-digital converter),\n * saturation signal Q0 at base ISO, analogue gain range, read noise for each conversion-gain mode,\n * and fixed-pattern noise sizes. They are plausible orders of magnitude for consumer\n * interchangeable-lens sensors. They are not data from any real camera.\n */\ninterface SyntheticSensorDesign {\n bitDepth: number; blackLevelCode: number; saturationElectrons: number; maximumAnalogGain: number;\n lowGainReadNoise: number; highGainReadNoise: number; highGainFromIso: number; highGainMaximumCharge: number;\n prnu: number; dsnu: number; hotFraction: number; hotMultiplier: number; rowRms: number; columnRms: number; instanceSeed: number;\n}\n/** Used only to build data. Tier labels never enter any scientific equation. */\nfunction bodyAssets(id: string, isoMax: number, cadence: number, frames: number, sensor: SyntheticSensorDesign,\n dataReadoutSeconds: number, gain: number, maxAngle: number, continuousAf: boolean, advancedPolicies: boolean): GenericTierBodyAssets {\n const isoValues = [100, 200, 400, 800, 1600, 3200, 6400, 12800, 25600].filter((v) => v <= isoMax);\n const exposure = parseGenericBodyExposureCapabilityProfile({ schemaVersion: \"0.1.0\", profileId: id+\":exposure\", profileVersion: version,\n scientificStatus: \"approximation\", evidence, shutter: { durationSecondsRange: fact({ minimum: 1/8000, maximum: 30 }), settingGrid: { kind: \"continuous-within-range\" } },\n iso: { range: fact({ minimum: 100, maximum: isoMax }), settingGrid: { kind: \"discrete-values\", values: fact(isoValues) }, autoIso: fact(\"supported\") } });\n const iso = parseIsoCapabilityProfile({ schemaVersion: \"0.1.0\", profileId: id+\":iso\", profileVersion: version,\n capabilityMeaning: \"reported-exposure-index-capability-not-physical-gain\", standard: { exposureIndexRange: { minimum: 100, maximum: isoMax },\n settingGrid: { kind: \"discrete-values\", values: isoValues } }, expandedSettings: [], autoIso: { availability: \"supported\", standardExposureIndexRange: { minimum: 100, maximum: isoMax }, evidence },\n captureModePolicies: [], evidence });\n const isoGain = createIsoGainReadoutRegimes({ regimeIdPrefix: \"\", scientificStatus: \"approximation\", baseExposureIndex: 100,\n exposureIndices: isoValues, baseSaturationElectronEquivalent: fact(sensor.saturationElectrons), maximumAnalogGain: fact(sensor.maximumAnalogGain),\n adc: { bitDepth: sensor.bitDepth, blackLevelCode: sensor.blackLevelCode, digitalSaturationCode: 2**sensor.bitDepth-1 },\n conversionGainModes: [{ mode: \"low-conversion-gain\", minimumExposureIndex: 100, readNoiseRmsElectrons: fact(sensor.lowGainReadNoise) },\n { mode: \"high-conversion-gain\", minimumExposureIndex: sensor.highGainFromIso, readNoiseRmsElectrons: fact(sensor.highGainReadNoise),\n maximumChargeElectrons: fact(sensor.highGainMaximumCharge) }],\n evidence, limitations: [...limitations, \"ISO gain follows the declared base-ISO saturation signal and analog range; read noise per conversion-gain mode is a synthetic design value.\"] });\n const readout = [\"red\", \"green\", \"blue\"].map((channelId): GenericVersionedAsset<SensorReadoutConversionProfile> => ({ assetId: id+\":readout:\"+channelId, assetVersion: version,\n profile: parseSensorReadoutConversionProfile({ schemaVersion: \"0.1.0\", profileId: id+\":readout\", colorSamplingProfileId: \"photivra-generic-bayer\", channelId,\n regimeSelectionOwnedBy: \"explicit-upstream-camera-state-not-inferred-from-iso\", evidence, regimes: isoGain.regimes }) }));\n const signalChain = parseGenericIsoSignalChainProfile({ schemaVersion: \"0.1.0\", profileId: id+\":signal-chain\", profileVersion: version,\n scientificStatus: \"approximation\", isoCapabilityProfileId: iso.profileId, readoutProfileId: id+\":readout\",\n behaviorMeaning: \"iso-state-selects-explicit-readout-regime-not-noise-equation\", captureModeBindings: [{ captureModeId: \"native-still\",\n standardRegimeBands: isoGain.standardRegimeBands, expandedRegimeBindings: [], evidence }],\n photonShotNoiseOwnedUpstream: true, processedImageBehaviorIncluded: false, fixedPatternNoiseModeled: false, lowSignalColorDegradationModeled: false,\n evidence, limitations });\n const release = parseGenericReleaseCapabilityProfile({ schemaVersion: \"0.1.0\", profileId: id+\":release\", profileVersion: version,\n scientificStatus: \"approximation\", evidence, supportedDriveModes: fact([\"single\", \"burst\", \"self-timer\"]), maximumLogicalFramesPerSequence: fact(frames),\n maximumCadenceFps: fact(cadence), minimumInterFrameGapSeconds: fact(0), overlappingOrdinaryStillExposures: false,\n exposureBracketing: { availability: fact(\"supported\"), supportedAxes: [\"shutter\", \"iso\"] }, focusBracketing: { availability: fact(\"unsupported\") } });\n const focus = parseFocusControlProfile({ schemaVersion: \"0.1.0\", profileId: id+\":focus\", profileVersion: version, scientificStatus: \"approximation\",\n supportedModes: continuousAf ? [\"manual\", \"single-af\", \"continuous-af\"] : [\"manual\", \"single-af\"], actuator: { kind: \"ideal-instantaneous\", evidence },\n continuousTargetLossPolicy: \"hold-last-focus-require-explicit-reacquisition\", supportedReleasePriorities: [\"focus-priority\", \"release-priority\", \"balanced\"],\n evidence, limitations: [...limitations, \"AF actuator speed and subject recognition are not tier performance claims.\"] });\n const stabilization = parseStabilizationSystemProfile({ schemaVersion: \"0.1.0\", profileId: id+\":stabilization\", profileVersion: version,\n profileKind: \"generic-synthetic\", scientificStatus: \"approximation\", architecture: \"sensor-shift\", captureKind: \"still\",\n axisResponses: [\"pitch\", \"yaw\", \"roll\"].map((axis) => ({ axis, correctionGain: fact(gain), latencySeconds: fact(.001), maximumCorrectionAngleRad: fact(maxAngle) })),\n panningPolicy: { kind: \"none\" }, controlTransientModeled: false, spontaneousDriftModeled: false, cameraTranslationCorrectionModeled: false,\n digitalStabilizationIncluded: false, supportPolicyIncluded: false, stopRatingUsedAsDynamicResponse: false, evidence, limitations });\n const whiteBalance = parseWhiteBalanceProfile({ schemaVersion: \"0.1.0\", profileId: id+\":white-balance\", profileVersion: version,\n scientificStatus: \"approximation\", inputDomain: \"relative-pre-wb-camera-linear-rgb\", presets: [{ presetId: \"neutral\", label: \"Neutral reference\",\n channelGains: fact({ red: 1, green: 1, blue: 1 }) }], awbPolicies: [\n { policyId: \"neutral-priority\", intent: \"neutral-priority\", correctionStrength: fact(1) },\n ...(advancedPolicies ? [{ policyId: \"ambience\", intent: \"ambience-preserving\", correctionStrength: fact(.5) }] : [])], evidence, limitations });\n const metering = [{ kind: \"multi-zone-uniform\" }, ...(advancedPolicies ? [{ kind: \"highlight-weighted\", minimumWeightFraction: .2, exponent: 2 }] : [])]\n .map((policy): GenericVersionedAsset<ExposureMeteringProfile> => ({ assetId: id+\":meter:\"+policy.kind, assetVersion: version,\n profile: parseExposureMeteringProfile({ schemaVersion: \"0.1.0\", profileId: id+\":meter:\"+policy.kind, scientificStatus: \"approximation\",\n inputDomain: \"relative-pre-exposure-linear-signal\", captureRegion: \"oriented-active-capture\", policy,\n target: { kind: \"relative-signal-reference\", targetRelativeSignal: .18, evidence }, evidence,\n limitations: [...limitations, \"0.18 is a declared target policy, not universal scene/camera truth.\"] }) }));\n const meteringCapabilities = parseGenericBodyMeteringCapabilityProfile({ schemaVersion: \"0.1.0\", profileId: id+\":metering-capabilities\", profileVersion: version,\n scientificStatus: \"approximation\", evidence, supportedMeteringProfiles: metering.map((m) => ({ meteringProfileId: m.profile.profileId, policyKind: m.profile.policy.kind, evidence })),\n spotFocusPointLinkage: { availability: \"unsupported\", evidence } });\n const timingId = id+\":data-readout\";\n const fixedPatternNoise = parseSensorFixedPatternNoiseProfile({ schemaVersion: \"0.1.0\", profileId: id+\":fixed-pattern\",\n colorSamplingProfileId: \"photivra-generic-bayer\", scientificStatus: \"approximation\", sensorInstanceSeedUint32: sensor.instanceSeed,\n photoResponseNonUniformity: { relativeStandardDeviation: fact(sensor.prnu) }, darkSignalNonUniformity: { relativeStandardDeviation: fact(sensor.dsnu) },\n hotPixels: { siteFraction: fact(sensor.hotFraction), darkCurrentMultiplier: fact(sensor.hotMultiplier) },\n rowOffset: { rmsElectrons: fact(sensor.rowRms) }, columnOffset: { rmsElectrons: fact(sensor.columnRms) },\n patternDistribution: \"normal-factors-truncated-at-zero\", evidence,\n limitations: [...limitations, \"Synthetic fixed-pattern magnitudes for teaching; opt-in only and not a measured sensor population.\"] });\n return { exposure, iso, signalChain, readout, release, focus, stabilization, whiteBalance, metering, meteringCapabilities,\n readoutTiming: { assetId: timingId, assetVersion: version, profile: { readoutMode: \"global\", captureReadoutDurationSeconds: {\n value: dataReadoutSeconds, unit: \"s\", evidence } } },\n rollingReadoutTiming: { assetId: id+\":rolling-data-readout\", assetVersion: version, profile: { readoutMode: \"rolling\",\n captureReadoutDurationSeconds: { value: dataReadoutSeconds, unit: \"s\", evidence }, scanDirectionNative: fact(\"top-to-bottom\"),\n spatialSamplingSkewSeconds: { value: dataReadoutSeconds, unit: \"s\", evidence } } },\n fixedPatternNoise: { assetId: id+\":fixed-pattern\", assetVersion: version, profile: fixedPatternNoise },\n flashSync: parseFlashSyncCapabilityProfile({ schemaVersion: \"0.1.0\", profileId: id+\":flash-sync\", profileVersion: version,\n captureModeId: \"native-still\", timingProfileId: timingId, supportedOrdinarySyncModes: [\"front-curtain\", \"rear-curtain\"],\n highSpeedSyncSupported: false, ordinarySyncRequiresWholeActiveFrameSimultaneouslyExposed: true, evidence, limitations }) };\n}\nfunction lensAssets(id: string, r: GenericTierLensAssets[\"matchedReference\"]): GenericTierLensAssets {\n return { form: \"prime\", exposure: parseGenericLensExposureCapabilityProfile({ schemaVersion: \"0.1.0\", profileId: id+\":exposure\", profileVersion: version,\n scientificStatus: \"approximation\", evidence, focalLengthMmRange: fact({ minimum: 50, maximum: 50 }), aperture: { widestAvailableFNumber: {\n kind: \"constant\", fNumber: fact(4) }, narrowestAvailableFNumber: fact(16), settingGrid: { kind: \"continuous-within-range\" } } }),\n matchedReference: r, profileReferences: [\"radial\", \"lateral-ca\", \"vignetting\", \"breathing\", \"transmission\", \"pupil\", \"stray\", \"correction\"]\n .map((role) => ({ profileId: id+\":\"+role, profileVersion: version })),\n limitations: [...limitations, \"Optical reference response is limited to 50 mm, f/4, focus 5 m and explicit field/defocus/wavelength slices; capabilities do not authorize extrapolation.\",\n \"The initial prime has no OIS; body stabilization is separate.\"] };\n}\nconst common = { focalLengthMm: 50 as const, aperture: 4 as const, focusDistanceM: 5 as const, wavelengthNm: 550 as const,\n normalizationRadiusMm: Math.hypot(18,12), correctionCaFraction: .8 };\nexport const GENERIC_TIER_ASSETS: readonly GenericEquipmentTierPreset[] = [\n { tier: \"consumer\", label: \"Consumer\", presetId: \"photivra-consumer\", presetVersion: version, scientificStatus: \"approximation\", evidence,\n body: bodyAssets(\"photivra-consumer-body\", 6400, 4, 8, { bitDepth: 12, blackLevelCode: 256, saturationElectrons: 20000,\n maximumAnalogGain: 32, lowGainReadNoise: 6, highGainReadNoise: 2.5, highGainFromIso: 800, highGainMaximumCharge: 6000,\n prnu: .01, dsnu: .3, hotFraction: 2e-4, hotMultiplier: 50, rowRms: .6, columnRms: .4, instanceSeed: 0x51ed270b }, .03, .35, .005, false, false),\n lens: lensAssets(\"photivra-consumer-prime\", { ...common, distortionK1: -.06, lateralCaK1Offset: .008, vignettingR2: -.5,\n breathingProjectionScale: 1.03, transmission: .75, correctionGainStrength: .8, ghostPowerFraction: .006, veilPowerFraction: .012,\n pupilAmplitudeByField: [disk, clipped, clippedMore], pupilOpdMicrometersByDefocus: [near, flat, far], pupilThroughputByField: [1,.85,.65] }),\n tradeoffs: [\"Limited continuous AF; heavier digital correction and edge pupil clipping in matched reference.\"] },\n { tier: \"prosumer\", label: \"Prosumer\", presetId: \"photivra-prosumer\", presetVersion: version, scientificStatus: \"approximation\", evidence,\n body: bodyAssets(\"photivra-prosumer-body\", 12800, 8, 16, { bitDepth: 14, blackLevelCode: 1024, saturationElectrons: 40000,\n maximumAnalogGain: 64, lowGainReadNoise: 3, highGainReadNoise: 1.4, highGainFromIso: 800, highGainMaximumCharge: 12000,\n prnu: .006, dsnu: .2, hotFraction: 1e-4, hotMultiplier: 40, rowRms: .3, columnRms: .2, instanceSeed: 0x2c1b3c6d }, .015, .65, .01, true, true),\n lens: lensAssets(\"photivra-prosumer-prime\", { ...common, distortionK1: -.025, lateralCaK1Offset: .004, vignettingR2: -.25,\n breathingProjectionScale: 1.015, transmission: .85, correctionGainStrength: .6, ghostPowerFraction: .003, veilPowerFraction: .006,\n pupilAmplitudeByField: [disk, disk, clipped], pupilOpdMicrometersByDefocus: [near.map((v)=>v*.7), flat, far.map((v)=>v*.7)], pupilThroughputByField: [1,.95,.85] }),\n tradeoffs: [\"Lower matched-reference peripheral gain/noise amplification than Professional; not universally inferior.\"] },\n { tier: \"professional\", label: \"Professional\", presetId: \"photivra-professional\", presetVersion: version, scientificStatus: \"approximation\", evidence,\n body: bodyAssets(\"photivra-professional-body\", 25600, 12, 24, { bitDepth: 14, blackLevelCode: 1024, saturationElectrons: 60000,\n maximumAnalogGain: 128, lowGainReadNoise: 2, highGainReadNoise: 1.1, highGainFromIso: 800, highGainMaximumCharge: 16000,\n prnu: .004, dsnu: .15, hotFraction: 5e-5, hotMultiplier: 30, rowRms: .15, columnRms: .1, instanceSeed: 0x6a09e667 }, .008, .85, .02, true, true),\n lens: lensAssets(\"photivra-professional-prime\", { ...common, distortionK1: -.01, lateralCaK1Offset: .002, vignettingR2: -.35,\n breathingProjectionScale: 1.005, transmission: .9, correctionGainStrength: .8, ghostPowerFraction: .001, veilPowerFraction: .002,\n pupilAmplitudeByField: [disk, disk, disk], pupilOpdMicrometersByDefocus: [near.map((v)=>v*.9), flat, far.map((v)=>v*.6)], pupilThroughputByField: [1,.98,.95] }),\n tradeoffs: [\"Less edge clipping/stray light, with greater f/4 falloff/gain cost than Prosumer and asymmetric near/far wavefront character.\"] }\n];\n"]}