pup-recorder 0.3.9 → 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 CHANGED
@@ -21,7 +21,6 @@ const common: Options = {
21
21
  minify: true,
22
22
  treeshake: true,
23
23
  banner: { js: `import "source-map-support/register.js";` },
24
- loader: { ".zip": "binary" },
25
24
  };
26
25
 
27
26
  await build({
@@ -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 frameCount;
191
- private ffmpeg;
192
- private parser;
193
- private ring;
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 exhausted;
198
- constructor(meta: VideoMeta, src: string, frameCount: number);
199
- getFrame(idxRaw: number): Promise<Buffer>;
193
+ private watcher;
194
+ constructor(meta: VideoMeta, src: string, framesDir: string);
195
+ getFrame(idx: number): Promise<Buffer>;
200
196
  close(): void;
201
- private needsReseek;
202
- private reseek;
203
- private waitFrame;
204
- private onServe;
205
- private refillIfNeeded;
197
+ private wait;
206
198
  private spawn;
207
- private onStdout;
208
- private killFfmpeg;
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 }