"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DngReadDefines = void 0;
const defines_creator_1 = require("../../defines/defines-creator");
const magick_format_1 = require("../../magick-format");
class DngReadDefines extends defines_creator_1.DefinesCreator {
    constructor() {
        super(magick_format_1.MagickFormat.Dng);
    }
    getDefines() {
        const defines = [];
        if (this.hasValue(this.disableAutoBrightness))
            defines.push(this.createDefine('no-auto-bright', this.disableAutoBrightness));
        if (this.hasValue(this.outputColor))
            defines.push(this.createDefine('output-color', this.outputColor));
        if (this.hasValue(this.useCameraWhitebalance))
            defines.push(this.createDefine('use-camera-wb', this.useCameraWhitebalance));
        if (this.hasValue(this.useAutoWhitebalance))
            defines.push(this.createDefine('use-auto-wb', this.useAutoWhitebalance));
        return defines;
    }
    hasValue(value) {
        return value !== undefined && value !== null;
    }
}
exports.DngReadDefines = DngReadDefines;
