fps selector on idle screen, lower gif fps minimum, 16:9 preset, aspect ratio lock on frame resize, gif budget mode (resolution/framerate/balanced priority), fix asset protocol scope
This commit is contained in:
+5
-2
@@ -12,6 +12,7 @@ export type AppStatus = {
|
||||
|
||||
export type Format = "gif" | "webm" | "mp4"
|
||||
export type GifDither = "floyd_steinberg" | "bayer" | "none"
|
||||
export type GifBudgetMode = "resolution" | "framerate" | "balanced"
|
||||
export type WebmCodec = "vp9" | "av1"
|
||||
export type Mp4Codec = "h264" | "h265"
|
||||
|
||||
@@ -101,6 +102,7 @@ export type RecordedClip = {
|
||||
|
||||
export type StartCaptureRequest = {
|
||||
crop: CaptureRect | null
|
||||
fps: number
|
||||
}
|
||||
|
||||
export type ExportRequest = {
|
||||
@@ -113,6 +115,7 @@ export type ExportRequest = {
|
||||
trim_end_secs?: number | null
|
||||
output_path?: string | null
|
||||
crop?: CaptureRect | null
|
||||
gif_budget_mode?: GifBudgetMode
|
||||
}
|
||||
|
||||
export type ExportResult = {
|
||||
@@ -162,8 +165,8 @@ export const api = {
|
||||
getOverlayRect: () => invoke<CaptureRect>("get_overlay_rect"),
|
||||
extractThumbnails: (fps: number) =>
|
||||
invoke<string[]>("extract_thumbnails", { fps }),
|
||||
renderPreview: (format: Format, fps: number, target_bytes: number) =>
|
||||
invoke<string>("render_preview", { request: { format, fps, target_bytes } }),
|
||||
renderPreview: (format: Format, fps: number, target_bytes: number, gif_budget_mode?: GifBudgetMode) =>
|
||||
invoke<string>("render_preview", { request: { format, fps, target_bytes, gif_budget_mode } }),
|
||||
defaultOutputPath: (format: Format) =>
|
||||
invoke<string>("default_output_path", { format }),
|
||||
openUrl: (url: string) => invoke<void>("open_url", { url }),
|
||||
|
||||
Reference in New Issue
Block a user