19 lines
541 B
TypeScript
19 lines
541 B
TypeScript
import "server-only";
|
|
|
|
import type { MappedStoryboardShot, PreparedStoryboardShot } from "@/lib/video-agent/types";
|
|
|
|
export async function runTileUpscalerSkill(params: {
|
|
shots: MappedStoryboardShot[];
|
|
enableTileUpscale: boolean;
|
|
sliceUpscaleMinEdge: number;
|
|
}): Promise<PreparedStoryboardShot[]> {
|
|
const { shots, enableTileUpscale } = params;
|
|
|
|
return shots.map((shot) => ({
|
|
...shot,
|
|
inputImageUrl: shot.tileImageUrl,
|
|
upscaled: false,
|
|
upscaleReason: enableTileUpscale ? "reserved_not_enabled" : "disabled",
|
|
}));
|
|
}
|