AutoMovie API
    Preparing search index...

    Function measureGrammarShotSize

    • The framing a shot's primary subject measures as at one edited boundary, or null when the shot has no primary subject, the subject's base or top is not in front of the camera, or its derived occupancy is non-finite or negligible.

      The subject's frame occupancy is the larger of two fractions: its projected height over the frame height, and its horizontal radius over the half-width the frame spans at the subject's depth. classifyGrammarShotSize turns that fraction into the nearest framing.

      Parameters

      • shot: IAutoMovieNormalizedGrammarShot

        Normalized shot whose primary subject is measured.

      • boundary: "start" | "end"

        Which edited boundary's camera and subject point to read.

      Returns "wide" | "full" | "medium" | "close" | null

      The measured framing, or null when it cannot be measured.