remove and restore gif frames
This commit is contained in:
@@ -115,6 +115,7 @@ export type ExportRequest = {
|
||||
target_bytes: number
|
||||
fps: number
|
||||
keep_audio: boolean
|
||||
gif_removed_ranges?: SourceRange[]
|
||||
trim_start_secs?: number | null
|
||||
trim_end_secs?: number | null
|
||||
output_path?: string | null
|
||||
@@ -125,6 +126,8 @@ export type ExportRequest = {
|
||||
gif_colors?: number
|
||||
}
|
||||
|
||||
export type SourceRange = { start_secs: number; end_secs: number }
|
||||
|
||||
export type ExportResult = {
|
||||
output_path: string
|
||||
size_bytes: number
|
||||
@@ -223,6 +226,8 @@ export const api = {
|
||||
invoke<void>("set_overlay_to_window", { x, y, width, height }),
|
||||
listWindows: () => invoke<WindowInfo[]>("list_windows"),
|
||||
getOverlayRect: () => invoke<CaptureRect>("get_overlay_rect"),
|
||||
extractThumbnails: (fps: number, start: number) =>
|
||||
invoke<{ paths: string[]; has_more: boolean }>("extract_thumbnails", { fps, start }),
|
||||
timelineThumbnails: () => invoke<string[]>("timeline_thumbnails"),
|
||||
previewDisplay: (x: number, y: number) => invoke<ArrayBuffer>("preview_display", { x, y }),
|
||||
renderOutputPreview: (request: ExportRequest) =>
|
||||
|
||||
Reference in New Issue
Block a user