pup-recorder 0.3.8 → 0.3.10
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/build.ts +0 -1
- package/dist/_tsup-dts-rollup.d.ts +13 -34
- package/dist/app.cjs +239 -200
- package/dist/cli.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/Cargo.lock +0 -281
- package/Cargo.toml +0 -23
- package/build.rs +0 -5
- package/build_rust.ts +0 -86
- package/rust-toolchain.toml +0 -10
package/build.ts
CHANGED
|
@@ -108,8 +108,6 @@ export declare function buildAlphaChannelInfoSEI(): Buffer;
|
|
|
108
108
|
*/
|
|
109
109
|
export declare function buildAlphaVPS(vpsData: Buffer, width: number, height: number): Buffer;
|
|
110
110
|
|
|
111
|
-
export declare function buildRust(): Promise<void>;
|
|
112
|
-
|
|
113
111
|
export declare function buildStegoHTML(targetURL: string, size: Size): string;
|
|
114
112
|
|
|
115
113
|
export declare function buildUnifiedExtradata(opts: UnifiedExtradataOptions): Buffer;
|
|
@@ -187,26 +185,19 @@ export declare function debounce<T extends (...args: unknown[]) => void>(fn: T,
|
|
|
187
185
|
export declare class DecodeSession {
|
|
188
186
|
readonly meta: VideoMeta;
|
|
189
187
|
private readonly src;
|
|
190
|
-
private readonly
|
|
191
|
-
private
|
|
192
|
-
private
|
|
193
|
-
private
|
|
194
|
-
private runBaseIdx;
|
|
195
|
-
private nextFrameIdx;
|
|
188
|
+
private readonly framesDir;
|
|
189
|
+
private proc;
|
|
190
|
+
private ready;
|
|
191
|
+
private done;
|
|
196
192
|
private waiters;
|
|
197
|
-
private
|
|
198
|
-
constructor(meta: VideoMeta, src: string,
|
|
199
|
-
getFrame(
|
|
193
|
+
private watcher;
|
|
194
|
+
constructor(meta: VideoMeta, src: string, framesDir: string);
|
|
195
|
+
getFrame(idx: number): Promise<Buffer>;
|
|
200
196
|
close(): void;
|
|
201
|
-
private
|
|
202
|
-
private reseek;
|
|
203
|
-
private waitFrame;
|
|
204
|
-
private onServe;
|
|
205
|
-
private refillIfNeeded;
|
|
197
|
+
private wait;
|
|
206
198
|
private spawn;
|
|
207
|
-
private
|
|
208
|
-
private
|
|
209
|
-
private rejectAllWaiters;
|
|
199
|
+
private poll;
|
|
200
|
+
private drainWaiters;
|
|
210
201
|
}
|
|
211
202
|
|
|
212
203
|
export declare function decodeStego(bitmap: Buffer, size: Size): number | undefined;
|
|
@@ -314,14 +305,6 @@ export { exec as exec_alias_1 }
|
|
|
314
305
|
|
|
315
306
|
export declare function extractAlphaToYuv420pBuffer(bgraFrame: Frame, buf: Buffer): void;
|
|
316
307
|
|
|
317
|
-
export declare interface FixedBufferWriter {
|
|
318
|
-
new (path: string, bufferSize: number, queueDepth?: number): FixedBufferWriter;
|
|
319
|
-
write(buffer: Buffer): void;
|
|
320
|
-
close(): Promise<void>;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export declare const FixedBufferWriter: FixedBufferWriter;
|
|
324
|
-
|
|
325
308
|
declare class FormatMuxer {
|
|
326
309
|
private readonly _ctx;
|
|
327
310
|
private _opened;
|
|
@@ -376,7 +359,6 @@ export declare class FrameServer {
|
|
|
376
359
|
getFrame(id: string, idx: number): Promise<Buffer>;
|
|
377
360
|
close(id: string): void;
|
|
378
361
|
closeAll(): void;
|
|
379
|
-
private must;
|
|
380
362
|
}
|
|
381
363
|
|
|
382
364
|
export declare const frameServer: FrameServer;
|
|
@@ -463,6 +445,8 @@ export { Lazy as Lazy_alias_1 }
|
|
|
463
445
|
|
|
464
446
|
export declare function loadWindow({ source, renderer, preload, onCreated, signal, }: WindowOptions): Promise<BrowserWindow>;
|
|
465
447
|
|
|
448
|
+
export declare function localize(src: string): Promise<string>;
|
|
449
|
+
|
|
466
450
|
declare class Logger implements LoggerLike {
|
|
467
451
|
private _level;
|
|
468
452
|
private _impl?;
|
|
@@ -618,11 +602,6 @@ declare function periodical(callback: (count: number) => Promise<void> | void, m
|
|
|
618
602
|
export { periodical }
|
|
619
603
|
export { periodical as periodical_alias_1 }
|
|
620
604
|
|
|
621
|
-
export declare class PngStreamParser {
|
|
622
|
-
private buf;
|
|
623
|
-
feed(chunk: Buffer): Buffer[];
|
|
624
|
-
}
|
|
625
|
-
|
|
626
605
|
export declare function probe(src: string): Promise<ProbeResult>;
|
|
627
606
|
|
|
628
607
|
export declare interface ProbeResult {
|
|
@@ -911,7 +890,7 @@ export declare interface WindowOptions {
|
|
|
911
890
|
signal?: AbortSignal;
|
|
912
891
|
}
|
|
913
892
|
|
|
914
|
-
export declare function withRerender<T>(action: () => Promise<T>): Promise<T>;
|
|
893
|
+
export declare function withRerender<T>(signal: AbortSignal, action: () => Promise<T>): Promise<T>;
|
|
915
894
|
|
|
916
895
|
declare function withTimeout<T>(p: Promise<T>, ms: number, label: string): Promise<T>;
|
|
917
896
|
export { withTimeout }
|