You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.0 KiB

/*
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2019-2022. All rights reserved.
* Description: Support hwdisplay hal adaptation interface
* Author: Hisilicon
* Created: 2022-12-28
*/
#ifndef __COMMON_H__
#define __COMMON_H__
#include <string>
namespace android {
struct DisplayMode {
uint32_t vic;
uint32_t format;
uint32_t pixelFormat;
uint32_t bitDepth;
std::string name;
uint32_t width;
uint32_t height;
bool progressive;
uint32_t fieldRate;
};
struct DispCbHdmiEvent {
uint32_t eventId;
uint32_t displayId;
uint32_t hdmitxId;
};
struct DispCbModeChanged {
uint32_t eventId;
uint32_t displayId;
DisplayMode oldMode;
DisplayMode newMode;
};
struct DispCbHdrTypeChanged {
uint32_t eventId;
uint32_t displayId;
uint32_t oldHdr;
uint32_t newHdr;
};
struct DisplayCallbackData {
uint32_t eventId;
DispCbHdmiEvent hdmi;
DispCbModeChanged mode;
DispCbHdrTypeChanged hdrType;
};
}
#endif // __COMMON_H__