package com.foxx.androidcast.receiver.av;

/** Receiver video enhancement preset (developer / experimental). */
public enum ReceiverVideoPreset {
    DEFAULT,
    IMMERSIVE,
    HDR;

    public boolean supportsIntensity() {
        return this != DEFAULT;
    }

    public static ReceiverVideoPreset fromName(String name, ReceiverVideoPreset fallback) {
        if (name == null) {
            return fallback;
        }
        try {
            return valueOf(name.trim().toUpperCase());
        } catch (IllegalArgumentException e) {
            return fallback;
        }
    }
}
