AutoMovie API
    Preparing search index...

    Type Alias IAutoMovieCaptureSampling

    IAutoMovieCaptureSampling:
        | { from: number; kind: "even"; rate: number; to: number
        | null }
        | { kind: "at"; seconds: number[] }

    The seconds a capture draws besides its event windows.

    even samples [from, to) every 1 / rate seconds, each sample moved to the nearest frame of the subject's grid so it is a frame the subject encodes; to null runs to the subject's end. at draws the given seconds exactly as written.

    The parser admits finite nonnegative seconds, a positive rate and a nonempty explicit list; frame planning checks the subject's duration and grid. The list is caller-owned and borrowed by planning.

    Type Declaration

    • { from: number; kind: "even"; rate: number; to: number | null }
      • from: number

        First second, inclusive, zero or more.

      • kind: "even"

        Samples at an even rate.

      • rate: number

        Stills per second, positive.

      • to: number | null

        End second, exclusive, or null for the subject's end.

    • { kind: "at"; seconds: number[] }
      • kind: "at"

        Explicit seconds.

      • seconds: number[]

        The seconds, in the order written, at least one.