android_hardware_samsung/exynos4/interfaces/livedisplay/1.0/include/controller/Exynos4Controller.h

74 lines
3.0 KiB
C++

/*
* Copyright (C) 2018 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.
*/
#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V1_0_EXYNOS4CONTROLLER_H
#define VENDOR_LINEAGE_LIVEDISPLAY_V1_0_EXYNOS4CONTROLLER_H
#include <memory>
#include <stdint.h>
namespace vendor {
namespace lineage {
namespace livedisplay {
namespace V1_0 {
namespace implementation {
class Exynos4Controller {
public:
Exynos4Controller();
int32_t init(int32_t init);
int32_t get_color_balance_range(int32_t disp_id, void* range);
int32_t set_color_balance(int32_t disp_id, int32_t warmness);
int32_t get_color_balance(int32_t disp_id, int32_t* warmness);
int32_t get_num_display_modes(int32_t disp_id, int32_t mode_type, uint32_t* mode_cnt);
int32_t get_display_modes(int32_t disp_id, int32_t mode_type, void* modes, int32_t mode_cnt);
int32_t get_active_display_mode(int32_t disp_id, int32_t* mode_id, uint32_t* mask);
int32_t set_active_display_mode(int32_t disp_id, int32_t mode_id);
int32_t set_default_display_mode(int32_t disp_id, int32_t mode_id);
int32_t get_default_display_mode(int32_t disp_id, int32_t* mode_id);
int32_t get_pa_range(int32_t disp_id, void* range);
int32_t get_pa_config(int32_t disp_id, void* cfg);
int32_t set_pa_config(int32_t disp_id, void* cfg);
int32_t supported(int32_t disp_id, uint32_t feature_id);
private:
typedef int32_t (*disp_api_init)(int32_t);
typedef int32_t (*disp_api_get_color_balance_range)(int32_t, void*);
typedef int32_t (*disp_api_set_color_balance)(int32_t, int32_t);
typedef int32_t (*disp_api_get_color_balance)(int32_t, int32_t*);
typedef int32_t (*disp_api_get_num_display_modes)(int32_t, int32_t, uint32_t*);
typedef int32_t (*disp_api_get_display_modes)(int32_t, int32_t, void*, int32_t);
typedef int32_t (*disp_api_get_active_display_mode)(int32_t, int32_t*, uint32_t*);
typedef int32_t (*disp_api_set_active_display_mode)(int32_t, int32_t);
typedef int32_t (*disp_api_set_default_display_mode)(int32_t, int32_t);
typedef int32_t (*disp_api_get_default_display_mode)(int32_t, int32_t*);
typedef int32_t (*disp_api_get_pa_range)(int32_t, void*);
typedef int32_t (*disp_api_get_pa_config)(int32_t, void*);
typedef int32_t (*disp_api_set_pa_config)(int32_t, void*);
typedef int32_t (*disp_api_supported)(int32_t, uint32_t);
};
} // namespace implementation
} // namespace V1_0
} // namespace livedisplay
} // namespace lineage
} // namespace vendor
#endif // VENDOR_LINEAGE_LIVEDISPLAY_V1_0_EXYNOS4CONTROLLER_H