/*
 * Copyright (C) 2018-2019 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package vendor.lineage.livedisplay@2.0;

interface IPictureAdjustment {
    getHueRange() generates (FloatRange range);
    getSaturationRange() generates (FloatRange range);
    getIntensityRange() generates (FloatRange range);
    getContrastRange() generates (FloatRange range);
    getSaturationThresholdRange() generates (FloatRange range);

    getPictureAdjustment() generates (HSIC hsic);
    getDefaultPictureAdjustment() generates (HSIC hsic);
    setPictureAdjustment(HSIC hsic) generates (bool rc);
};
