AutoMovie API
    Preparing search index...

    Type Alias IAutoMovieCaptureCellComparison

    IAutoMovieCaptureCellComparison:
        | {
            bounds: | { bottom: number; left: number; right: number; top: number }
            | null;
            changed: number;
            current: string;
            difference: string | null;
            earlier: string;
            maximum: number;
            mode: "difference";
            ratio: number;
            state: "paired";
        }
        | {
            current: string;
            earlier: string;
            mode: "side-by-side";
            state: "paired";
        }
        | {
            cause: string;
            current: string
            | null;
            earlier: string | null;
            state: "unmatched";
        }

    One cell of either capture: paired with its counterpart, or unmatched with the cause.

    Only pairs whose stills identify the same backend carry numerical pixel differences. Different or unstated backends produce side-by-side outcomes; unmatched outcomes preserve the cause rather than imply equality.

    Type Declaration

    • {
          bounds:
              | { bottom: number; left: number; right: number; top: number }
              | null;
          changed: number;
          current: string;
          difference: string | null;
          earlier: string;
          maximum: number;
          mode: "difference";
          ratio: number;
          state: "paired";
      }
      • bounds: { bottom: number; left: number; right: number; top: number } | null

        Smallest box holding every changed pixel, inclusive pixel bounds, or null when none changed.

      • changed: number

        Pixels whose largest channel difference exceeds the tolerance.

      • current: string

        Cell name in this capture.

      • difference: string | null

        File name of the difference image, or null when no pixel changed.

      • earlier: string

        Cell name in the earlier round.

      • maximum: number

        Largest channel difference in bytes.

      • mode: "difference"

        Both stills came from the same backend, so pixels are compared.

      • ratio: number

        changed over the pixel count.

      • state: "paired"

        Both captures hold the cell and their stills were measured against each other.

    • { current: string; earlier: string; mode: "side-by-side"; state: "paired" }
      • current: string

        Cell name in this capture.

      • earlier: string

        Cell name in the earlier round.

      • mode: "side-by-side"

        The stills are laid side by side without a difference image, because pixels from different backends are not compared.

      • state: "paired"

        Both captures hold the cell, drawn by different or unstated backends.

    • {
          cause: string;
          current: string | null;
          earlier: string | null;
          state: "unmatched";
      }
      • cause: string

        Why the cell is unmatched.

      • current: string | null

        Cell name in this capture, or null when only the earlier round has it.

      • earlier: string | null

        Cell name in the earlier round, or null when it has no counterpart.

      • state: "unmatched"

        One capture holds the cell and the other does not, or one of them could not draw it.