// Generated by alef. Do not edit by hand.
@file:Suppress(
    "ktlint:standard:trailing-comma-on-call-site",
    "ktlint:standard:trailing-comma-on-declaration-site",
    "ktlint:standard:spacing-between-declarations-with-comments",
    "ktlint:standard:spacing-between-declarations-with-annotations",
    "ktlint:standard:when-entry-bracing",
    "ktlint:standard:blank-line-between-when-conditions",
    "ktlint:standard:blank-line-before-declaration",
    "ktlint:standard:chain-method-continuation",
    "ktlint:standard:annotation",
    "ktlint:standard:max-line-length",
    "ktlint:standard:no-semi",
    "ktlint:standard:statement-wrapping",
    "MaxLineLength",
    "TooManyFunctions",
    "FunctionParameterNaming",
    "LongParameterList",
    "CyclomaticComplexMethod",
    "LongMethod",
)

package dev.kreuzberg

/**
 * Image preprocessing metadata.
 *
 * Tracks the transformations applied to an image during OCR preprocessing,
 * including DPI normalization, resizing, and resampling.
 */
data class ImagePreprocessingMetadata(
    /** Original image dimensions (width, height) in pixels */
    val originalDimensions: List<Long> = emptyList(),
    /** Original image DPI (horizontal, vertical) */
    val originalDpi: List<Double> = emptyList(),
    /** Target DPI from configuration */
    val targetDpi: Int,
    /** Scaling factor applied to the image */
    val scaleFactor: Double,
    /** Whether DPI was auto-adjusted based on content */
    val autoAdjusted: Boolean,
    /** Final DPI after processing */
    val finalDpi: Int,
    /** New dimensions after resizing (if resized) */
    val newDimensions: List<Long>? = null,
    /** Resampling algorithm used ("LANCZOS3", "CATMULLROM", etc.) */
    val resampleMethod: String,
    /** Whether dimensions were clamped to max_image_dimension */
    val dimensionClamped: Boolean,
    /** Calculated optimal DPI (if auto_adjust_dpi enabled) */
    val calculatedDpi: Int? = null,
    /** Whether resize was skipped (dimensions already optimal) */
    val skippedResize: Boolean,
    /** Error message if resize failed */
    val resizeError: String? = null,
)
