Home
last modified time | relevance | path

Searched refs:edid_buf (Results 1 – 1 of 1) sorted by relevance

/aosp12/hardware/google/graphics/common/libhwc2.1/libdisplayinterface/
H A DExynosDisplayDrmInterface.cpp2231 std::array<uint8_t, 128> edid_buf{ in getDisplayFakeEdid() local
2262 edid_buf[55] = clock >> 8; in getDisplayFakeEdid()
2263 edid_buf[56] = width & 0xff; in getDisplayFakeEdid()
2264 edid_buf[58] = (width >> 4) & 0xf0; in getDisplayFakeEdid()
2265 edid_buf[59] = height & 0xff; in getDisplayFakeEdid()
2266 edid_buf[61] = (height >> 4) & 0xf0; in getDisplayFakeEdid()
2268 unsigned int sum = std::accumulate(edid_buf.begin(), edid_buf.end() - 1, 0); in getDisplayFakeEdid()
2269 edid_buf[127] = (0x100 - (sum & 0xFF)) & 0xFF; in getDisplayFakeEdid()
2271 outDataSize = std::min<uint32_t>(outDataSize, edid_buf.size()); in getDisplayFakeEdid()
2272 memcpy(outData, edid_buf.data(), outDataSize); in getDisplayFakeEdid()
[all …]