UNPKG

@diffusionstudio/core-v4

Version:

A fast, browser based video compositing engine powered by WebCodecs

28 lines (27 loc) 794 B
import { BaseSource } from './base'; import { Constructor, int } from '../../types'; export declare function VisualSourceMixin<T extends Constructor<BaseSource>>(Base: T): { new (...args: any[]): { /** * The height of the source */ height: int; /** * The width of the source */ width: int; /** * The aspect ratio of the source */ get aspectRatio(): number; id: string; mimeType: string; input: import('../..').MediaInput; name: string; createdAt: string; init(): Promise<void>; arrayBuffer(): Promise<ArrayBuffer>; toJSON(): string; fromJSON<K = {}>(obj: K extends string ? never : K): /*elided*/ any; }; } & T;