@photivra/engine 2.8.1 → 2.9.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.
- package/CHANGELOG.md +60 -1
- package/CITATION.cff +1 -1
- package/README.md +8 -6
- package/SECURITY.md +1 -1
- package/dist/capture/export-jpeg.d.ts +19 -0
- package/dist/capture/export-jpeg.js +190 -108
- package/dist/capture/export-jpeg.js.map +1 -1
- package/dist/capture/native-environment-lean.js +19 -9
- package/dist/capture/native-environment-lean.js.map +1 -1
- package/dist/core/version.d.ts +1 -1
- package/dist/core/version.js +1 -1
- package/dist/core/version.js.map +1 -1
- package/dist/facade/expected-signal.d.ts +4 -1
- package/dist/facade/expected-signal.js +151 -31
- package/dist/facade/expected-signal.js.map +1 -1
- package/dist/facade/scene-radiance.d.ts +4 -1
- package/dist/facade/scene-radiance.js +4 -4
- package/dist/facade/scene-radiance.js.map +1 -1
- package/dist/facade/simulate-capture.d.ts +26 -1
- package/dist/facade/simulate-capture.js +102 -9
- package/dist/facade/simulate-capture.js.map +1 -1
- package/dist/facade/simulate-display-view.js +2 -1
- package/dist/facade/simulate-display-view.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/optics/diffraction-psf-profile.d.ts +19 -17
- package/dist/optics/diffraction-psf-profile.js +49 -18
- package/dist/optics/diffraction-psf-profile.js.map +1 -1
- package/dist/output/print-jpeg.d.ts +28 -1
- package/dist/output/print-jpeg.js +79 -7
- package/dist/output/print-jpeg.js.map +1 -1
- package/dist/sensor/stochastic-seed.d.ts +12 -0
- package/dist/sensor/stochastic-seed.js +25 -0
- package/dist/sensor/stochastic-seed.js.map +1 -1
- package/docs/API_REFERENCE.md +8 -1
- package/docs/QUICK_START.md +59 -0
- package/docs/api/capture-export-jpeg.md +10 -0
- package/docs/api/core-version.md +1 -1
- package/docs/api/exports.json +37 -2
- package/docs/api/facade-scene-radiance.md +2 -1
- package/docs/api/facade-simulate-capture.md +28 -0
- package/docs/api/optics-diffraction-psf-profile.md +1 -1
- package/docs/api/output-print-jpeg.md +41 -0
- package/package.json +1 -1
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
The package and root API versions are recorded once in [Navigation](../API_REFERENCE.md) · [Developer guide](https://github.com/Photivra/photivra/blob/main/docs/DEVELOPERS.md). Generated signatures retain independent schema/model versions. Only the exports listed here are root-package contracts; module-local helpers are not supported deep imports.
|
|
4
4
|
|
|
5
|
+
## composePrintJpegStrips
|
|
6
|
+
|
|
7
|
+
Joins the strips of a 1:1 Print JPEG (`createPrintJpegStrip`), covering the image top to bottom in order, into its file:
|
|
8
|
+
the same bytes `createPrintJpegTask` writes for the plan and the same source pixels. No source is read, so the output's
|
|
9
|
+
`providerReads` is 0.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
export function composePrintJpegStrips(input:PrintJpegInput,strips:readonly PrintJpegStrip[]):PrintJpegOutput;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This call is synchronous; any supplied provider must follow its explicit synchronous contract.
|
|
16
|
+
|
|
17
|
+
## createPrintJpegStrip
|
|
18
|
+
|
|
19
|
+
Codes rows of a 1:1 Print JPEG (output size equal to the crop) apart from the rows before them, so a large file's strips
|
|
20
|
+
can be written on separate workers. `strip.y` is a multiple of 8 and `strip.height` a multiple of 8 unless the strip ends at
|
|
21
|
+
the image's bottom; `strip.samples` are those crop rows' 8-bit sRGB RGB, crop-wide. `composePrintJpegStrips` joins strips that
|
|
22
|
+
cover the image, in order, into the bytes `createPrintJpegTask` writes for the same plan and source pixels.
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
export function createPrintJpegStrip(input:PrintJpegInput,strip:PrintJpegStripInput):PrintJpegStrip;
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
This call is synchronous; any supplied provider must follow its explicit synchronous contract.
|
|
29
|
+
|
|
5
30
|
## createPrintJpegTask
|
|
6
31
|
|
|
7
32
|
Creates the export task. Filtering weights each source pixel by its exact area overlap, after decoding the declared 8-bit SDR source.
|
|
@@ -123,6 +148,22 @@ export interface PrintJpegSource {
|
|
|
123
148
|
}
|
|
124
149
|
```
|
|
125
150
|
|
|
151
|
+
## PrintJpegStrip
|
|
152
|
+
|
|
153
|
+
A strip of a 1:1 Print JPEG's coded blocks (`createPrintJpegStrip`), for `composePrintJpegStrips`.
|
|
154
|
+
|
|
155
|
+
```ts
|
|
156
|
+
export interface PrintJpegStrip {readonly y:number;readonly height:number;readonly width:number;readonly quantizationStep:number;readonly bits:JpegStripBits}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## PrintJpegStripInput
|
|
160
|
+
|
|
161
|
+
Rows of a 1:1 Print JPEG for `createPrintJpegStrip`: crop rows `y` to `y + height` (relative to the crop), crop-wide RGB.
|
|
162
|
+
|
|
163
|
+
```ts
|
|
164
|
+
export interface PrintJpegStripInput {y:number;height:number;samples:Uint8Array}
|
|
165
|
+
```
|
|
166
|
+
|
|
126
167
|
## PrintJpegTask
|
|
127
168
|
|
|
128
169
|
The exact contract is declared below; use the domain guide for assumptions and staged integration.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@photivra/engine",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Scientific TypeScript engine for camera optics, exposure, focus, motion, sensor sampling, diffraction, and digital imaging calculations.",
|
|
6
6
|
"type": "module",
|