apertaluce 0.1.0 → 0.3.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/README.md +119 -68
- package/lib/image/fingerprint.d.ts +1 -1
- package/lib/image/fingerprint.js +1 -1
- package/lib/image/mark.d.ts +26 -11
- package/lib/image/mark.js +600 -175
- package/lib/video/index.d.ts +5 -2
- package/lib/video/index.js +5 -2
- package/package.json +1 -1
package/lib/video/index.d.ts
CHANGED
|
@@ -20,8 +20,11 @@ export interface FrameOverlayOptions {
|
|
|
20
20
|
/** Tiles across the frame's shorter side. */
|
|
21
21
|
tilesPerShortSide?: number;
|
|
22
22
|
}
|
|
23
|
-
/**
|
|
24
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Tuned on H.264 re-encodes (bench/video.ts). At 3 the pattern showed as a film over flat
|
|
25
|
+
* areas of the frame; 2 is the lowest amplitude the bench was run at.
|
|
26
|
+
*/
|
|
27
|
+
export declare const FRAME_MARK_AMPLITUDE = 2;
|
|
25
28
|
export declare const FRAME_MARK_TILES = 4;
|
|
26
29
|
/**
|
|
27
30
|
* One 8-bit grey plane, `width`×`height`, where 128 means "leave the pixel"
|
package/lib/video/index.js
CHANGED
|
@@ -11,8 +11,11 @@
|
|
|
11
11
|
* encode video: frames come from and go to whatever codec the host uses.
|
|
12
12
|
*/
|
|
13
13
|
import { detectPixelMark, pixelMarkPlane } from "../image/mark.js";
|
|
14
|
-
/**
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Tuned on H.264 re-encodes (bench/video.ts). At 3 the pattern showed as a film over flat
|
|
16
|
+
* areas of the frame; 2 is the lowest amplitude the bench was run at.
|
|
17
|
+
*/
|
|
18
|
+
export const FRAME_MARK_AMPLITUDE = 2;
|
|
16
19
|
export const FRAME_MARK_TILES = 4;
|
|
17
20
|
/**
|
|
18
21
|
* One 8-bit grey plane, `width`×`height`, where 128 means "leave the pixel"
|
package/package.json
CHANGED