2024-08-18 01:22:17 +00:00
|
|
|
import type { SequenceObject, ImageObject } from '../files';
|
2024-08-05 02:34:03 +00:00
|
|
|
import type { FD } from '../fd';
|
|
|
|
import type { Camera } from '../camera';
|
|
|
|
import type { Display } from '../display';
|
2024-08-09 20:20:07 +00:00
|
|
|
import type { FFPROBE } from '../ffprobe';
|
2024-08-16 04:52:46 +00:00
|
|
|
declare enum SequenceStatus {
|
|
|
|
IDLE = 0,
|
|
|
|
RUNNING = 1,
|
|
|
|
PAUSED = 2
|
|
|
|
}
|
2024-07-12 13:51:39 +00:00
|
|
|
export declare class Sequence {
|
2024-07-31 18:39:21 +00:00
|
|
|
private log;
|
2024-07-12 13:51:39 +00:00
|
|
|
private current;
|
2024-08-15 02:43:02 +00:00
|
|
|
private info;
|
2024-07-31 18:39:21 +00:00
|
|
|
private images;
|
2024-08-05 02:34:03 +00:00
|
|
|
private camera;
|
|
|
|
private display;
|
2024-08-09 20:20:07 +00:00
|
|
|
private ffprobe;
|
2024-08-05 02:34:03 +00:00
|
|
|
private fd;
|
2024-08-16 04:52:46 +00:00
|
|
|
private send;
|
2024-07-12 13:51:39 +00:00
|
|
|
private running;
|
2024-08-16 04:52:46 +00:00
|
|
|
private paused;
|
2024-07-12 13:51:39 +00:00
|
|
|
private progress;
|
2024-08-16 04:52:46 +00:00
|
|
|
private frame;
|
2024-07-12 13:51:39 +00:00
|
|
|
private frames;
|
2024-08-16 04:52:46 +00:00
|
|
|
private exposure;
|
2024-08-15 02:43:02 +00:00
|
|
|
constructor(camera: Camera, fd: FD, display: Display, ffprobe: FFPROBE, send: Function);
|
2024-07-12 13:51:39 +00:00
|
|
|
start(): void;
|
|
|
|
stop(): void;
|
|
|
|
isRunning(): boolean;
|
2024-08-24 14:23:15 +00:00
|
|
|
private run;
|
2024-08-16 04:52:46 +00:00
|
|
|
load(seq: SequenceObject): Promise<void>;
|
2024-08-24 14:23:15 +00:00
|
|
|
updateClientsOnLoad(): void;
|
|
|
|
updateClientsOnState(): void;
|
2024-07-31 18:39:21 +00:00
|
|
|
private enumerate;
|
|
|
|
unload(): void;
|
2024-08-16 04:52:46 +00:00
|
|
|
getState(): State;
|
2024-08-24 14:23:15 +00:00
|
|
|
getUpdateState(): State;
|
2024-08-16 04:52:46 +00:00
|
|
|
getSequenceState(): SequenceState;
|
|
|
|
setExposure(ms: number): void;
|
|
|
|
getStatus(): SequenceStatus;
|
2024-08-18 01:22:17 +00:00
|
|
|
getCurrent(): ImageObject;
|
2024-08-24 14:23:15 +00:00
|
|
|
frameAdvance(frames?: number): void;
|
|
|
|
frameRewind(frames?: number): void;
|
|
|
|
frameSet(frame: number): void;
|
|
|
|
private frameRecord;
|
2024-07-12 13:51:39 +00:00
|
|
|
}
|
2024-08-16 04:52:46 +00:00
|
|
|
export {};
|